# builder-debug-utils

> ``` const debugUtils = require('builder-debug-utils');

Latest version **3.0.2** (published 2021-08-25) · 0 weekly downloads

## Install

```sh
npm install builder-debug-utils
pnpm add builder-debug-utils
yarn add builder-debug-utils
bun add builder-debug-utils
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.2 |
| Published | 2021-08-25 |
| First published | 2020-12-21 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 1.5 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | zinkey, guox, lishuo.tomi, dishenghk |

## Links

- npm: https://www.npmjs.com/package/builder-debug-utils
- npm.io page: https://npm.io/package/builder-debug-utils

## Dependencies (2)

- [bent](https://npm.io/package/bent.md) ^7.3.1
- [fs-extra](https://npm.io/package/fs-extra.md) ^9.0.0

## Recent versions

- 3.0.2 (latest) — 2021-08-25
- 3.0.1 — 2021-08-20
- 3.0.0 — 2021-08-20
- 2.2.1 — 2021-03-01
- 2.1.2 — 2021-02-23
- 2.0.0-mix.9 — 2020-12-21

## README

```
const debugUtils = require('builder-debug-utils');

const debugUtils.generateInjectCodePath({
  target: 'Mini',
  mode: 'Preview',
  compilePlugin: false,
}); // /Users/foo/bar

tiny-cli --injectCodePath /Users/foo/bar
```

/offline/assets_map - 用于存储构建脚本文本
$TMPDIR/builder_debug_output_v2 - 用于作为 tiny-cli injectCodePath 入参

### API

- 检查更新
  比较本地与服务端资源 sha256 是否相同，若不同更新本地资源

```
const injectCodePath = await updateInjectCodeAssets();
```

- 生成 injectCode

```
await generateInjectCode({
  mode: 'Remotex',
});

generateInjectCodeSync({
  mode: 'Remotex',
});
```

- 生成 injectCodePath

```
await generateInjectCodePath({
  mode: 'Remotex',
});

generateInjectCodePathSync({
  mode: 'Remotex',
})
```

- 获取 boatman 资源路径

```
await getBoatmanBundlePath();

getBoatmanBundlePathSync();
```

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