electron-version
utility function for getting electron version string
Last updated 8 years ago by ralphtheninja .
WTFPL · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install electron-version 
SYNC missed versions from official npm registry.

electron-version

Find the installed electron version

Node version Build Status JavaScript Style Guide

Install

$ npm i electron-version -S

Usage

Calls back with a version string if electron is installed.

const electronVersion = require('electron-version')
electronVersion(function (err, v) {
  console.log(err, v) // null 'v0.33.4'
})

You can optionally specify a custom path to the electron binary.

const path = require('path')
const electronVersion = require('electron-version')
const electronPath = path.join(__dirname, 'node_modules/.bin/electron')

electronVersion(electronPath, function (err, v) {
  console.log(err, v) // null 'v1.6.3'
})

License

All code, unless stated otherwise, is licensed under the WTFPL license.

Current Tags

  • 2.0.1                                ...           latest (6 years ago)

8 Versions

  • 2.0.1                                ...           6 years ago
  • 2.0.0                                ...           6 years ago
  • 1.1.2                                ...           7 years ago
  • 1.1.1                                ...           7 years ago
  • 1.1.0                                ...           8 years ago
  • 1.0.2                                ...           9 years ago
  • 1.0.1                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 6
Last Day 0
Last Week 6
Last Month 0
Dependencies (3)
Dev Dependencies (2)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |