Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@devexpress/bin-v8-flags-filter

Package Overview
Dependencies
Maintainers
24
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devexpress/bin-v8-flags-filter

Filters out v8 flags for your Node.js CLIs.

  • 1.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
108K
decreased by-36.04%
Maintainers
24
Weekly downloads
 
Created
Source

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);

API

v8FlagsFilter(path, [options])
  • path - path to CLI script.
  • options - an optional object with the following optional keys:
    • ignore - an array of v8 flags to ignore, i.e. to not filter-out when spawning a new process.
    • forcedKillDelay - a number of milliseconds after which to send a kill command to the spawned process, only after an interrupt has already been issued. Defaults to 30000.
    • useShutdownMessage - rather than forwarding along interrupt signals to the spawned process, instead forwards a 'shutdown' message to the spawned process.

Author

Ivan Nikulin (ifaaan@gmail.com)

Keywords

FAQs

Package last updated on 22 Dec 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc