JSPM

  • Created
  • Published
  • Downloads 4475313
  • Score
    100M100P100Q204119F
  • License MIT

Get available v8 flags.

Package Exports

  • v8flags

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (v8flags) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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