github-npm-profile
v1.1.0
Published
Infer a GitHub user's npm profile
Downloads
4
Readme
github-npm-profile
Infer a GitHub user's npm profile
install
npm i github-npm-profile -S
api
const getProfile = require('github-npm-profile');
getProfile('kittens').then(user => console.log(user));
logs:
{
"name": "Sebastian McKenzie",
"email": "[email protected]",
"homepage": "http://sebmck.com",
"github": null,
"twitter": null,
"freenode": "sebmck"
}
cli
github-npm-profile kittens
logs:
{ name: 'Sebastian McKenzie',
email: '[email protected]',
homepage: 'http://sebmck.com',
github: null,
twitter: null,
freenode: 'sebmck' }
web
curl https://github-npm-profile.herokuapp.com/kittens
response:
{
"status": 200,
"body": {
"name": "Sebastian McKenzie",
"email": "[email protected]",
"homepage": "http://sebmck.com",
"github": null,
"twitter": null,
"freenode": "sebmck"
}
}
license
mit