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
TarCreatefuncTarCreate builds a gzip-compressed tar archive.
TarExtractfuncTarExtract extracts a gzip-compressed tar archive into destDir.
ZipCreatefuncZipCreate builds a zip archive from a map of path -> contents.
ZipCreateEntriesfuncZipCreateEntries builds a zip archive from file entries.
ZipExtractfuncZipExtract writes zip data into destDir.

Types

SymbolNode.jsKindSummary
FileEntrytypeFileEntry is a named file for archive creation.

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