Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sindresorhus/builtin-modules
List of the Node.js builtin modules
https://github.com/sindresorhus/builtin-modules
Last synced: about 1 month ago
JSON representation
List of the Node.js builtin modules
- Host: GitHub
- URL: https://github.com/sindresorhus/builtin-modules
- Owner: sindresorhus
- License: mit
- Created: 2015-05-04T14:50:50.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2022-10-13T04:40:03.000Z (about 2 years ago)
- Last Synced: 2024-04-14T11:09:10.837Z (7 months ago)
- Language: JavaScript
- Size: 19.5 KB
- Stars: 122
- Watchers: 6
- Forks: 12
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- Funding: .github/funding.yml
- License: license
- Security: .github/security.md
Awesome Lists containing this project
README
# 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);
//=> ['assert', '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