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

unlisted-friends

v1.1.10

Published

A library for verify which following friends on Twitter that are not in your lists.

Downloads

5

Readme

Unlisted Friends

Travis Codecov npm npm

A library for verify which following friends on Twitter that are not in your lists.

Install and setup

npm install --save unlisted-friends

You need to provide your own application keys for use the Twitter API.

  1. Visit https://dev.twitter.com/apps and register a new application.
  2. Go to the application Keys and Access Tokens page.
  3. Click on Create my access token to generate your access tokens.*
  4. Pass the consumer key and consumer secret as second and third arguments respectively when you use the library.

* The access tokens is for have private permissions for your personal account.

How to use

The method returns a Promise with the a list of the names of the unlisted friends.

const unlisted = require('unlisted-friends');
const friends = unlisted.get('glrodasz', '<PUT YOUR KEY HERE>', '<PUT YOUR SECRET HERE>');

friends.then(console.log).catch(console.log);

If you have all your friends in list you will get something like:

> [Error: @glrodasz does not have unlisted friends.]

But if you have unlisted friends you will get something like:

> ['hugeinc', 'auth0']

The Twitter API has some rate limits window divided into 15 minute intervals when you use application-only authentication. Learn more.

The library will print a message with the related error:

> [Error: Rate limit exceeded From Twitter API threw in members module.]

Notes

In order to avoid the Twitter API rate limit, this library retrieves only 6000 friends, 15 public lists and 5000 members for each list.

Development

In order to run the tests locally you need to rename the file keys.json.example to keys.json and put your consumer and secret keys.