Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

electron-releases

Package Overview
Dependencies
Maintainers
1
Versions
1273
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-releases

Complete and up-to-date info about every release of Electron

  • 1.8.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
23K
decreased by-8.18%
Maintainers
1
Weekly downloads
 
Created
Source

electron-releases

Complete and up-to-date info about every release of Electron.

This package:

  • includes all GitHub Releases data about Electron.
  • does not include draft releases.
  • includes prereleases which are not published to npm.
  • tracks which versions are published to npm.
  • tracks npm dist-tags like latest and beta.
  • includes V8, Chromium, and Node.js version data.
  • includes GitHub-flavored HTML for each release's changelog.
  • ignores npm versions from the days before Electron was electron.
  • is updated daily.

Installation

npm i electron-releases

Usage

The module exports an array of release objects:

const releases = require('electron-releases')

// find newest version:
releases[0].tag_name // => 'v1.8.2-beta.3'

// find `latest` on npm, which is not necessarily the most recent release:
releases.find(release => release.npmDistTag === 'latest')

// find `beta` on npm:
releases.find(release => release.npmDistTag === 'beta')

Data

Each release contains all the data returned by the GitHub Releases API, plus some extra properties:

  • version (String) - the same thing as dist_tag, but without the v for convenient semver comparisons.
  • npmDistTag (String) - an npm dist-tag like latest or beta. Most releases will not have a dist tag.
  • npmPackageName (String) - For packages published to npm, this will be electron or electron-prebuilt
  • totalDownloads (Number) - Total downloads of all assets in the release that have a detectable platform in their filename like .zip, .dmg, .exe, .rpm, .deb, etc.
  • dependencyVersions (Object) - version numbers for Electron dependencies.
    • v8 (String)
    • chromium (String)
    • node (String)
    • etc..

Tests

npm install
npm test

Dependencies

None

Dev Dependencies

  • chai: BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
  • check-for-leaks: avoid publishing secrets to git and npm
  • dotenv-safe: Load environment variables from .env and ensure they are defined
  • github: NodeJS wrapper for the GitHub API
  • got: Simplified HTTP requests
  • hubdown: Convert markdown to GitHub-style HTML using a common set of remark plugins
  • lodash: Lodash modular utilities.
  • mocha: simple, flexible, fun test framework
  • npm: a package manager for JavaScript
  • parse-link-header: Parses a link header and returns paging information for each contained link.
  • semver: The semantic version parser used by npm.
  • standard: JavaScript Standard Style
  • standard-markdown: Test your Markdown files for Standard JavaScript Style™

License

MIT

FAQs

Package last updated on 19 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc