4 ms·
Next step: a try-it-on-the-web interface?
by amelius 11y ago
Next step: a try-it-on-the-web interface?
- SlashmanX 11y agoDoesn'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?
- amelius 11y agoIn that case, why would we need a CLI tool for trying out packages?
- diggan 11y agoOffline 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.
- boucher 11y agoObviously 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.)
- diggan 11y agoYeah, 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.
- boucher 11y agoUnderstood. We definitely have work to do in Firefox.
- benvan 11y agoI made something similar a while back : http://benvan.co.uk/js-quickload/ http://benvan.co.uk/js-quickload/ It only works with web libraries though. Try searching for 'moment.js'
- breuleux 11y agoThe online REPL for my compile-to-js language uses JSPM to load NPM packages: http://www.earl-grey.io/repl.html 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.