Skip to content
Node: archiver6 APIs

archive

Package archive provides zip and tar.gz helpers. Node equivalent: archiver, adm-zip, tar.

import "github.com/sahilkhaire/gox/archive"
## API reference

Select a symbol below — each page explains what it does, shows Node.js vs Go comparisons, and includes a runnable example.

Functions ​

SymbolNode.jsKindSummary
TarCreate—funcTarCreate builds a gzip-compressed tar archive.
TarExtract—funcTarExtract extracts a gzip-compressed tar archive into destDir.
ZipCreate—funcZipCreate builds a zip archive from a map of path -> contents.
ZipCreateEntries—funcZipCreateEntries builds a zip archive from file entries.
ZipExtract—funcZipExtract writes zip data into destDir.

Types ​

SymbolNode.jsKindSummary
FileEntry—typeFileEntry is a named file for archive creation.

MIT Licensed · Built for Node.js developers moving to Go