routie dev init since i didn't adhere to any proper guidance up until now
This commit is contained in:
+115
@@ -0,0 +1,115 @@
|
||||
[
|
||||
"node:assert",
|
||||
"assert",
|
||||
"node:assert/strict",
|
||||
"assert/strict",
|
||||
"node:async_hooks",
|
||||
"async_hooks",
|
||||
"node:buffer",
|
||||
"buffer",
|
||||
"node:child_process",
|
||||
"child_process",
|
||||
"node:cluster",
|
||||
"cluster",
|
||||
"node:console",
|
||||
"console",
|
||||
"node:constants",
|
||||
"constants",
|
||||
"node:crypto",
|
||||
"crypto",
|
||||
"node:dgram",
|
||||
"dgram",
|
||||
"node:diagnostics_channel",
|
||||
"diagnostics_channel",
|
||||
"node:dns",
|
||||
"dns",
|
||||
"node:dns/promises",
|
||||
"dns/promises",
|
||||
"node:domain",
|
||||
"domain",
|
||||
"node:events",
|
||||
"events",
|
||||
"node:fs",
|
||||
"fs",
|
||||
"node:fs/promises",
|
||||
"fs/promises",
|
||||
"node:http",
|
||||
"http",
|
||||
"node:http2",
|
||||
"http2",
|
||||
"node:https",
|
||||
"https",
|
||||
"node:inspector",
|
||||
"inspector",
|
||||
"node:inspector/promises",
|
||||
"inspector/promises",
|
||||
"node:module",
|
||||
"module",
|
||||
"node:net",
|
||||
"net",
|
||||
"node:os",
|
||||
"os",
|
||||
"node:path",
|
||||
"path",
|
||||
"node:path/posix",
|
||||
"path/posix",
|
||||
"node:path/win32",
|
||||
"path/win32",
|
||||
"node:perf_hooks",
|
||||
"perf_hooks",
|
||||
"node:process",
|
||||
"process",
|
||||
"node:querystring",
|
||||
"querystring",
|
||||
"node:quic",
|
||||
"node:readline",
|
||||
"readline",
|
||||
"node:readline/promises",
|
||||
"readline/promises",
|
||||
"node:repl",
|
||||
"repl",
|
||||
"node:sea",
|
||||
"node:sqlite",
|
||||
"node:stream",
|
||||
"stream",
|
||||
"node:stream/consumers",
|
||||
"stream/consumers",
|
||||
"node:stream/iter",
|
||||
"stream/iter",
|
||||
"node:stream/promises",
|
||||
"stream/promises",
|
||||
"node:stream/web",
|
||||
"stream/web",
|
||||
"node:string_decoder",
|
||||
"string_decoder",
|
||||
"node:test",
|
||||
"node:test/reporters",
|
||||
"node:timers",
|
||||
"timers",
|
||||
"node:timers/promises",
|
||||
"timers/promises",
|
||||
"node:tls",
|
||||
"tls",
|
||||
"node:trace_events",
|
||||
"trace_events",
|
||||
"node:tty",
|
||||
"tty",
|
||||
"node:url",
|
||||
"url",
|
||||
"node:util",
|
||||
"util",
|
||||
"node:util/types",
|
||||
"util/types",
|
||||
"node:v8",
|
||||
"v8",
|
||||
"node:vm",
|
||||
"vm",
|
||||
"node:wasi",
|
||||
"wasi",
|
||||
"node:worker_threads",
|
||||
"worker_threads",
|
||||
"node:zlib",
|
||||
"zlib",
|
||||
"node:zlib/iter",
|
||||
"zlib/iter"
|
||||
]
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
A static list of the Node.js builtin modules from the latest Node.js version.
|
||||
|
||||
@example
|
||||
```
|
||||
import builtinModules from 'builtin-modules';
|
||||
|
||||
console.log(builtinModules);
|
||||
//=> ['node:assert', 'assert', 'node:buffer', 'buffer', …]
|
||||
```
|
||||
*/
|
||||
declare const builtinModules: readonly string[];
|
||||
|
||||
export default builtinModules;
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
import builtinModules from './builtin-modules.json' with {type: 'json'};
|
||||
|
||||
export default builtinModules;
|
||||
+9
@@ -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.
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"name": "builtin-modules",
|
||||
"version": "5.1.0",
|
||||
"description": "A static list of the Node.js builtin modules from the latest Node.js version",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/builtin-modules",
|
||||
"funding": "https://github.com/sponsors/sindresorhus",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "https://sindresorhus.com"
|
||||
},
|
||||
"type": "module",
|
||||
"exports": {
|
||||
"types": "./index.d.ts",
|
||||
"default": "./index.js"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"engines": {
|
||||
"node": ">=18.20"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "ava && tsd",
|
||||
"make": "node make.js"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts",
|
||||
"builtin-modules.json"
|
||||
],
|
||||
"keywords": [
|
||||
"builtin",
|
||||
"built-in",
|
||||
"builtins",
|
||||
"node",
|
||||
"modules",
|
||||
"core",
|
||||
"bundled",
|
||||
"list",
|
||||
"array",
|
||||
"names"
|
||||
],
|
||||
"devDependencies": {
|
||||
"ava": "^6.2.0",
|
||||
"tsd": "^0.31.2",
|
||||
"xo": "^0.60.0"
|
||||
},
|
||||
"xo": {
|
||||
"ignore": [
|
||||
"index.js"
|
||||
]
|
||||
}
|
||||
}
|
||||
+32
@@ -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
|
||||
Reference in New Issue
Block a user