[–] evertonfuller 11y ago ↗ This is the funnest thing I've seen in weeks in regards to tech. Nice job. And looks like a nice tool too. [–] dm2 11y ago ↗ Why is everyone saying this is funny? I don't get it. [–] sethhochberg 11y ago ↗ Jason Derulo is a successful pop musician right now. http://en.wikipedia.org/wiki/Jason_DeruloThe wordplay is Jason -> JSON. [–] wtetzner 11y ago ↗ He actually said it's the funnest, not funniest. I'm not sure which he meant though.
[–] dm2 11y ago ↗ Why is everyone saying this is funny? I don't get it. [–] sethhochberg 11y ago ↗ Jason Derulo is a successful pop musician right now. http://en.wikipedia.org/wiki/Jason_DeruloThe wordplay is Jason -> JSON. [–] wtetzner 11y ago ↗ He actually said it's the funnest, not funniest. I'm not sure which he meant though.
[–] sethhochberg 11y ago ↗ Jason Derulo is a successful pop musician right now. http://en.wikipedia.org/wiki/Jason_DeruloThe wordplay is Jason -> JSON.
[–] wtetzner 11y ago ↗ He actually said it's the funnest, not funniest. I'm not sure which he meant though.
[–] rane 11y ago ↗ How are you supposed to exit the REPL? I end up with empty braces in the file. ~ ❯❯❯ derulo hello Entering Derulo interactive JSON builder. prompt: key: foo prompt: value: bar prompt: key: % ~ ❯❯❯ cat hello.json {}% [–] lavelle 11y ago ↗ Yeah, as a quick hack I made it so typing 'end' for a key or value exits it. This is obviously a valid key or value though, so something else is needed.Maybe some control sequence would work? Not sure how you handle those in Node. [–] lavelle 11y ago ↗ Fixed now. Just type Ctrl-C. Thanks for the report. [–] rane 11y ago ↗ How about Ctrl-D as well. Probably makes a bit more sense. [–] nailer 11y ago ↗ +1, Ctrl D is interrupt, and bash, node, python, etc. use it to quit. [–] lavelle 11y ago ↗ I think I'll keep Ctrl+D for quitting the whole program, Ctrl+C for just finishing the REPL and going to the save/discard prompt.
[–] lavelle 11y ago ↗ Yeah, as a quick hack I made it so typing 'end' for a key or value exits it. This is obviously a valid key or value though, so something else is needed.Maybe some control sequence would work? Not sure how you handle those in Node. [–] lavelle 11y ago ↗ Fixed now. Just type Ctrl-C. Thanks for the report. [–] rane 11y ago ↗ How about Ctrl-D as well. Probably makes a bit more sense. [–] nailer 11y ago ↗ +1, Ctrl D is interrupt, and bash, node, python, etc. use it to quit. [–] lavelle 11y ago ↗ I think I'll keep Ctrl+D for quitting the whole program, Ctrl+C for just finishing the REPL and going to the save/discard prompt.
[–] lavelle 11y ago ↗ Fixed now. Just type Ctrl-C. Thanks for the report. [–] rane 11y ago ↗ How about Ctrl-D as well. Probably makes a bit more sense. [–] nailer 11y ago ↗ +1, Ctrl D is interrupt, and bash, node, python, etc. use it to quit. [–] lavelle 11y ago ↗ I think I'll keep Ctrl+D for quitting the whole program, Ctrl+C for just finishing the REPL and going to the save/discard prompt.
[–] rane 11y ago ↗ How about Ctrl-D as well. Probably makes a bit more sense. [–] nailer 11y ago ↗ +1, Ctrl D is interrupt, and bash, node, python, etc. use it to quit. [–] lavelle 11y ago ↗ I think I'll keep Ctrl+D for quitting the whole program, Ctrl+C for just finishing the REPL and going to the save/discard prompt.
[–] nailer 11y ago ↗ +1, Ctrl D is interrupt, and bash, node, python, etc. use it to quit. [–] lavelle 11y ago ↗ I think I'll keep Ctrl+D for quitting the whole program, Ctrl+C for just finishing the REPL and going to the save/discard prompt.
[–] lavelle 11y ago ↗ I think I'll keep Ctrl+D for quitting the whole program, Ctrl+C for just finishing the REPL and going to the save/discard prompt.
[–] frankblizzard 11y ago ↗ please add a feature to re-order properties alphabetically, that would be super useful. derulo package wiggle ;)
[–] farmdve 11y ago ↗ If Jason Derulo finds out about this, he might sue :P There was an instance with Kanye West and the altcoin Coineye which he destroyed. [–] lavelle 11y ago ↗ I love the idea of Jason Derulo becoming aware of the existence of a Node.js module.
[–] lavelle 11y ago ↗ I love the idea of Jason Derulo becoming aware of the existence of a Node.js module.
[–] christiangenco 11y ago ↗ The name is funny, but after a minute of clicking around the repo I'm still not sure what this actually does.The linked help text for your `Usage Examples` isn't very helpful either.How about an animated gif of you... adding multiple key-value pairs to be written to the file? [–] lavelle 11y ago ↗ Nice idea. That could definitely explain things faster than a description of it. I'll make one this afternoon. [–] predius 11y ago ↗ Understood immediately when I saw it, thanks to that!
[–] lavelle 11y ago ↗ Nice idea. That could definitely explain things faster than a description of it. I'll make one this afternoon. [–] predius 11y ago ↗ Understood immediately when I saw it, thanks to that!
[–] gabebw 11y ago ↗ If you need a JSON "API" to test it against, may I suggest derulo.json: http://gabebw.com/derulo.json
22 comments
[ 6.0 ms ] story [ 62.4 ms ] threadThe wordplay is Jason -> JSON.
Maybe some control sequence would work? Not sure how you handle those in Node.
The linked help text for your `Usage Examples` isn't very helpful either.
How about an animated gif of you... adding multiple key-value pairs to be written to the file?