Package Exports
- @napi-rs/tar
- @napi-rs/tar/browser.js
- @napi-rs/tar/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@napi-rs/tar) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@napi-rs/tar
Node.js tar binding https://docs.rs/tar/latest/tar/
Usage
export class Entries {
[Symbol.iterator](): Iterator<Entry, void, void>
}
export class Entry {
path(): string | null
}
export class Archive {
/** Create a new archive with the underlying path. */
constructor(path: string)
entries(): Entries
/**
* Unpacks the contents tarball into the specified `dst`.
*
* This function will iterate over the entire contents of this tarball,
* extracting each file in turn to the location specified by the entry's
* path name.
*
* This operation is relatively sensitive in that it will not write files
* outside of the path specified by `dst`. Files in the archive which have
* a '..' in their path are skipped during the unpacking process.
*/
unpack(to: string): void
}
Install this test package
yarn add @napi-rs/tar
pnpm install @napi-rs/tar
npm install @napi-rs/tar