[{"data":1,"prerenderedAt":255},["ShallowReactive",2],{"project-11281392":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":28,"sentiment":29,"stance_mix":30,"scored_comments":34,"aspects":35,"strip":39,"post_text":41,"what":42,"said":70,"maker_in_thread":166,"shape":173,"grid":176,"attempts":218,"same_week":219,"maker_shows":246,"maker_hidden":247,"reader_version":248,"card":249},"11281392","trymodule","CLI for trying out Node.js modules easier","title","Show HN: CLI for trying out Node.js modules easier","https:\u002F\u002Fgithub.com\u002FVictorBjelkholm\u002Ftrymodule","github.com","diggan",1457937735,2016,58,22,649,2264,29,"notable","dev_tools","cli package tester","cli",[24,25,26,22,27],"node.js modules","npm","try module","repl","debated",0.083,{"positive":31,"neutral":31,"mixed":32,"critical":33},2,0,3,7,{"idea":36,"execution":38},{"positive":37,"critical":33},1,{"positive":37,"critical":32},[40,32,32,32,32,32,37,32,40,32,33,32,32,33,37,37,32,32,32,32,32,32],5,null,{"problem":43,"audience":50,"pricing":41,"motivation":54,"time_to_build":41,"stack":62,"openness":68,"stage":69,"team_size":69},{"value":44,"source":45,"evidence":46},"Trying out Node.js modules requires installing and setting up a project first","inferred",[47],{"id":48,"by":11,"text":49},"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…",{"value":51,"source":45,"evidence":52},"Node.js developers",[53],{"id":48,"by":11,"text":49},{"value":55,"source":56,"evidence":57},"Wanted a quicker way to try npm modules in a terminal REPL, inspired by lein-try","maker",[58,61],{"id":59,"by":11,"text":60},"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:\u002F\u002Fgithub.com\u002Frkneufeld\u002Flein-try). Thanks for…",{"id":48,"by":11,"text":49},[63],{"value":64,"source":45,"evidence":65},"Node.js",[66],{"id":67},"post","open_source","unknown",{"praise":71,"objections":84,"requests":114,"questions":134,"alternatives":139},[72],{"value":73,"source":74,"evidence":75},"Clever small idea built from reusable modules","commenter",[76,80],{"id":77,"by":78,"text":79},"11281395","gravypod","This is one of those really cool ideas that is obvious after someone else much smarter then yourself thinks of it first. I wish this was in NPM.",{"id":81,"by":82,"text":83},"11282936","murukesh_s","Just 57 lines of code. Someone was asking about beautiful code in other thread, I believe this is a fine example of it. Plumbing together reusable modules to build useful (and…",[85,92,107],{"value":86,"source":74,"evidence":87},"Not a new idea; Clojure and Haskell versions already exist",[88],{"id":89,"by":90,"text":91},"11282994","nilved","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:\u002F\u002Fgithub.com\u002Frkneufeld\u002Flein-try…",{"value":93,"source":74,"evidence":94},"Browser-based tonicdev already offers trying packages",[95,99,103],{"id":96,"by":97,"text":98},"11281754","tolmasky","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:…",{"id":100,"by":101,"text":102},"11282064","SlashmanX","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?",{"id":104,"by":105,"text":106},"11282154","amelius","In that case, why would we need a CLI tool for trying out packages?",{"value":108,"source":74,"evidence":109},"npm CLI is too noisy and slow",[110],{"id":111,"by":112,"text":113},"11282829","Touche","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…",[115,122,128],{"value":116,"source":74,"evidence":117},"Automatically load an example from npm docs or repo",[118],{"id":119,"by":120,"text":121},"11282026","alehander42","It would be very cool to detect an example from npm docs or github repo and input it initially!",{"value":123,"source":56,"evidence":124},"Offline support for the tool",[125],{"id":126,"by":11,"text":127},"11282551","Glad to see you here, I love tonicdev and use it when I can! Too bad I can't try out CLI\u002FTerminal specific stuff in it, at least what I found so far... However, one question, you…",{"value":129,"source":74,"evidence":130},"Web-based try-it interface",[131],{"id":132,"by":105,"text":133},"11282019","Next step: a try-it-on-the-web interface?",[135],{"value":136,"source":74,"evidence":137},"Why need a CLI when tonicdev exists in the browser",[138],{"id":104,"by":105,"text":106},[140,144,148,152,159],{"value":141,"source":56,"evidence":142},"lein-try (Clojure)",[143],{"id":59,"by":11,"text":60},{"value":145,"source":74,"evidence":146},"cabal-try (Haskell)",[147],{"id":89,"by":90,"text":91},{"value":149,"source":74,"evidence":150},"tonicdev npm try-it-now",[151],{"id":96,"by":97,"text":98},{"value":153,"source":74,"evidence":154},"js-quickload",[155],{"id":156,"by":157,"text":158},"11282157","benvan","I made something similar a while back : http:\u002F\u002Fbenvan.co.uk\u002Fjs-quickload\u002F It only works with web libraries though. Try searching for 'moment.js'",{"value":160,"source":74,"evidence":161},"earl-grey online REPL with JSPM",[162],{"id":163,"by":164,"text":165},"11283291","breuleux","The online REPL for my compile-to-js language uses JSPM to load NPM packages: http:\u002F\u002Fwww.earl-grey.io\u002Frepl.html Try \"require: markdown\", for example. I can put up a JavaScript…",{"comments":34,"answered":31,"key":167},[168,169,170],{"id":59,"text":60},{"id":126,"text":127},{"id":171,"text":172},"11283009","As replied below, the inspiration of trymodule is coming from lein-try :) And awesome to see I could inspire cabal-try to be conceived! (even though I do zero Haskell)",{"commenters":174,"max_depth":34,"maker_replies":34,"first_comment_mins":31,"lifespan_hours":175},13,9,[177,179,181,183,185,188,189,191,192,194,197,198,200,203,204,205,206,207,210,213,216,217],[77,32,40,178,78,32],"project\u002Fpositive\u002Fidea",[59,32,32,180,11,37],"maker\u002Fneutral\u002Fidea",[96,32,32,182,97,32],"other\u002Fneutral\u002Fnone",[126,32,32,184,11,37],"project\u002Fneutral\u002Fidea",[186,32,32,182,187,32],"11283620","BillinghamJ",[111,32,32,182,112,32],[89,32,37,190,90,32],"project\u002Fcritical\u002Fidea",[171,32,32,180,11,37],[81,37,40,193,82,32],"project\u002Fpositive\u002Fexecution",[195,37,32,196,11,37],"11282965","maker\u002Fpositive\u002Fexecution",[119,31,33,184,120,32],[199,31,32,182,97,32],"11282078",[201,31,32,202,11,37],"11282320","maker\u002Fpositive\u002Fidea",[132,33,33,184,105,32],[100,33,37,190,101,32],[104,33,37,190,105,32],[48,33,32,178,11,37],[208,33,32,182,209,32],"11282606","boucher",[211,33,32,212,11,37],"11282668","project\u002Fneutral\u002Fperformance",[214,33,32,215,209,32],"11283015","other\u002Fneutral\u002Fperformance",[156,33,32,182,157,32],[163,33,32,182,164,32],[],[220,225,229,233,237,241],{"id":221,"name":222,"points":223,"category":224},"11290720","Podcat",401,"productivity",{"id":226,"name":227,"points":228,"category":20},"11287540","amplify",279,{"id":230,"name":231,"points":232,"category":20},"11283978","Zube 1.0",206,{"id":234,"name":235,"points":236,"category":20},"11261953","GitHub News (gitlogs)",184,{"id":238,"name":239,"points":240,"category":20},"11260956","Spotbot",179,{"id":242,"name":243,"points":244,"category":245},"11282344","CodeMill",169,"web_saas",10,false,"v2",{"id":250,"name":5,"line":6,"ai":247,"cat":20,"year":13,"points":14,"comments":15,"rec":28,"s":251,"top":18,"kw":252,"maker":11,"domain":10,"tier":19,"attempts":32,"strip":253,"url":9,"mix":254,"praise":73,"objection":86,"sub":21},11281392,0.08,[24,25,26,22,27],"5000001050300311000000",[31,31,32,33],1794036542076]