|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
1.2 KB
|
| Line | |
|---|
| 1 | # builtin-modules
|
|---|
| 2 |
|
|---|
| 3 | > List of the Node.js builtin modules
|
|---|
| 4 |
|
|---|
| 5 | The list is just a [JSON file](builtin-modules.json) and can be used anywhere.
|
|---|
| 6 |
|
|---|
| 7 | ## Install
|
|---|
| 8 |
|
|---|
| 9 | ```
|
|---|
| 10 | $ npm install builtin-modules
|
|---|
| 11 | ```
|
|---|
| 12 |
|
|---|
| 13 | ## Usage
|
|---|
| 14 |
|
|---|
| 15 | ```js
|
|---|
| 16 | const builtinModules = require('builtin-modules');
|
|---|
| 17 |
|
|---|
| 18 | console.log(builtinModules);
|
|---|
| 19 | //=> ['assert', 'buffer', ...]
|
|---|
| 20 | ```
|
|---|
| 21 |
|
|---|
| 22 | ## API
|
|---|
| 23 |
|
|---|
| 24 | Returns an array of builtin modules fetched from the running Node.js version.
|
|---|
| 25 |
|
|---|
| 26 | ### Static list
|
|---|
| 27 |
|
|---|
| 28 | This module also comes bundled with a static array of builtin modules generated from the latest Node.js version. You can get it with `require('builtin-modules/static');`
|
|---|
| 29 |
|
|---|
| 30 | ## Related
|
|---|
| 31 |
|
|---|
| 32 | - [is-builtin-module](https://github.com/sindresorhus/is-builtin-module) - Check if a string matches the name of a Node.js builtin module
|
|---|
| 33 |
|
|---|
| 34 | ---
|
|---|
| 35 |
|
|---|
| 36 | <div align="center">
|
|---|
| 37 | <b>
|
|---|
| 38 | <a href="https://tidelift.com/subscription/pkg/npm-builtin-modules?utm_source=npm-builtin-modules&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
|
|---|
| 39 | </b>
|
|---|
| 40 | <br>
|
|---|
| 41 | <sub>
|
|---|
| 42 | Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
|
|---|
| 43 | </sub>
|
|---|
| 44 | </div>
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.