### Packing Examples Source: https://github.com/npm/libnpmpack/blob/main/README.md Demonstrates various ways to use the pack function, including packing from the current working directory, a local directory, a registry spec, and a GitHub spec. ```javascript // packs from cwd const tarball = await pack() // packs from a local directory const localTar = await pack('/Users/claudiahdz/projects/my-cool-pkg') // packs from a registry spec const registryTar = await pack('abbrev@1.0.3') // packs from a github spec const githubTar = await pack('isaacs/rimraf#PR-192') ``` -------------------------------- ### Basic Usage Source: https://github.com/npm/libnpmpack/blob/main/README.md Import the pack function from the libnpmpack library. ```javascript const pack = require('libnpmpack') ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.