dwww Home | Show directory contents | Find package

# builtins

[![CI](https://github.com/juliangruber/builtins/actions/workflows/ci.yml/badge.svg)](https://github.com/juliangruber/builtins/actions/workflows/ci.yml)

List of node.js [builtin modules](http://nodejs.org/api/).

## Usage

```js
const builtins = require('builtins')
```

Get list of core modules for current Node.js version:

```js
assert(builtins().includes('http'))
```

Get list of core modules for specific Node.js version:

```js
assert(builtins({ version: '6.0.0' }).includes('http'))
```

Get list of core modules present in one or mode Node.js versions:

```js
assert(builtins({ version: '*' }).includes('worker_threads'))
```

Add experimental modules to the list:

```js
assert(builtins({ experimental: true }).includes('wasi'))
```

## License

MIT

Generated by dwww version 1.15 on Sat Jun 15 13:49:58 CEST 2024.