Posts

Showing posts with the label npm

npm - package manager for node and package.json a overview

npm: node package manager [!an acronym :P] Till the time I got to know about this guy, code upload across servers use to be a tough task. He is the one to look out incase you are to develop an application in node and host it across servers package.json is his weapon ;) In this article I'm just planning to touch npm basics and use of package.json and it is tl;dr ;) What is npm? From here : npm is a package manager for node. You can use it to install and publish your node programs. It manages dependencies and does other cool stuff. Basically node uses commonjs style module system. Every module is an independent piece of javascript code which can be plugged in and out of the core of your application. Modules can be custom built or built for a generic purpose like redis, mysql, async, log4js. And it will be always good to know if there are any pre-built modules available for our need before we start building our own. npm does it for you like a charm :) How do I instal...