-->

How to download JS Bin to my computer to code [clo

2019-05-01 11:52发布

问题:

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?

回答1:

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/