Skip to main content

pack

Function pack 

Source
pub fn pack(folder: &Path) -> Result<Vec<u8>, PackageError>
Expand description

Packs a package folder (one holding package.json) into a gzipped tarball laid out as npm packs one, under package/. Only what read uses is packed: the JSON files directly in the folder and in its example folder.

ยงErrors

When the folder has no readable package.json or a file cannot be read.