Show HN: CLI for trying out Node.js modules easier
github.com
github.com
I wish this was in NPM.
Thanks for your kind words though.
However, one question, you guys have any plans for an offline version?
It'd actually be pretty helpful if you made it something like https://try.tonicdev.com/npm/canvas because then I can just type "try." and my browser will find it for me.
This is all just off the top of my head. Making it faster would be good too, shouldn't take 15 minutes to install a project's dependencies; pnpm and others are proving this is fixable.
[0]: https://github.com/rkneufeld/lein-try [1]: https://github.com/devlinzed/cabal-try
And awesome to see I could inspire cabal-try to be conceived! (even though I do zero Haskell)
Thanks for the kind words though, warms my heart that someone likes it.
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.)
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.
It only works with web libraries though. Try searching for 'moment.js'
Try "require: markdown", for example.
I can put up a JavaScript version if it would be useful to anyone, it's not particularly complicated.