initial commit
This commit is contained in:
43
node_modules/builtin-modules/builtin-modules.json
generated
vendored
Normal file
43
node_modules/builtin-modules/builtin-modules.json
generated
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
[
|
||||
"assert",
|
||||
"async_hooks",
|
||||
"buffer",
|
||||
"child_process",
|
||||
"cluster",
|
||||
"console",
|
||||
"constants",
|
||||
"crypto",
|
||||
"dgram",
|
||||
"diagnostics_channel",
|
||||
"dns",
|
||||
"domain",
|
||||
"events",
|
||||
"fs",
|
||||
"http",
|
||||
"http2",
|
||||
"https",
|
||||
"inspector",
|
||||
"module",
|
||||
"net",
|
||||
"os",
|
||||
"path",
|
||||
"perf_hooks",
|
||||
"process",
|
||||
"punycode",
|
||||
"querystring",
|
||||
"readline",
|
||||
"repl",
|
||||
"stream",
|
||||
"string_decoder",
|
||||
"timers",
|
||||
"tls",
|
||||
"trace_events",
|
||||
"tty",
|
||||
"url",
|
||||
"util",
|
||||
"v8",
|
||||
"vm",
|
||||
"wasi",
|
||||
"worker_threads",
|
||||
"zlib"
|
||||
]
|
||||
14
node_modules/builtin-modules/index.d.ts
generated
vendored
Normal file
14
node_modules/builtin-modules/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
List of the Node.js builtin modules.
|
||||
|
||||
@example
|
||||
```
|
||||
import builtinModules = require('builtin-modules');
|
||||
|
||||
console.log(builtinModules);
|
||||
//=> ['assert', 'buffer', …]
|
||||
```
|
||||
*/
|
||||
declare const builtinModules: readonly string[];
|
||||
|
||||
export = builtinModules;
|
||||
11
node_modules/builtin-modules/index.js
generated
vendored
Normal file
11
node_modules/builtin-modules/index.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
'use strict';
|
||||
const {builtinModules} = require('module');
|
||||
|
||||
const ignoreList = [
|
||||
'sys'
|
||||
];
|
||||
|
||||
// eslint-disable-next-line node/no-deprecated-api
|
||||
module.exports = (builtinModules || (process.binding ? Object.keys(process.binding('natives')) : []) || [])
|
||||
.filter(x => !/^_|^(internal|v8|node-inspect)\/|\//.test(x) && !ignoreList.includes(x))
|
||||
.sort();
|
||||
9
node_modules/builtin-modules/license
generated
vendored
Normal file
9
node_modules/builtin-modules/license
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
44
node_modules/builtin-modules/package.json
generated
vendored
Normal file
44
node_modules/builtin-modules/package.json
generated
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"name": "builtin-modules",
|
||||
"version": "3.3.0",
|
||||
"description": "List of the Node.js builtin modules",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/builtin-modules",
|
||||
"funding": "https://github.com/sponsors/sindresorhus",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "https://sindresorhus.com"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava && tsd",
|
||||
"make": "node make.js"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts",
|
||||
"static.js",
|
||||
"static.d.ts",
|
||||
"builtin-modules.json"
|
||||
],
|
||||
"keywords": [
|
||||
"builtin",
|
||||
"built-in",
|
||||
"builtins",
|
||||
"node",
|
||||
"modules",
|
||||
"core",
|
||||
"bundled",
|
||||
"list",
|
||||
"array",
|
||||
"names"
|
||||
],
|
||||
"devDependencies": {
|
||||
"ava": "^1.4.1",
|
||||
"tsd": "^0.7.2",
|
||||
"xo": "^0.24.0"
|
||||
}
|
||||
}
|
||||
44
node_modules/builtin-modules/readme.md
generated
vendored
Normal file
44
node_modules/builtin-modules/readme.md
generated
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
# builtin-modules
|
||||
|
||||
> List of the Node.js builtin modules
|
||||
|
||||
The list is just a [JSON file](builtin-modules.json) and can be used anywhere.
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install builtin-modules
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const builtinModules = require('builtin-modules');
|
||||
|
||||
console.log(builtinModules);
|
||||
//=> ['assert', 'buffer', ...]
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
Returns an array of builtin modules fetched from the running Node.js version.
|
||||
|
||||
### Static list
|
||||
|
||||
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');`
|
||||
|
||||
## Related
|
||||
|
||||
- [is-builtin-module](https://github.com/sindresorhus/is-builtin-module) - Check if a string matches the name of a Node.js builtin module
|
||||
|
||||
---
|
||||
|
||||
<div align="center">
|
||||
<b>
|
||||
<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>
|
||||
</b>
|
||||
<br>
|
||||
<sub>
|
||||
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
|
||||
</sub>
|
||||
</div>
|
||||
14
node_modules/builtin-modules/static.d.ts
generated
vendored
Normal file
14
node_modules/builtin-modules/static.d.ts
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
Static list of the Node.js builtin modules.
|
||||
|
||||
@example
|
||||
```
|
||||
import builtinModulesStatic = require('builtin-modules/static');
|
||||
|
||||
console.log(builtinModulesStatic);
|
||||
//=> ['assert', 'buffer', …]
|
||||
```
|
||||
*/
|
||||
declare const builtinModulesStatic: readonly string[];
|
||||
|
||||
export = builtinModulesStatic;
|
||||
2
node_modules/builtin-modules/static.js
generated
vendored
Normal file
2
node_modules/builtin-modules/static.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
'use strict';
|
||||
module.exports = require('./builtin-modules');
|
||||
Reference in New Issue
Block a user