Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pdehaan/npm-pack-json
npm pack --dry-run --json
https://github.com/pdehaan/npm-pack-json
json npm pack package
Last synced: 15 days ago
JSON representation
npm pack --dry-run --json
- Host: GitHub
- URL: https://github.com/pdehaan/npm-pack-json
- Owner: pdehaan
- Created: 2021-07-15T21:52:46.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-07-15T22:37:22.000Z (over 3 years ago)
- Last Synced: 2024-10-31T13:13:13.687Z (2 months ago)
- Topics: json, npm, pack, package
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# npm-pack-json
Like running npm pack --dry-run --json, but I guess with the files sorted by name/path; if you're into that sort of thing.
## USAGE
```sh
npx pdehaan/npm-pack-json
```### OUTPUT
```js
{
id: '[email protected]',
name: 'npm-pack-json',
version: '1.0.0',
size: 612,
unpackedSize: 880,
shasum: '3e3e149d73d755f641e0c3cfda5e1bcb5ae33812',
integrity: 'sha512-OEFN7/n2JmIu4YrEx8HIY1aJyQQz9UFhIp213/93LDuUwAQYJfidnFPGxwnlJnNqtUtOPXBW295X32kzWFSlkA==',
filename: 'npm-pack-json-1.0.0.tgz',
files: [
{ path: 'cli.js', size: 101, mode: 493 },
{ path: 'lib.js', size: 263, mode: 420 },
{ path: 'package.json', size: 516, mode: 420 }
],
entryCount: 3,
bundled: []
}
```