root 3bf41bf355 update | 1 anno fa | |
---|---|---|
.. | ||
LICENSE | 1 anno fa | |
README.md | 1 anno fa | |
config-path.js | 1 anno fa | |
index.js | 1 anno fa | |
package.json | 1 anno fa |
Get available v8 flags.
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',
// ...
});
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.
MIT