22 comments

[ 6.0 ms ] story [ 62.4 ms ] thread
This is the funnest thing I've seen in weeks in regards to tech. Nice job. And looks like a nice tool too.
I'm not a developer - but this is funny.
(comment deleted)
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
  {}%
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.

Fixed now. Just type Ctrl-C. Thanks for the report.
How about Ctrl-D as well. Probably makes a bit more sense.
+1, Ctrl D is interrupt, and bash, node, python, etc. use it to quit.
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.
please add a feature to re-order properties alphabetically, that would be super useful. derulo package wiggle ;)
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.
I love the idea of Jason Derulo becoming aware of the existence of a Node.js module.
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?

Nice idea. That could definitely explain things faster than a description of it. I'll make one this afternoon.
Understood immediately when I saw it, thanks to that!