GithubHelp home page GithubHelp logo

0xh / owner-profiles Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nice-registry/owner-profiles

0.0 2.0 0.0 26.02 MB

✉️ Names, emails, GitHub handles, and more for every npm package author

JavaScript 79.31% Shell 20.69%

owner-profiles's Introduction

owner-profiles

Profile data for every npm author: name, email, GitHub handle, etc.

Installation

npm install owner-profiles --save

Usage

As of version 2, this module exports a leveldb database with npm username strings as keys and user profile objects as values.

const profiles = require('owner-profiles')

To find a specific user:

profiles.get('zeke')

This returns a promise, which resolves to an object like this:

{
  email: '[email protected]',
  name: 'Zeke Sikelianos',
  homepage: 'http://zeke.sikelianos.com',
  github: 'zeke',
  twitter: 'zeke'
}

You can also stream the entire contents of the database:

db.createReadStream()
  .on('data', ({key: username, value: profile}) => {
    console.log(username, profile)
  })
  .on('error', (err) => {
    console.error('Oh my!', err)
  })

For other stuff you can do with the data, see the level API: github.com/Level/level#api

Tests

npm install
npm test

License

MIT

owner-profiles's People

Contributors

zeke avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.