News for hackers. Stuff that matters.
Re:Show HN: CLI for trying out Node.js modules easier by amelius on Monday March 14, 2016 @06:36AM (#11282019)
Next step: a try-it-on-the-web interface?
Re:Show HN: CLI for trying out Node.js modules easier by SlashmanX on Monday March 14, 2016 @06:46AM (#11282064)
Doesn't that already exist on the NPM interface? The "try it now in your browser" which links to TonicDev. Or are you suggesting something else?
Re:Show HN: CLI for trying out Node.js modules easier by amelius on Monday March 14, 2016 @07:13AM (#11282154)
In that case, why would we need a CLI tool for trying out packages?
Re:Show HN: CLI for trying out Node.js modules easier by diggan on Monday March 14, 2016 @08:56AM (#11282558)
Offline capabilities + easier to use for some people (one of them being me). Loading up a webpage every time I want to try some new nodejs module would not work as well as opening up a nodejs repl with the module loaded there.
Re:Show HN: CLI for trying out Node.js modules easier by boucher on Monday March 14, 2016 @09:06AM (#11282606)
Obviously it won't work offline if you haven't already installed the package (which seems like the general case?)

I'm biased of course, and I understand why some people are turned off by an in browser solution. But I think it's probably faster, in most cases, to try something you've never installed in Tonic than in this. (And I hope there's genuine value in things like being able to share links to your experiments.)

Re:Show HN: CLI for trying out Node.js modules easier by diggan on Monday March 14, 2016 @09:15AM (#11282668)
Yeah, that is true for sure, difference being that the 10% use-case (installed package before, offline now) is still usable if it's local and not on tonic-dev.

I like tonic-dev, don't get me wrong. But the workflow for using a package in tonic-dev is too slow compared to having it in a REPL, at least for me. Might be because I'm using Firefox and the performance for tonic-dev is terrible there, but mostly because I feel more at home in the terminal than in a js-editor in the browser.

Re:Show HN: CLI for trying out Node.js modules easier by boucher on Monday March 14, 2016 @10:19AM (#11283015)
Understood. We definitely have work to do in Firefox.
Re:Show HN: CLI for trying out Node.js modules easier by benvan on Monday March 14, 2016 @07:14AM (#11282157)
I made something similar a while back : http://benvan.co.uk/js-quickload/

It only works with web libraries though. Try searching for 'moment.js'

Re:Show HN: CLI for trying out Node.js modules easier by breuleux on Monday March 14, 2016 @11:16AM (#11283291)
The online REPL for my compile-to-js language uses JSPM to load NPM packages: http://www.earl-grey.io/repl.html

Try "require: markdown", for example.

I can put up a JavaScript version if it would be useful to anyone, it's not particularly complicated.