diff options
author | Gar <gar+gh@danger.computer> | 2022-03-29 23:35:34 +0300 |
---|---|---|
committer | Luke Karrys <luke@lukekarrys.com> | 2022-03-30 09:50:31 +0300 |
commit | 5b4cbb2175bfa35e347fe94e21d49a05ea64ead1 (patch) | |
tree | a626599980954d30d8293d48c65f343c35ce43b5 /node_modules/builtins/Readme.md | |
parent | 86eff5dccb9bce2eb8d80706e8dea855faf753b3 (diff) |
deps: validate-npm-package-name@4.0.0
* use latest builtins
Diffstat (limited to 'node_modules/builtins/Readme.md')
-rw-r--r-- | node_modules/builtins/Readme.md | 35 |
1 files changed, 28 insertions, 7 deletions
diff --git a/node_modules/builtins/Readme.md b/node_modules/builtins/Readme.md index 96f4b1f6c..b1c0007d6 100644 --- a/node_modules/builtins/Readme.md +++ b/node_modules/builtins/Readme.md @@ -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 |