0.0.2 ā€¢ Published 7 years ago

npm-star v0.0.2

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

npm-star npm version

Star GitHub repositories of your project's npm dependencies. First inspired by bundle-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"
}

Related

License

MIT Ā© Lim Chee Aun