npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

angellist

v0.1.0

Published

Node module that wraps the AngelList API

Downloads

2

Readme

node-angellist: Easy wrapper around the AngelList API

This module is designed to be an easy-to-use wrapper around the AngelList API. This module is designed to be used with node.js.

Install

Or from source:

Simple Examples

var angel = require('angellist');

// Init the object with your API key
angel.init(clientID, clientSecret);

// Search for a company name
angel.search('pickmoto', function(error, results) {
 if (!error) {
    console.log(results) // Print the search results
  }
});

Documentation

Please refer to the AngelList API documentation for more detail on their API.

AngelList API

Inits the object with your client data;

Arguments

  • clientID - Your client ID
  • clientSecret - Your client secret

Example

// Init an AngelList object
var angel = require('angellist');
angel.init(clientID, clientSecret);

Returns the URL needed to start the authentication process.

Example

// Redirect the user to the auth URL
var url = angel.getAuthUrl();
res.redirect(url);

Requests an access token for a user who has authenticated your application

Arguments

  • code - Returned from AngelList after the user has authenticated your app
  • callback(err, body) - A callback which is called after the API call has returned, or an error has occurred.

Example

// Fetch the access token
angel.requestAccessToken(req.query['code'], function(err, body) {
 if (!error) {
    // Set the access token
    angel.setAccessToken(body.access_token);
  }
});

Stores the access token returned from AngelList

Arguments

  • token - Token to save

Example

// Fetch the access token
angel.requestAccessToken(req.query['code'], function(err, body) {
 if (!error) {
    // Set the access token
    angel.setAccessToken(body.access_token);
  }
});

Returns the information about the logged-in user

Arguments

  • callback(err, body) - A callback which is called after the API call has returned, or an error has occurred.

Example

// Fetch the posts for a company/person
angel.getMe(function(err, user) {
 if (!error) {
    console.log(user);
  }
});

Returns the search results from a query.

Arguments

  • query - The person or company to search for
  • callback(err, body) - A callback which is called after the API call has returned, or an error has occurred.

Example

// Search for a person or company
angel.search('pickmoto', function(err, results) {
 if (!error) {
    console.log(results);
  }
});

Returns the information about a user by their AngelList ID.

Arguments

  • angelID - The AngelList ID of the person to get information for.
  • callback(err, body) - A callback which is called after the API call has returned, or an error has occurred.

Example

// Search for a person or company
angel.getUserById(77, function(err, user) {
 if (!error) {
    console.log(user);
  }
});