{"name":"libnpmpack","version":"8.0.1","author":{"name":"GitHub Inc."},"license":"ISC","_id":"libnpmpack@8.0.1","maintainers":[{"name":"gar","email":"gar+npm@danger.computer"},{"name":"saquibkhan","email":"saquibkhan@github.com"},{"name":"npm-cli-ops","email":"npm-cli+bot@github.com"},{"name":"reggi","email":"reggi@github.com"},{"name":"hashtagchris","email":"hashtagchris@github.com"},{"name":"owlstronaut","email":"owlstronaut@github.com"}],"contributors":[{"name":"Claudia Hernández","email":"claudia@npmjs.com"}],"homepage":"https://npmjs.com/package/libnpmpack","bugs":{"url":"https://github.com/npm/libnpmpack/issues"},"tap":{"nyc-arg":["--exclude","tap-snapshots/**"]},"dist":{"shasum":"36db2d8cda841775f3c80187cb332686feab40f2","tarball":"http://registry-npm.ywwl.com/libnpmpack/download/libnpmpack-8.0.1.tgz","fileCount":4,"integrity":"sha512-E53w3QcldAXg5cG9NpXZcsgNiLw5AEtu7ufGJk6+dxudD0/U5Y6vHIws+CJiI76I9rAidXasKmmS2mwiYDncBw==","signatures":[{"sig":"MEUCIQDtdgU1MwrLWNJqIzqAIPPJI14m5KmarrnOgDRDT//9EQIgS/SnDmeoa98+zQ+vfe+swQldV+dBwLNm6rZbRQuVbJo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5596,"size":2632,"noattachment":false,"key":"/libnpmpack/-/libnpmpack-8.0.1.tgz"},"main":"lib/index.js","engines":{"node":"^18.17.0 || >=20.5.0"},"scripts":{"lint":"npm run eslint","snap":"tap","test":"tap","eslint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"","lintfix":"npm run eslint -- --fix","postlint":"template-oss-check","posttest":"npm run lint","template-oss-apply":"template-oss-apply --force"},"_npmUser":{"name":"gar","actor":{"name":"gar","type":"user","email":"gar+npm@danger.computer"},"email":"gar+npm@danger.computer"},"repository":{"url":"git+https://github.com/npm/cli.git","type":"git","directory":"workspaces/libnpmpack"},"_npmVersion":"10.9.3","description":"Programmatic API for the bits behind npm pack","directories":{},"templateOSS":{"content":"../../scripts/template-oss/index.js","version":"4.24.4","//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten."},"_nodeVersion":"22.16.0","dependencies":{"pacote":"^19.0.0","npm-package-arg":"^12.0.0","@npmcli/arborist":"^8.0.1","@npmcli/run-script":"^9.0.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tap":"^16.3.8","nock":"^13.3.3","spawk":"^1.7.1","@npmcli/template-oss":"4.24.4","@npmcli/eslint-config":"^5.0.1"},"_npmOperationalInternal":{"tmp":"tmp/libnpmpack_8.0.1_1750882195366_0.7619480116863182","host":"s3://npm-registry-packages-npm-production"},"readme":"# libnpmpack\n\n[![npm version](https://img.shields.io/npm/v/libnpmpack.svg)](https://npm.im/libnpmpack)\n[![license](https://img.shields.io/npm/l/libnpmpack.svg)](https://npm.im/libnpmpack)\n[![CI - libnpmpack](https://github.com/npm/cli/actions/workflows/ci-libnpmpack.yml/badge.svg)](https://github.com/npm/cli/actions/workflows/ci-libnpmpack.yml)\n\n[`libnpmpack`](https://github.com/npm/libnpmpack) is a Node.js library for\nprogrammatically packing tarballs from a local directory or from a registry or github spec. If packing from a local source, `libnpmpack` will also run the `prepack` and `postpack` lifecycles.\n\n## Table of Contents\n\n* [Example](#example)\n* [Install](#install)\n* [API](#api)\n  * [`pack()`](#pack)\n\n## Example\n\n```js\nconst pack = require('libnpmpack')\n```\n\n## Install\n\n`$ npm install libnpmpack`\n\n### API\n\n#### <a name=\"pack\"></a> `> pack(spec, [opts]) -> Promise`\n\nPacks a tarball from a local directory or from a registry or github spec and returns a Promise that resolves to the tarball data Buffer, with from, resolved, and integrity fields attached.\n\nIf no options are passed, the tarball file will be saved on the same directory from which `pack` was called in.\n \n`libnpmpack` uses [`pacote`](https://npm.im/pacote).\nMost options are passed through directly to that library, so please refer to\n[its own `opts`\ndocumentation](https://www.npmjs.com/package/pacote#options)\nfor options that can be passed in.\n\n##### Examples\n\n```javascript\n// packs from cwd\nconst tarball = await pack()\n\n// packs from a local directory\nconst localTar = await pack('/Users/claudiahdz/projects/my-cool-pkg')\n\n// packs from a registry spec\nconst registryTar = await pack('abbrev@1.0.3')\n\n// packs from a github spec\nconst githubTar = await pack('isaacs/rimraf#PR-192')\n```\n","publish_time":1750882195533,"_cnpm_publish_time":1750882195533,"dist-tags":{"backport":"9.1.15","latest":"10.0.4","prerelease":"10.0.0-pre.2"}}