nouveau-theatre-de-besancon/node_modules/v8flags
2024-09-20 10:32:49 +02:00
..
config-path.js install gulp to process code 2024-09-20 10:32:49 +02:00
index.js install gulp to process code 2024-09-20 10:32:49 +02:00
LICENSE install gulp to process code 2024-09-20 10:32:49 +02:00
package.json install gulp to process code 2024-09-20 10:32:49 +02:00
README.md install gulp to process code 2024-09-20 10:32:49 +02:00

v8flags

NPM version Downloads Build Status Coveralls Status

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