Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

bin-v8-flags-filter

1.1.3 • Public • Published

bin-v8-flags-filter

Build Status

Filters out v8 flags for your Node.js CLIs.

Filters out well-known v8 flags given to your app and spawns new process with v8 flags passed to Node.js and the rest of the args passed to your actual CLI. Basically an extraction of related mocha code.

Install

npm install bin-v8-flags-filter

Usage

In JS file specified as bin in your package.json:

const v8FlagsFilter = require('bin-v8-flags-filter');
const path = require('path');
 
const cliPath = path.join(__dirname, './cli.js'); // Path to your actual CLI file that contains app code.
 
v8FlagsFilter(cliPath);

Author

Ivan Nikulin (ifaaan@gmail.com)

install

npm i bin-v8-flags-filter

Downloadsweekly downloads

69,742

version

1.1.3

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability