New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

user-profile

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

user-profile

An NPM package to get a user profile on various platforms

latest
Source
npmnpm
Version
0.1.3
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

npm

FAQs

Package last updated on 23 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts