-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deps: validate-npm-package-name@4.0.0
* use latest builtins
- Loading branch information
1 parent
777e08e
commit bd40206
Showing
24 changed files
with
100 additions
and
887 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
node_modules/init-package-json/node_modules/builtins/License
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
node_modules/init-package-json/node_modules/builtins/Readme.md
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
node_modules/init-package-json/node_modules/builtins/package.json
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
node_modules/init-package-json/node_modules/validate-npm-package-name/LICENSE
This file was deleted.
Oops, something went wrong.
64 changes: 0 additions & 64 deletions
64
node_modules/init-package-json/node_modules/validate-npm-package-name/package.json
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
node_modules/npm-package-arg/node_modules/builtins/License
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
node_modules/npm-package-arg/node_modules/builtins/Readme.md
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.