docs:更新文档

This commit is contained in:
张益铭
2021-03-01 15:06:11 +08:00
parent 1542135ab0
commit 9064b372e8
5835 changed files with 904126 additions and 161722 deletions

13
node_modules/isbuiltin/.jshintrc generated vendored Normal file
View File

@@ -0,0 +1,13 @@
{
"node": true,
"esnext": true,
"bitwise": true,
"curly": true,
"immed": true,
"newcap": true,
"noarg": true,
"undef": true,
"unused": "vars",
"strict": true,
"mocha": true
}

35
node_modules/isbuiltin/.npmignore generated vendored Normal file
View File

@@ -0,0 +1,35 @@
# Logs
logs
*.log
npm-debug.log*
# Runtime data
pids
*.pid
*.seed
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# node-waf configuration
.lock-wscript
# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
# Dependency directory
node_modules
# Optional npm cache directory
.npm
# Optional REPL history
.node_repl_history
*.swp

21
node_modules/isbuiltin/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2016 Deepak Kapoor
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.

34
node_modules/isbuiltin/README.md generated vendored Normal file
View File

@@ -0,0 +1,34 @@
# isbuiltin
Tells you if the string you pass in is a built-in node module
## Install
```
npm install isbuiltin --save
```
## Usage
```
var isBuiltIn = require('isbuiltin);
isBuiltIn('console');
=> true
isBuiltIn('woosh');
=> false
```
## Run Tests
```
npm install && npm test
```
## License
MIT © [Deepak Kapoor](http://kapoor.io)

12
node_modules/isbuiltin/index.js generated vendored Normal file
View File

@@ -0,0 +1,12 @@
'use strict';
var builtinModules = require('builtin-modules');
module.exports = function(moduleName) {
if(typeof moduleName !== 'string') {
throw new TypeError('ModuleName must be a string');
}
return builtinModules.indexOf(moduleName) !== -1;
};

View File

@@ -0,0 +1,35 @@
[
"assert",
"buffer",
"child_process",
"cluster",
"console",
"constants",
"crypto",
"dgram",
"dns",
"domain",
"events",
"fs",
"http",
"https",
"module",
"net",
"os",
"path",
"process",
"punycode",
"querystring",
"readline",
"repl",
"stream",
"string_decoder",
"timers",
"tls",
"tty",
"url",
"util",
"v8",
"vm",
"zlib"
]

View File

@@ -0,0 +1,10 @@
'use strict';
var blacklist = [
'freelist',
'sys'
];
module.exports = Object.keys(process.binding('natives')).filter(function (el) {
return !/^_|^internal|\//.test(el) && blacklist.indexOf(el) === -1;
}).sort();

View File

@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (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.

View File

@@ -0,0 +1,76 @@
{
"_args": [
[
"builtin-modules@1.1.1",
"J:\\Github\\CURD-TS"
]
],
"_development": true,
"_from": "builtin-modules@1.1.1",
"_id": "builtin-modules@1.1.1",
"_inBundle": false,
"_integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=",
"_location": "/isbuiltin/builtin-modules",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "builtin-modules@1.1.1",
"name": "builtin-modules",
"escapedName": "builtin-modules",
"rawSpec": "1.1.1",
"saveSpec": null,
"fetchSpec": "1.1.1"
},
"_requiredBy": [
"/isbuiltin"
],
"_resolved": "http://192.168.250.101:4873/builtin-modules/-/builtin-modules-1.1.1.tgz",
"_spec": "1.1.1",
"_where": "J:\\Github\\CURD-TS",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/builtin-modules/issues"
},
"description": "List of the Node.js builtin modules",
"devDependencies": {
"ava": "*",
"xo": "*"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.js",
"static.js",
"builtin-modules.json"
],
"homepage": "https://github.com/sindresorhus/builtin-modules#readme",
"keywords": [
"builtin",
"built-in",
"builtins",
"node",
"modules",
"core",
"bundled",
"list",
"array",
"names"
],
"license": "MIT",
"name": "builtin-modules",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/builtin-modules.git"
},
"scripts": {
"make": "node make.js",
"test": "xo && ava"
},
"version": "1.1.1"
}

View File

@@ -0,0 +1,41 @@
# builtin-modules [![Build Status](https://travis-ci.org/sindresorhus/builtin-modules.svg?branch=master)](https://travis-ci.org/sindresorhus/builtin-modules)
> List of the Node.js builtin modules
The list is just a [JSON file](builtin-modules.json) and can be used wherever.
## Install
```
$ npm install --save builtin-modules
```
## Usage
```js
var builtinModules = require('builtin-modules');
console.log(builinModules);
//=> ['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
## License
MIT © [Sindre Sorhus](http://sindresorhus.com)

View File

@@ -0,0 +1,2 @@
'use strict';
module.exports = require('./builtin-modules.json');

58
node_modules/isbuiltin/package.json generated vendored Normal file
View File

@@ -0,0 +1,58 @@
{
"_args": [
[
"isbuiltin@1.0.0",
"J:\\Github\\CURD-TS"
]
],
"_development": true,
"_from": "isbuiltin@1.0.0",
"_id": "isbuiltin@1.0.0",
"_inBundle": false,
"_integrity": "sha1-RFOykVaQy0fAy5ySVaCAd3gxXJY=",
"_location": "/isbuiltin",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "isbuiltin@1.0.0",
"name": "isbuiltin",
"escapedName": "isbuiltin",
"rawSpec": "1.0.0",
"saveSpec": null,
"fetchSpec": "1.0.0"
},
"_requiredBy": [
"/vite"
],
"_resolved": "http://192.168.250.101:4873/isbuiltin/-/isbuiltin-1.0.0.tgz",
"_spec": "1.0.0",
"_where": "J:\\Github\\CURD-TS",
"author": {
"name": "Deepak Kapoor",
"email": "kapoordeepak@gmail.com",
"url": "http://kapoor.io"
},
"bugs": {
"url": "https://github.com/deepak-kapoor/is-builtin/issues"
},
"dependencies": {
"builtin-modules": "^1.1.1"
},
"description": "Find if a module is a built-in node module",
"devDependencies": {
"chai": "^3.5.0"
},
"homepage": "https://github.com/deepak-kapoor/is-builtin#readme",
"license": "MIT",
"main": "index.js",
"name": "isbuiltin",
"repository": {
"type": "git",
"url": "git+https://github.com/deepak-kapoor/is-builtin.git"
},
"scripts": {
"test": "mocha test.js"
},
"version": "1.0.0"
}

16
node_modules/isbuiltin/test.js generated vendored Normal file
View File

@@ -0,0 +1,16 @@
'use strict';
var assert = require('chai').assert;
var isBuiltIn = require('./index.js');
describe('isbuiltin tests', function() {
it('fs should be builtin', function() {
assert.isTrue(isBuiltIn('fs'));
});
it('woosh should be builtin', function() {
assert.isFalse(isBuiltIn('woosh'));
});
});