5

I'm new to JavaSript, and I like JS Bin, but on desktop no thing is the same for development. Is there a way to work with JS Bin without access to the website?

rsp
  • 107,747
  • 29
  • 201
  • 177
Tu Do dinh
  • 59
  • 1
  • 2
  • 7
    I don't know why was this question closed as "not a real question". It's trivial to tell what is being asked here. It is not ambiguous, vague, incomplete, overly broad, or rhetorical and it certainly can be reasonably answered (in which I hopefully succeeded) even in its original form. The only problem that it had was that the English needed some copy editing (which I did). I think it's better to fix the minor problems with English rather than discourage new users by flagging their first questions as not real questions when it is clearly not the case. – rsp Oct 31 '12 at 09:25
  • overzealous SO user close this question again? – slier Mar 06 '14 at 23:15

1 Answers1

5

Yes, it is possible to install it on your own computer and it is a great way to start experimenting with server-side JavaScript because JS Bin itself is itself written in JavaScript. The source code of JS Bin is available on GitHub and the jsbin module is available for Node.js.

First you have to install Node.js. Then you will have to install the jsbin module with a command:

npm install jsbin

And the jsbin command should now be available. If you run it you should have a fully functional version of JS Bin available at http://localhost:3000/

rsp
  • 107,747
  • 29
  • 201
  • 177
  • `npm install jsbin` don't work for me - it throws an error I don't understand: "npm ERR! Error: getaddrinfo EAGAIN npm ERR! at errnoException (dns.js:37:11) npm ERR! at Object.onanswer [as oncomplete] (dns.js:124:16)" – Matt Jun 25 '13 at 11:27
  • @Matt, is that working for you now? it worked fine for me. – JGallardo Nov 12 '13 at 20:43
  • @Matt, could be a few things. Can you post it as it's own question along with the errors. Then send me the link so I can forward it to a few people. Thanks. – JGallardo Nov 13 '13 at 17:57
  • @JGallardo: I've created a question as you suggested [here.](http://stackoverflow.com/q/19988889/1016343) – Matt Nov 14 '13 at 21:37