Socket
Book a DemoInstallSign in
Socket

bare-unpack

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bare-unpack

Bundle unpacking for Bare

latest
Source
npmnpm
Version
1.1.3
Version published
Maintainers
2
Created
Source

bare-unpack

Bundle unpacking for Bare.

npm i [-g] bare-unpack

Usage

const unpack = require('bare-unpack')

async function writeFile(key) {
  // Write the data for `key` to disk or elsewhere and return the resulting path
}

const repacked = await unpack(bundle, writeFile)

API

const repacked = await unpack(bundle[, options], writeFile)

Unpack bundle, writing either all or parts of its files to disk or elsewhere. writeFile is called with the key of every file to write and must return the path to which the file corresponding to the key is written. Any files not written elsewhere will be repacked into a new bundle, which is returned to the caller, and any references to files written outside the bundle will be rewritten.

Options include:

options = {
  files: true,
  addons: files,
  assets: files,
  concurrency: 0
}

CLI

bare-unpack [flags] <entry>

Unpack the bundle at <entry> to --out which defaults to .

Flags include:

--version|-v
--out|-o <path>
--help|-h

License

Apache-2.0

FAQs

Package last updated on 17 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts