{
"_from": "npm-packlist@1.4.8",
"_id": "npm-packlist@1.4.8",
"_inBundle": false,
"_integrity": "sha512-5+AZgwru5IevF5ZdnFglB5wNlHG1AOOuw28WhUq8/8emhBmLv6jX5by4WJCh7lW0uSYZYS6DXqIsyZVIXRZU9A==",
"_location": "/npm/npm-packlist",
"_phantomChildren": {},
"_requested": {
"escapedName": "npm-packlist",
"fetchSpec": "1.4.8",
"name": "npm-packlist",
"raw": "npm-packlist@1.4.8",
"rawSpec": "1.4.8",
"registry": true,
"saveSpec": null,
"type": "version"
},
"_requiredBy": [
"#USER",
"/npm",
"/npm/pacote"
],
"_resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-1.4.8.tgz",
"_shasum": "56ee6cc135b9f98ad3d51c1c95da22bbb9b2ef3e",
"_shrinkwrap": null,
"_spec": "npm-packlist@1.4.8",
"_where": "/Users/darcyclarke/Documents/Repos/npm/cli",
"author": {
"email": "i@izs.me",
"name": "Isaac Z. Schlueter",
"url": "http://blog.izs.me/"
},
"bugs": {
"url": "https://github.com/npm/npm-packlist/issues"
},
"bundleDependencies": false,
"dependencies": {
"ignore-walk": "^3.0.1",
"npm-bundled": "^1.0.1",
"npm-normalize-package-bin": "^1.0.1"
},
"deprecated": false,
"description": "Get a list of the files to add from a folder into an npm package",
"devDependencies": {
"mkdirp": "^0.5.1",
"rimraf": "^2.6.1",
"tap": "^14.6.9"
},
"directories": {
"test": "test"
},
"files": [
"index.js"
],
"homepage": "https://www.npmjs.com/package/npm-packlist",
"license": "ISC",
"main": "index.js",
"name": "npm-packlist",
"optionalDependencies": {},
"publishConfig": {
"tag": "legacy-v1"
},
"readme": "# npm-packlist\n\n[](https://travis-ci.com/npm/npm-packlist)\n\nGet a list of the files to add from a folder into an npm package\n\nThese can be handed to [tar](http://npm.im/tar) like so to make an npm\npackage tarball:\n\n```js\nconst packlist = require('npm-packlist')\nconst tar = require('tar')\nconst packageDir = '/path/to/package'\nconst packageTarball = '/path/to/package.tgz'\n\npacklist({ path: packageDir })\n .then(files => tar.create({\n prefix: 'package/',\n cwd: packageDir,\n file: packageTarball,\n gzip: true\n }, files))\n .then(_ => {\n // tarball has been created, continue with your day\n })\n```\n\nThis uses the following rules:\n\n1. If a `package.json` file is found, and it has a `files` list,\n then ignore everything that isn't in `files`. Always include the\n readme, license, notice, changes, changelog, and history files, if\n they exist, and the package.json file itself.\n2. If there's no `package.json` file (or it has no `files` list), and\n there is a `.npmignore` file, then ignore all the files in the\n `.npmignore` file.\n3. If there's no `package.json` with a `files` list, and there's no\n `.npmignore` file, but there is a `.gitignore` file, then ignore\n all the files in the `.gitignore` file.\n4. Everything in the root `node_modules` is ignored, unless it's a\n bundled dependency. If it IS a bundled dependency, and it's a\n symbolic link, then the target of the link is included, not the\n symlink itself.\n4. Unless they're explicitly included (by being in a `files` list, or\n a `!negated` rule in a relevant `.npmignore` or `.gitignore`),\n always ignore certain common cruft files:\n\n 1. .npmignore and .gitignore files (their effect is in the package\n already, there's no need to include them in the package)\n 2. editor junk like `.*.swp`, `._*` and `.*.orig` files\n 3. `.npmrc` files (these may contain private configs)\n 4. The `node_modules/.bin` folder\n 5. Waf and gyp cruft like `/build/config.gypi` and `.lock-wscript`\n 6. Darwin's `.DS_Store` files because wtf are those even\n 7. `npm-debug.log` files at the root of a project\n\n You can explicitly re-include any of these with a `files` list in\n `package.json` or a negated ignore file rule.\n\n## API\n\nSame API as [ignore-walk](http://npm.im/ignore-walk), just hard-coded\nfile list and rule sets.\n\nThe `Walker` and `WalkerSync` classes take a `bundled` argument, which\nis a list of package names to include from node_modules. When calling\nthe top-level `packlist()` and `packlist.sync()` functions, this\nmodule calls into `npm-bundled` directly.\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/npm/npm-packlist.git"
},
"scripts": {
"postpublish": "git push origin --follow-tags",
"postversion": "npm publish",
"preversion": "npm test",
"snap": "tap",
"test": "tap"
},
"tap": {
"jobs": 1
},
"version": "1.4.8"
}