# @devexpress/bin-v8-flags-filter

> Filters out v8 flags for your Node.js CLIs.

Latest version **1.3.0** (published 2022-12-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @devexpress/bin-v8-flags-filter
pnpm add @devexpress/bin-v8-flags-filter
yarn add @devexpress/bin-v8-flags-filter
bun add @devexpress/bin-v8-flags-filter
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.0 |
| Published | 2022-12-22 |
| First published | 2022-12-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 12.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Ivan Nikulin |
| Maintainers | mikhail.kulabukhov, alexslavr, andrey.lepikhov, devexpress-npm-publisher, aleksey_popov, dx_services, yuliya.smirnova, ilyakhd, dmitry-ostashev, devexpress--npm-admin, miherlosev, belym.a.2105, kirovboris, night-skylark, vladislav.volkov, kochkin, olga_larina, sergey.kanaev, mpreyskurantov, elena.dikareva, alexkamaev, magroshenkova, olegkipchatov, elena.soloveva |
| Keywords | v8, flags, bin, filter, remove, v8flags, v8-flags, cli |

## Links

- npm: https://www.npmjs.com/package/@devexpress/bin-v8-flags-filter
- Repository: https://github.com/inikulin/bin-v8-flags-filter
- Homepage: https://github.com/inikulin/bin-v8-flags-filter#readme
- Issues: https://github.com/inikulin/bin-v8-flags-filter/issues
- npm.io page: https://npm.io/package/@devexpress/bin-v8-flags-filter

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.3.0 (latest) — 2022-12-22

## README

# bin-v8-flags-filter
[![Build Status](https://api.travis-ci.org/inikulin/bin-v8-flags-filter.svg)](https://travis-ci.org/inikulin/bin-v8-flags-filter)

*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](https://github.com/mochajs/mocha/blob/master/bin/mocha).

## Install
```
npm install bin-v8-flags-filter
```

## Usage
*In JS file specified as `bin` in your `package.json`:*
```js
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](https://github.com/inikulin) (ifaaan@gmail.com)

---
_Source: https://npm.io/package/@devexpress/bin-v8-flags-filter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
