0.1.3 • Published 6 years ago

user-profile v0.1.3

Weekly downloads
6
License
MIT
Repository
github
Last release
6 years ago

user-profile

A Node.js package that retrieves user profiles. A basic package for a scotch.io "Packaging an Npm Library" tutorial.

Usage

First, install the package using npm:

npm install user-profile --save

Then, require the package and use it like so:

var profile = require('user-profile');

Available Methods

  • .github({username})
  • .gitlab({username})
  • .bitbucket({username})

Sample Implementation

profile.github("codediger")

Result:

{
  "login": "codediger",
  "id": 16918891,
  "node_id": "MDQ6VXNlcjE2OTE4ODkx",
  "avatar_url": "https://avatars3.githubusercontent.com/u/16918891?v=4",
  "gravatar_id": "",
  "url": "https://api.github.com/users/codediger",
  "html_url": "https://github.com/codediger",
  "followers_url": "https://api.github.com/users/codediger/followers",
  "following_url": "https://api.github.com/users/codediger/following{/other_user}",
  "gists_url": "https://api.github.com/users/codediger/gists{/gist_id}",
  "starred_url": "https://api.github.com/users/codediger/starred{/owner}{/repo}",
  "subscriptions_url": "https://api.github.com/users/codediger/subscriptions",
  "organizations_url": "https://api.github.com/users/codediger/orgs",
  "repos_url": "https://api.github.com/users/codediger/repos",
  "events_url": "https://api.github.com/users/codediger/events{/privacy}",
  "received_events_url": "https://api.github.com/users/codediger/received_events",
  "type": "User",
  "site_admin": false,
  "name": "Orinami Olatunji",
  "company": "Korex",
  "blog": "orinami.space",
  "location": "Lagos, Nigeria",
  "email": null,
  "hireable": true,
  "bio": "Frontend Engineer ",
  "public_repos": 79,
  "public_gists": 1,
  "followers": 30,
  "following": 19,
  "created_at": "2016-01-27T12:57:56Z",
  "updated_at": "2018-06-23T10:35:55Z"
}

Try these

profile.gitlab("codediger");
profile.bitbucket("orinami");

License

MIT

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

7 years ago

0.1.0

7 years ago