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

repos-using-electron

v1.11.0

Published

A collection of all public repositories on GitHub that depend on `electron-prebuilt`

Downloads

31

Readme

repos-using-electron Build Status

A collection of all public GitHub repositories that depend on electron or electron-prebuilt.

Uses the libraries.io to find dependent repos, and the GitHub API to fetch latest package.json for each repo.

Installation

npm install repos-using-electron --save

Usage

When you require this module, you get an array of repository objects.

const repos = require('repos-using-electron')

To find a specific repo:

const hyperterm = repos.find(repo => repo.fullName === 'zeit/hyperterm')

Each repo has a pkg property that is a nice package. This gives you some convenience functions:

hyperterm.pkg.dependsOn('object-values') // true
hyperterm.pkg.devDependsOn('webpack') // true
hyperterm.pkg.somehowDependsOn('hoarders') // false

Find the top 30 repos that depend on electron-builder (repos are sorted by forksCount by default):

repos
  .filter(repo => repo.pkg.somehowDependsOn('electron-builder'))
  .slice(0, 30)
  .map(repo => repo.fullName)

Open those top 30 repos in your browser:

const open = require('open')

repos
  .filter(repo => repo.pkg.somehowDependsOn('electron-builder'))
  .slice(0, 30)
  .map(repo => open(repo.htmlUrl))

Development

To hack on this thing you'll need a Libraries.io API key and a GitHub Personal Access Token with repo access. Put your keys in a .env file; they'll be loaded into the environment at runtime:

touch .env
echo LIBRARIES_IO_API_KEY=foo >> .env
echo GITHUB_ACCESS_TOKEN=bar >> .env

Then list the scripts you can run:

npm run

Tests

npm install
npm test

Dependencies

Dev Dependencies

  • chai: BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
  • dotenv: Loads environment variables from .env file
  • get-repo-package-json: Fetch a GitHub repository's package.json file using the GitHub API
  • limiter: A generic rate limiter for node.js. Useful for API clients, web crawling, or other tasks that need to be throttled
  • lodash.uniq: The lodash method _.uniq exported as a module.
  • mocha: simple, flexible, fun test framework
  • npm-run-all: A CLI tool to run multiple npm-scripts in parallel or sequential.
  • octokat: Javascript GitHub client for NodeJS or a browser using promises or callbacks
  • path-exists: Check if a path exists
  • pify: Promisify a callback-style function
  • request: Simplified HTTP request client.
  • standard: JavaScript Standard Style
  • standard-markdown: Test your Markdown files for Standard JavaScript Style™

License

MIT