Skip to content
Get available v8 flags.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test Fix: Default flags to empty array (fixes #53) May 9, 2019
.editorconfig
.eslintrc
.gitattributes
.gitignore Scaffold: Normalize repository Dec 17, 2018
.npmrc Scaffold: Normalize repository Dec 17, 2018
.travis.yml Build: Add node 12 to travis May 9, 2019
LICENSE Scaffold: Normalize repository Dec 17, 2018
README.md Scaffold: Normalize repository Dec 17, 2018
appveyor.yml Scaffold: Normalize repository Dec 17, 2018
config-path.js Scaffold: Normalize repository Dec 17, 2018
index.js Fix: Default flags to empty array (fixes #53) May 9, 2019
package.json Release: 3.1.3 May 9, 2019

README.md

v8flags

NPM version Downloads Travis Build Status AppVeyor Build Status Coveralls Status Gitter chat

Get available v8 flags.

Usage

const v8flags = require('v8flags');

v8flags(function(err, results) {
  console.log(results);
  // [ '--use_strict',
  //   '--es5_readonly',
  //   '--es52_globals',
  //   '--harmony_typeof',
  //   '--harmony_scoping',
  //   '--harmony_modules',
  //   '--harmony_proxies',
  //   '--harmony_collections',
  //   '--harmony',
  // ...
});

API

v8flags(cb)

Finds the available flags and calls the passed callback with any errors and an array of flag results.

v8flags.configfile

The name of the cache file for flags.

v8flags.configPath

The filepath location of the configfile above.

License

MIT

You can’t perform that action at this time.