npm.io
0.0.2 • Published 9 years agoCLI

npm-star

Licence
MIT
Version
0.0.2
Deps
4
Vulns
1
Weekly
0
Stars
11
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

npm-star npm version

Star GitHub repositories of your project's npm dependencies. First inspired by bundle-star.

Screenshot of npm-star

Install

npm install --global npm-star
# or
yarn global add npm-star

Local install

npm install --save-dev npm-star
# or
yarn add --dev npm-star

Usage

Setup a .netrc file

npm-star depends on .netrc to access the GitHub API. Put your GitHub credentials into .netrc file (located at ~/.netrc), so that you can access the GitHub API.

Here's a sample .netrc file. Execute chmod 600 ~/.netrc to avoid permission error.

machine api.github.com
  login <your github account>
  password <your github token, from <https://github.com/settings/tokens>

IMPORTANT: Make sure public_repo is checked when creating a new token. This is needed for starring repositories .

Use npm-star or yarn-star
npm-star
# or
yarn-star

If it's a local installation, add as postinstall script in package.json :

"scripts": {
  ...,
  "postinstall": "npm-star"
}

License

MIT Lim Chee Aun

Keywords