dd
This commit is contained in:
48
extensions/Excel转JSON/node_modules/pkg-up/index.d.ts
generated
vendored
Normal file
48
extensions/Excel转JSON/node_modules/pkg-up/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
declare namespace pkgUp {
|
||||
interface Options {
|
||||
/**
|
||||
Directory to start from.
|
||||
|
||||
@default process.cwd()
|
||||
*/
|
||||
readonly cwd?: string;
|
||||
}
|
||||
}
|
||||
|
||||
declare const pkgUp: {
|
||||
/**
|
||||
Find the closest `package.json` file.
|
||||
|
||||
@returns The filepath, or `null` if it couldn't be found.
|
||||
|
||||
@example
|
||||
```
|
||||
// /
|
||||
// └── Users
|
||||
// └── sindresorhus
|
||||
// └── foo
|
||||
// ├── package.json
|
||||
// └── bar
|
||||
// ├── baz
|
||||
// └── example.js
|
||||
|
||||
// example.js
|
||||
import pkgUp = require('pkg-up');
|
||||
|
||||
(async () => {
|
||||
console.log(await pkgUp());
|
||||
//=> '/Users/sindresorhus/foo/package.json'
|
||||
})();
|
||||
```
|
||||
*/
|
||||
(options?: pkgUp.Options): Promise<string | null>;
|
||||
|
||||
/**
|
||||
Synchronously find the closest `package.json` file.
|
||||
|
||||
@returns The filepath, or `null` if it couldn't be found.
|
||||
*/
|
||||
sync(options?: pkgUp.Options): string | null;
|
||||
};
|
||||
|
||||
export = pkgUp;
|
||||
5
extensions/Excel转JSON/node_modules/pkg-up/index.js
generated
vendored
Normal file
5
extensions/Excel转JSON/node_modules/pkg-up/index.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
'use strict';
|
||||
const findUp = require('find-up');
|
||||
|
||||
module.exports = async ({cwd} = {}) => findUp('package.json', {cwd});
|
||||
module.exports.sync = ({cwd} = {}) => findUp.sync('package.json', {cwd});
|
||||
9
extensions/Excel转JSON/node_modules/pkg-up/license
generated
vendored
Normal file
9
extensions/Excel转JSON/node_modules/pkg-up/license
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
MIT License
|
||||
|
||||
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.
|
||||
88
extensions/Excel转JSON/node_modules/pkg-up/package.json
generated
vendored
Normal file
88
extensions/Excel转JSON/node_modules/pkg-up/package.json
generated
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"pkg-up@3.1.0",
|
||||
"/Users/wuyu/Desktop/61/Git/h5game_ailesson_v2.4/packages/excel_to_json"
|
||||
]
|
||||
],
|
||||
"_development": true,
|
||||
"_from": "pkg-up@3.1.0",
|
||||
"_id": "pkg-up@3.1.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-EA7CNcwVDk/UJRlBJZaihRKg3vU=",
|
||||
"_location": "/pkg-up",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "pkg-up@3.1.0",
|
||||
"name": "pkg-up",
|
||||
"escapedName": "pkg-up",
|
||||
"rawSpec": "3.1.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "3.1.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/conf"
|
||||
],
|
||||
"_resolved": "https://registry.npm.taobao.org/pkg-up/download/pkg-up-3.1.0.tgz",
|
||||
"_spec": "3.1.0",
|
||||
"_where": "/Users/wuyu/Desktop/61/Git/h5game_ailesson_v2.4/packages/excel_to_json",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/pkg-up/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"find-up": "^3.0.0"
|
||||
},
|
||||
"description": "Find the closest package.json file",
|
||||
"devDependencies": {
|
||||
"ava": "^1.4.1",
|
||||
"tsd": "^0.7.2",
|
||||
"xo": "^0.24.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
],
|
||||
"homepage": "https://github.com/sindresorhus/pkg-up#readme",
|
||||
"keywords": [
|
||||
"pkg",
|
||||
"package",
|
||||
"file",
|
||||
"find",
|
||||
"up",
|
||||
"find-up",
|
||||
"findup",
|
||||
"look-up",
|
||||
"look",
|
||||
"search",
|
||||
"match",
|
||||
"resolve",
|
||||
"parent",
|
||||
"parents",
|
||||
"folder",
|
||||
"directory",
|
||||
"dir",
|
||||
"walk",
|
||||
"walking",
|
||||
"path"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "pkg-up",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sindresorhus/pkg-up.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava && tsd"
|
||||
},
|
||||
"version": "3.1.0"
|
||||
}
|
||||
68
extensions/Excel转JSON/node_modules/pkg-up/readme.md
generated
vendored
Normal file
68
extensions/Excel转JSON/node_modules/pkg-up/readme.md
generated
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
# pkg-up [](https://travis-ci.org/sindresorhus/pkg-up)
|
||||
|
||||
> Find the closest package.json file
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install pkg-up
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```
|
||||
/
|
||||
└── Users
|
||||
└── sindresorhus
|
||||
└── foo
|
||||
├── package.json
|
||||
└── bar
|
||||
├── baz
|
||||
└── example.js
|
||||
```
|
||||
|
||||
```js
|
||||
// example.js
|
||||
const pkgUp = require('pkg-up');
|
||||
|
||||
(async () => {
|
||||
console.log(await pkgUp());
|
||||
//=> '/Users/sindresorhus/foo/package.json'
|
||||
})();
|
||||
```
|
||||
|
||||
|
||||
## API
|
||||
|
||||
### pkgUp([options])
|
||||
|
||||
Returns a `Promise<string>` for the filepath, or `Promise<null>` if it couldn't be found.
|
||||
|
||||
### pkgUp.sync([options])
|
||||
|
||||
Returns the filepath, or `null` if it couldn't be found.
|
||||
|
||||
#### options
|
||||
|
||||
Type: `Object`
|
||||
|
||||
#### cwd
|
||||
|
||||
Type: `string`<br>
|
||||
Default: `process.cwd()`
|
||||
|
||||
Directory to start from.
|
||||
|
||||
|
||||
## Related
|
||||
|
||||
- [read-pkg-up](https://github.com/sindresorhus/read-pkg-up) - Read the closest package.json file
|
||||
- [pkg-dir](https://github.com/sindresorhus/pkg-dir) - Find the root directory of an npm package
|
||||
- [find-up](https://github.com/sindresorhus/find-up) - Find a file by walking up parent directories
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
||||
Reference in New Issue
Block a user