Re:Show HN: CLI for trying out Node.js modules easier
by tolmasky on Monday March 14, 2016 @05:10AM
(#11281754)
Actually it is, at least the npm website. Every page on npm has a "try it now" link that takes you to a page on tonicdev where you can try the package. For example: http://tonicdev.com/npm/canvas - no need to download, build, or install. It loads a container so you have a real node environment (I'm a dev in this if you have any questions).
Re:Show HN: CLI for trying out Node.js modules easier
by BillinghamJ on Monday March 14, 2016 @12:06PM
(#11283620)
I use this regularly - it's great. Only issue is I can never remember the domain name! :)
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.
Re:Show HN: CLI for trying out Node.js modules easier
by diggan on Monday March 14, 2016 @08:55AM
(#11282551)
Glad to see you here, I love tonicdev and use it when I can! Too bad I can't try out CLI/Terminal specific stuff in it, at least what I found so far...
However, one question, you guys have any plans for an offline version?
Re:Show HN: CLI for trying out Node.js modules easier
by Touche on Monday March 14, 2016 @09:44AM
(#11282829)
I want NPM to do less, not more. Start by fixing the cli, make it far less noisy than it is; think about whether you need to dump a project's entire dependency tree (which might consume my terminal's entire scrollable space -- a big no-no). Think about whether you should allow a module 6 levels deep that depends on a deprecated version of babel display warnings about that; is that relevant to my project? Oh, and group warnings together, don't dump them as you find them.
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.
Re:Show HN: CLI for trying out Node.js modules easier
by diggan on Monday March 14, 2016 @02:46AM
(#11281398)
Absolutely! And I'm no way the first person who did this, my inspiration comes from diving into clojure and finding `lein-try` (https://github.com/rkneufeld/lein-try).
Thanks for your kind words though.
Re:Show HN: CLI for trying out Node.js modules easier
by nilved on Monday March 14, 2016 @10:16AM
(#11282994)
This isn't a new idea. I enjoyed using a Clojure equivalent for a while[0], and this post inspired me to create a Haskell version[1].
[0]: https://github.com/rkneufeld/lein-try [1]: https://github.com/devlinzed/cabal-try
I wish this was in NPM.