Website Structure
This commit is contained in:
parent
62812f2090
commit
71f0676a62
22365 changed files with 4265753 additions and 791 deletions
32
Frontend-Learner/node_modules/builtin-modules/readme.md
generated
vendored
Normal file
32
Frontend-Learner/node_modules/builtin-modules/readme.md
generated
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# builtin-modules
|
||||
|
||||
> A static list of the Node.js builtin modules from the latest Node.js version
|
||||
|
||||
The list is just a [JSON file](builtin-modules.json) and can be used anywhere.
|
||||
|
||||
## Install
|
||||
|
||||
```sh
|
||||
npm install builtin-modules
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import builtinModules from 'builtin-modules';
|
||||
|
||||
console.log(builtinModules);
|
||||
//=> ['node:assert', 'assert', 'node:buffer', 'buffer', …]
|
||||
```
|
||||
|
||||
## Tip
|
||||
|
||||
To get a list from the current Node.js version, use the built-in API:
|
||||
|
||||
```js
|
||||
import {builtinModules} from 'node:module';
|
||||
```
|
||||
|
||||
## Related
|
||||
|
||||
- [is-builtin-module](https://github.com/sindresorhus/is-builtin-module) - Check if a string matches the name of a Node.js builtin module
|
||||
Loading…
Add table
Add a link
Reference in a new issue