npm-star

0.0.2 • Public • Published

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"
}

Related

License

MIT © Lim Chee Aun

Package Sidebar

Install

npm i npm-star

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • cheeaun