npm github code example

Example 1: npm install directly fron github

npm install git://github.com/shakacode/bootstrap-loader.git#v1 --save

Example 2: npm package github

$ npm login --registry=https://npm.pkg.github.com
> Username: USERNAME
> Password: TOKEN
> Email: PUBLIC-EMAIL-ADDRESS

Example 3: create github packages

dnguyen:~ dalenguyen$ npm login --registry=https://npm.pkg.github.com
Username: GitHub-username
Password: your-personal-access-token
Email: (this IS public) [email protected]
Logged in as dalenguyen on https://npm.pkg.github.com/.