Socket
Book a DemoInstallSign in
Socket

v8flags

Package Overview
Dependencies
Maintainers
3
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

v8flags

Get available v8 and Node.js flags.

Source
npmnpm
Version
3.2.0
Version published
Weekly downloads
2.5M
-8.02%
Maintainers
3
Weekly downloads
 
Created
Source

v8flags

NPM version Downloads Travis Build Status AppVeyor Build Status Coveralls Status Gitter chat

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

Keywords

v8 flags

FAQs

Package last updated on 31 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts