pub fn pack(folder: &Path) -> Result<Vec<u8>, PackageError>
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.
package.json
package/
read
When the folder has no readable package.json or a file cannot be read.