github-npm-profile

1.1.0 • Public • Published

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": "sebmck@gmail.com",
  "homepage": "http://sebmck.com",
  "github": null,
  "twitter": null,
  "freenode": "sebmck"
}

cli

github-npm-profile kittens

logs:

{ name: 'Sebastian McKenzie',
  email: 'sebmck@gmail.com',
  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": "sebmck@gmail.com",
    "homepage": "http://sebmck.com",
    "github": null,
    "twitter": null,
    "freenode": "sebmck"
  }
}

license

mit

Readme

Keywords

none

Package Sidebar

Install

npm i github-npm-profile

Weekly Downloads

3

Version

1.1.0

License

MIT

Last publish

Collaborators

  • bevacqua