webkit-npm v3.1.1
Webkit npm
Experiment with npm and how to create a package and publish it online. Node Package Manager (npm) needs node.js to be installed in order for any application or package to run.
Installation
To install this package you can do:
npm install webkit-npmGetting started
Start the application with:
node index.jsIt should be running on localhost:3000 and you should see "Hello World".
Try going to different pages or using a query like:
http://localhost:3000/?firstname=John&lastname=DoeCreate a Package
Once you have installed node (npm is included) you'll need to create the package.json which is where the node dependecies and project information is sotred. The best way to do it:
npm initThen you can test the installation of your package using:
npm install -dPublish a package
You should have an account created on npm. Once it is done, add the user to the machine using:
npm adduserThen you can publish your package (you need to be a level higher of your package to do that).
npm publishTo publish a package you need a unique name, you can test if your package name is taken or not with:
npm view unique-package-name