# v8flags

> Get available v8 and Node.js flags.

Latest version **4.0.1** (published 2023-09-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install v8flags
pnpm add v8flags
yarn add v8flags
bun add v8flags
```

## Health

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

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.0.1 |
| Published | 2023-09-03 |
| First published | 2014-05-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/v8flags) |
| Module format | CommonJS |
| Node | >= 10.13.0 |
| Dependencies | 0 |
| Unpacked size | 9.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 57 |
| Author | Gulp Team |
| Maintainers | sttk, phated |
| Keywords | v8 flags, harmony flags |

## Links

- npm: https://www.npmjs.com/package/v8flags
- Repository: https://github.com/gulpjs/v8flags
- Homepage: https://github.com/gulpjs/v8flags#readme
- Issues: https://github.com/gulpjs/v8flags/issues
- npm.io page: https://npm.io/package/v8flags

## Recent versions

- 4.0.1 (latest) — 2023-09-03
- 4.0.0 — 2021-11-08
- 3.2.0 — 2020-05-31
- 3.1.3 — 2019-05-09
- 3.1.2 — 2018-12-17
- 3.1.1 — 2018-06-04
- 3.1.0 — 2018-05-13
- 3.0.2 — 2018-02-26
- 3.0.1 — 2017-09-25
- 3.0.0 — 2017-07-14
- 2.1.1 — 2017-04-18
- 2.1.0 — 2017-04-18
- 2.0.12 — 2017-03-31
- 2.0.11 — 2015-12-21
- 2.0.10 — 2015-07-28
- … 21 more at https://npm.io/package/v8flags/versions

## README

<p align="center">
  <a href="http://gulpjs.com">
    <img height="257" width="114" src="https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png">
  </a>
</p>

# v8flags

[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]

Get available v8 and Node.js flags.

## Usage

```js
const v8flags = require('v8flags');

v8flags(function (err, results) {
  console.log(results);
  // [ '--use_strict',
  //   '--es5_readonly',
  //   '--es52_globals',
  //   '--harmony_typeof',
  //   '--harmony_scoping',
  //   '--harmony_modules',
  //   '--harmony_proxies',
  //   '--harmony_collections',
  //   '--harmony',
  // ...
});
```

## API

### `v8flags(cb)`

Finds the available flags and calls the passed callback with any errors and an array of flag results.

### `v8flags.configfile`

The name of the cache file for flags.

### `v8flags.configPath`

The filepath location of the `configfile` above.

## License

MIT

<!-- prettier-ignore-start -->
[downloads-image]: https://img.shields.io/npm/dm/v8flags.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/v8flags
[npm-image]: https://img.shields.io/npm/v/v8flags.svg?style=flat-square

[ci-url]: https://github.com/gulpjs/v8flags/actions?query=workflow:dev
[ci-image]: https://img.shields.io/github/actions/workflow/status/gulpjs/v8flags/dev.yml?branch=master&style=flat-square

[coveralls-url]: https://coveralls.io/r/gulpjs/v8flags
[coveralls-image]: https://img.shields.io/coveralls/gulpjs/v8flags/master.svg?style=flat-square
<!-- prettier-ignore-end -->

---
_Source: https://npm.io/package/v8flags · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
