Updating NPM dependencies

This commit is contained in:
Drew Heavner
2020-11-11 13:30:52 +00:00
committed by GitHub
parent 7a6fb66c63
commit bd487ef324
9068 changed files with 1400893 additions and 587661 deletions

48
node_modules/read-pkg/readme.md generated vendored
View File

@@ -6,7 +6,6 @@
## Why
- [Gracefully handles filesystem issues](https://github.com/isaacs/node-graceful-fs)
- [Strips UTF-8 BOM](https://github.com/sindresorhus/strip-bom)
- [Throws more helpful JSON errors](https://github.com/sindresorhus/parse-json)
- [Normalizes the data](https://github.com/npm/normalize-package-data#what-normalization-currently-entails)
@@ -23,41 +22,36 @@ $ npm install read-pkg
```js
const readPkg = require('read-pkg');
readPkg().then(pkg => {
console.log(pkg);
//=> {name: 'read-pkg', ...}
});
(async () => {
console.log(await readPkg());
//=> {name: 'read-pkg', …}
readPkg(__dirname).then(pkg => {
console.log(pkg);
//=> {name: 'read-pkg', ...}
});
readPkg(path.join('unicorn', 'package.json')).then(pkg => {
console.log(pkg);
//=> {name: 'read-pkg', ...}
});
console.log(await readPkg({cwd: 'some-other-directory'}));
//=> {name: 'unicorn', …}
})();
```
## API
### readPkg([path], [options])
### readPkg(options?)
Returns a `Promise` for the parsed JSON.
Returns a `Promise<object>` with the parsed JSON.
### readPkg.sync([path], [options])
### readPkg.sync(options?)
Returns the parsed JSON.
#### path
#### options
Type: `object`
##### cwd
Type: `string`<br>
Default: `process.cwd()`
Path to a `package.json` file or its directory.
#### options
Current working directory.
##### normalize
@@ -74,6 +68,14 @@ Default: `true`
- [load-json-file](https://github.com/sindresorhus/load-json-file) - Read and parse a JSON file
## License
---
MIT © [Sindre Sorhus](https://sindresorhus.com)
<div align="center">
<b>
<a href="https://tidelift.com/subscription/pkg/npm-read-pkg?utm_source=npm-read-pkg&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>