v8flags
Get available v8 and Node.js flags.
Last updated 5 years ago by phated .
MIT · Repository · Bugs · Original npm
$ cnpm install v8flags 
SYNC missed versions from official npm registry.

v8flags

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

Get available v8 and Node.js 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

Current Tags

  • 3.2.0                                ...           latest (5 years ago)

3 Versions

  • 3.2.0                                ...           5 years ago
  • 2.1.1                                ...           8 years ago
  • 3.1.3                                ...           6 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (8)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org