JSPM

  • Created
  • Published
  • Downloads 98
  • Score
    100M100P100Q85864F

A simple module to add git contributors to your package.json.

Package Exports

  • contributor

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (contributor) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

#Contributor Build Status

A simple module to add git contributors to your package.json.

Install from npm

$ npm install contributor

Run

To grab contributor info from your github repo, cd into the directory containing your package.json and run:

$ contributor

Bingo!

Behind the scenes

Contributor checks your package.json for your github repo, then requests collaborator info from the github api and adds it to your package.json. Super simple.

It will make a backup your original to .package.json so all your secret codes are safe.

Pro tip: Add a git push alias and kill a couple birds.

$ git config alias.pushc \!git push $1 $2 && contributor

This will simply add the pushc alias to your .git/config file like so:

[alias]
  pushc = !git push $1 $2 && contributor
  

Then you can run git pushc origin master, and voila! Give it a try on your next project and let me know what you think!