# kaifu

> An intuitive command-line tool for downloading and unpacking SourceMap files.

Latest version **2.1.1** (published 2024-10-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install kaifu
pnpm add kaifu
yarn add kaifu
bun add kaifu
```

Provides the command `kaifu`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.1 |
| Published | 2024-10-18 |
| First published | 2021-03-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=18 |
| Dependencies | 5 |
| Unpacked size | 43.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Nikolay Solovyov |
| Maintainers | mr_ozio |
| Keywords | source-map, sourcemap, sourcemaps, cli-tool, unpack, unbox, source-map-downloader, source-map-extractor, developer-tooling, javascript-tools |

## Links

- npm: https://www.npmjs.com/package/kaifu
- Homepage: https://github.com/ozio/kaifu
- npm.io page: https://npm.io/package/kaifu

## Dependencies (5)

- [meow](https://npm.io/package/meow.md) 13.2.0
- [chalk](https://npm.io/package/chalk.md) 5.3.0
- [node-fetch](https://npm.io/package/node-fetch.md) 3.3.2
- [source-map](https://npm.io/package/source-map.md) 0.7.4
- [node-html-parser](https://npm.io/package/node-html-parser.md) 6.1.13

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 2.1.1 (latest) — 2024-10-18
- 2.1.0 — 2024-10-17
- 2.0.1 — 2023-01-05
- 2.0.0 — 2023-01-05
- 1.3.2 — 2022-12-29
- 1.3.1 — 2021-04-30
- 1.3.0 — 2021-04-05
- 1.2.2 — 2021-04-05
- 1.2.1 — 2021-04-05
- 1.2.0 — 2021-04-05
- 1.1.0 — 2021-03-27
- 1.0.3 — 2021-03-26
- 1.0.2 — 2021-03-26
- 1.0.1 — 2021-03-26
- 1.0.0 — 2021-03-26

## README

# Kaifū

An intuitive command-line tool for downloading and unpacking SourceMap files.

### Installation

```shell
npm install -g kaifu
```

### Usage
```shell
Usage: kaifu [options...] <url|file|directory>

Options:
   -o,  --output-dir <dir>   Specify the output directory.
   -m,  --merge              Unsafely merge all unboxed trees into a single folder.
   -s,  --short              Display a short summary.
   -v,  --verbose            Provide detailed output.
   -q,  --quiet              Suppress most output messages (minimal output).
        --skip-empty         Skip unboxing of empty files.
        --version            Show the version number and exit.
   
Examples:
   kaifu --o ./mdn https://developer.mozilla.org/
   kaifu -sm https://developer.mozilla.org/
```
### Preview
```shell
$ npx kaifu --merge --output-dir ./ngrok http://6f0f744027c8.ngrok.io

Loading resources:

 ▸ http://6f0f744027c8.ngrok.io/
 ▸ http://6f0f744027c8.ngrok.io/index.js
 ▸ http://6f0f744027c8.ngrok.io/index.js.map

Unboxing resources:

 📦 http://6f0f744027c8.ngrok.io/index.js.map
 ├─ node_modules
 │  ├─ preact
 │  │  ├─ compat
 │  │  │  └─ dist
 │  │  │     └─ compat.mjs [8778 bytes]
 │  │  ├─ dist
 │  │  │  └─ preact.mjs [10097 bytes]
 │  │  └─ hooks
 │  │     └─ dist
 │  │        └─ hooks.mjs [2641 bytes]
 │  ├─ wouter
 │  │  ├─ index.js [4772 bytes]
 │  │  ├─ matcher.js [2073 bytes]
 │  │  └─ use-location.js [2986 bytes]
 │  └─ zustand
 │     └─ index.js [4202 bytes]
 └─ src
    ├─ api
    │  └─ client.js [1189 bytes]
    ├─ pages
    │  ├─ AuthPage
    │  │  └─ index.jsx [84 bytes]
    │  └─ DashboardPage
    │     ├─ index.jsx [673 bytes]
    │     └─ store.js [620 bytes]
    ├─ utils
    │  └─ useWillUnmount.js [136 bytes]
    ├─ App.jsx [560 bytes]
    └─ index.jsx [150 bytes]

1 sourcemap file found, 14 files unboxed.
```

### Short version preview

```shell
$ kaifu --merge --short --output-dir ./mdn https://developer.mozilla.org/

Loading resources:
 ▸ https://developer.mozilla.org/static/js/runtime-main.bcb5cedd.js.map
 ▸ https://developer.mozilla.org/static/js/2.b0186e16.chunk.js.map
 ▸ https://developer.mozilla.org/static/js/main.e2b366ea.chunk.js.map
 ▸ https://developer.mozilla.org/static/css/main.e7962908.chunk.css.map

Unboxing resources:
 ▸ runtime-main.bcb5cedd.js.map → ./mdn [1 file]
 ▸ 2.b0186e16.chunk.js.map → ./mdn [39 files]
 ▸ main.e2b366ea.chunk.js.map → ./mdn [41 files]
 ▸ main.e7962908.chunk.css.map → ./mdn [71 files]

4 sourcemap files found, 152 files unboxed.
```

**Note:** _Kaifū_ means "unboxing" in Japanese.

MIT &copy; Nikolay Solovyov

---
_Source: https://npm.io/package/kaifu · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
