Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 * use latest builtins
  • Loading branch information
wraithgar committed Mar 29, 2022
1 parent 156599b commit 0a25271
Show file tree
Hide file tree
Showing 24 changed files with 101 additions and 894 deletions.
39 changes: 0 additions & 39 deletions node_modules/builtins/History.md

This file was deleted.

35 changes: 28 additions & 7 deletions node_modules/builtins/Readme.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,39 @@

# builtins

List of node.js [builtin modules](http://nodejs.org/api/).
[![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'))
```

[![build status](https://secure.travis-ci.org/juliangruber/builtins.svg)](http://travis-ci.org/juliangruber/builtins)
Get list of core modules for specific Node.js version:

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

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

```js
var builtins = require('builtins');
assert(builtins({ version: '*' }).includes('worker_threads'))
```

assert(builtins.indexOf('http') > -1);
Add experimental modules to the list:

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

## License

MIT
MIT
35 changes: 0 additions & 35 deletions node_modules/builtins/builtins.json

This file was deleted.

File renamed without changes.
18 changes: 12 additions & 6 deletions node_modules/builtins/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
{
"name": "builtins",
"version": "1.0.3",
"version": "5.0.0",
"description": "List of node.js builtin modules",
"repository": "juliangruber/builtins",
"license": "MIT",
"main": "builtins.json",
"publishConfig": {
"registry": "https://registry.npmjs.org"
},
"main": "index.js",
"files": [],
"scripts": {
"test": "node test.js"
"test": "prettier-standard && standard && node test.js"
},
"dependencies": {
"semver": "^7.0.0"
},
"devDependencies": {
"node-core-test": "^1.1.1",
"prettier-standard": "^15.0.1",
"standard": "^14.3.4"
}
}
5 changes: 0 additions & 5 deletions node_modules/builtins/test.js

This file was deleted.

20 changes: 0 additions & 20 deletions node_modules/init-package-json/node_modules/builtins/License

This file was deleted.

39 changes: 0 additions & 39 deletions node_modules/init-package-json/node_modules/builtins/Readme.md

This file was deleted.

20 changes: 0 additions & 20 deletions node_modules/init-package-json/node_modules/builtins/package.json

This file was deleted.

This file was deleted.

This file was deleted.

20 changes: 0 additions & 20 deletions node_modules/npm-package-arg/node_modules/builtins/License

This file was deleted.

39 changes: 0 additions & 39 deletions node_modules/npm-package-arg/node_modules/builtins/Readme.md

This file was deleted.

Loading

0 comments on commit 0a25271

Please sign in to comment.