UNPKG

1.35 kBMarkdownView Raw
1# v8flags [![Build Status](https://secure.travis-ci.org/tkellen/node-v8flags.png)](http://travis-ci.org/tkellen/node-v8flags) [![Build status](https://ci.appveyor.com/api/projects/status/5jpe6yawxdllrok4?svg=true)](https://ci.appveyor.com/project/tkellen/node-v8flags)
2> Get available v8 flags.
3
4[![NPM](https://nodei.co/npm/v8flags.png)](https://nodei.co/npm/v8flags/)
5
6## Example
7```js
8const v8flags = require('v8flags');
9
10v8flags.fetch(); // [ '--use_strict',
11 // '--es5_readonly',
12 // '--es52_globals',
13 // '--harmony_typeof',
14 // '--harmony_scoping',
15 // '--harmony_modules',
16 // '--harmony_proxies',
17 // '--harmony_collections',
18 // '--harmony',
19 // ...
20```
21
22## Release History
23
24* 2014-05-09 - v0.1.0 - initial release
25* 2014-09-02 - v0.2.0 - cache flags
26* 2014-09-02 - v0.3.0 - keep -- in flag names
27* 2014-09-03 - v1.0.0 - first major version release
28* 2014-11-17 - v1.0.2 - get node executable from `process.env._`
29* 2014-11-17 - v1.0.3 - get node executable during npm install via `process.env.NODE`
30* 2014-11-18 - v1.0.4 - wrap node executable path in quotes
31* 2014-11-26 - v1.0.5 - get node executable from `process.execPath`
32* 2014-12-09 - v1.0.6 - revert to 1.0.0 behavior