Giter VIP home page Giter VIP logo

repos-using-electron's Introduction

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

repos-using-electron's People

Contributors

zeke avatar

Watchers

 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.