@devexpress/bin-v8-flags-filter

中文文档
1.3.0发布于 2022/12/22MITCommonJS零依赖近 30 天下载 58.1万

Filters out v8 flags for your Node.js CLIs.

此软件包已被标记为弃用

The @devexpress/bin-v8-flags-filter package is deprecated and will no longer receive updates.

原始使用文档
文档目录4 节
  1. Install
  2. Usage
  3. API
  4. Author

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

版本与发布记录

@devexpress/bin-v8-flags-filter 共发布 1 个版本,首次发布于 2022/12/22;过去 12 个月发布了 0 个版本。

版本发布日期距今
1.3.0latest2022/12/223 年前

关于 @devexpress/bin-v8-flags-filter 的常见问题

@devexpress/bin-v8-flags-filter 是什么?

Filters out v8 flags for your Node.js CLIs.注意:该包已被作者标记为弃用——The @devexpress/bin-v8-flags-filter package is deprecated and will no longer receive updates.

如何安装 @devexpress/bin-v8-flags-filter?

在项目目录运行 npm install @devexpress/bin-v8-flags-filter,或使用 pnpm add / yarn add / bun add。

@devexpress/bin-v8-flags-filter 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/devexpress__bin-v8-flags-filter 是否存在。

@devexpress/bin-v8-flags-filter 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@devexpress/bin-v8-flags-filter 可以商用吗?

@devexpress/bin-v8-flags-filter 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@devexpress/bin-v8-flags-filter 的下载量有多少?

根据 npm 官方下载统计,@devexpress/bin-v8-flags-filter 在 2026/10/12 – 2026/11/10 这 30 天内被下载 580,523 次,日均约 19,351 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@devexpress/bin-v8-flags-filter 还在维护吗?

最新版本 1.3.0 发布于 2022/12/22(3 年前);至今共发布 1 个版本,其中过去 12 个月发布了 0 个;首次发布于 2022/12/22。作者已将其标记为弃用,新项目建议寻找替代方案。