You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rdrew
573c318665
|
2 years ago | |
---|---|---|
.. | ||
LICENSE | 2 years ago | |
README.md | 2 years ago | |
config-path.js | 2 years ago | |
index.js | 2 years ago | |
package.json | 2 years ago |
README.md
v8flags
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