Initial commit
[yaffs-website] / node_modules / v8flags / README.md
1 # v8flags [![Build Status](https://secure.travis-ci.org/js-cli/js-v8flags.png)](http://travis-ci.org/js-cli/js-v8flags) [![Build status](https://ci.appveyor.com/api/projects/status/9psgmwayx9kpol1a?svg=true)](https://ci.appveyor.com/project/js-cli/js-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
8 const v8flags = require('v8flags');
9
10 v8flags(function (err, results) {
11   console.log(results);  // [ '--use_strict',
12                          //   '--es5_readonly',
13                          //   '--es52_globals',
14                          //   '--harmony_typeof',
15                          //   '--harmony_scoping',
16                          //   '--harmony_modules',
17                          //   '--harmony_proxies',
18                          //   '--harmony_collections',
19                          //   '--harmony',
20                          // ...
21 });
22 ```
23
24 ## Release History
25
26 * 2015-12-07 - v2.0.11 - cache to temp directory if home is present but unwritable
27 * 2015-07-28 - v2.0.10 - don't throw for electron runtime, just call back with empty array
28 * 2015-06-25 - v2.0.9 - call back with flags even if cache file can't be written
29 * 2015-06-15 - v2.0.7 - revert to 2.0.5 behavior.
30 * 2015-06-15 - v2.0.6 - store cache file in ~/.cache or ~/AppData/Local depending on platform
31 * 2015-04-18 - v2.0.5 - attempt to require config file, if this throws for any reason, fopen w+ and re-create
32 * 2015-04-16 - v2.0.4 - when concurrent processes are run and no config exists, don't append to the cached config.
33 * 2015-03-31 - v2.0.3 - prefer to store config files in user home over tmp
34 * 2015-01-18 - v2.0.2 - keep his dark tentacles contained
35 * 2015-01-15 - v2.0.1 - store temp file in `os.tmpdir()`, drop support for node 0.8
36 * 2015-01-15 - v2.0.0 - make the stupid thing async
37 * 2014-12-22 - v1.0.8 - exclude `--help` flag
38 * 2014-12-20 - v1.0.7 - pre-cache flags for every version of node from 0.8 to 0.11
39 * 2014-12-09 - v1.0.6 - revert to 1.0.0 behavior
40 * 2014-11-26 - v1.0.5 - get node executable from `process.execPath`
41 * 2014-11-18 - v1.0.4 - wrap node executable path in quotes
42 * 2014-11-17 - v1.0.3 - get node executable during npm install via `process.env.NODE`
43 * 2014-11-17 - v1.0.2 - get node executable from `process.env._`
44 * 2014-09-03 - v1.0.0 - first major version release
45 * 2014-09-02 - v0.3.0 - keep -- in flag names
46 * 2014-09-02 - v0.2.0 - cache flags
47 * 2014-05-09 - v0.1.0 - initial release