GithubHelp home page GithubHelp logo

devexpress / bin-v8-flags-filter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from inikulin/bin-v8-flags-filter

0.0 1.0 2.0 443 KB

Filters out v8 flags for your Node.js CLIs.

License: MIT License

JavaScript 100.00%

bin-v8-flags-filter's Introduction

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 ([email protected])

bin-v8-flags-filter's People

Contributors

aleksey28 avatar alexandermoskovkin avatar andreybelym avatar dependabot[bot] avatar devinivy avatar inikulin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.