Npm

What is NPM?

NPM-ALK⁺ T-cell anaplastic large-cell lymphoma (ALCL) is an aggressive type of cancer. Standard treatment of NPM-ALK⁺ ALCL is CHOP polychemotherapy. Although patients initially respond favorably to CHOP, resistance, relapse, and death frequently occur. Recently, selective targeting of ALK has emerge. Npm (originally short for Node Package Manager) is a package manager for the JavaScript programming language. It is the default package manager for the JavaScript runtime environment Node.js. It consists of a command line client, also called npm, and an online database of public and paid-for private packages, called the npm registry. NPM NATIONAL OFFICE. 962 Wayne Avenue, Suite 550 Silver Spring, Maryland 20910 Phone: (240) 247-3000 Toll Free: (855) 207-0293 Fax: (240) 247-3001.

NPM is a package manager for Node.js packages, or modules if you like.

www.npmjs.com hosts thousands of free packages to download and use.

Npm

The NPM program is installed on your computer when you install Node.js

Downloading and installing Node.js and npm | npm Docs

What is a Package?

A package in Node.js contains all the files you need for a module.

Modules are JavaScript libraries you can include in your project.

Download a Package

Downloading a package is very easy.

Npm

Open the command line interface and tell NPM to download the package you want.

I want to download a package called 'upper-case':

Download 'upper-case':

Now you have downloaded and installed your first package!

NPM creates a folder named 'node_modules', where the package will be placed. All packages you install in the future will be placed in this folder.

My project now has a folder structure like this:

C:UsersMy Namenode_modulesupper-case

Npm

Using a Package

Once the package is installed, it is ready to use.

Include the 'upper-case' package the same way you include any other module:

Create a Node.js file that will convert the output 'Hello World!' into upper-case letters:

Example

var http = require('http');
var uc = require('upper-case');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/html'});
res.write(uc.upperCase('Hello World!'));
res.end();
}).listen(8080);
Run example »

Npm Install

Save the code above in a file called 'demo_uppercase.js', and initiate the file:

Initiate demo_uppercase:

If you have followed the same steps on your computer, you will see the same result as the example: http://localhost:8080


We're npm, Inc., the company behind Node package manager, the npm Registry, and npm CLI. We offer those to the community for free, but our day job is building and selling useful tools for developers like you.

Take your JavaScript development up a notch

Get started today for free, or step up to npm Pro to enjoy a premium JavaScript development experience, with features like private packages.

Bring the best of open source to you, your team, and your company

Relied upon by more than 11 million developers worldwide, npm is committed to making JavaScript development elegant, productive, and safe. The free npm Registry has become the center of JavaScript code sharing, and with more than one million packages, the largest software registry in the world. Our other tools and services take the Registry, and the work you do around it, to the next level.

Download | Node.js

We love open source

At npm, Inc., we're proud to dedicate teams of full-time employees to operating the npm Registry, enhancing the CLI, improving JavaScript security, and other projects that support and nurture a vibrant open source community.

GitHub - Npm/cli: The Package Manager For JavaScript

Gratefully serving everyone from solo devs to the Fortune 500