# usm-decrypter

> ```ts export declare type DecryptCallback = (err: Error | null, outdir: string) => void

Latest version **1.1.2** (published 2024-03-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install usm-decrypter
pnpm add usm-decrypter
yarn add usm-decrypter
bun add usm-decrypter
```

## 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 | 1.1.2 |
| Published | 2024-03-04 |
| First published | 2020-12-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 57 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 4 |
| Author | toyobayashi |
| Maintainers | toyobayashi |

## Links

- npm: https://www.npmjs.com/package/usm-decrypter
- Repository: https://github.com/toyobayashi/node-usm-decrypter
- Homepage: https://github.com/toyobayashi/node-usm-decrypter#readme
- Issues: https://github.com/toyobayashi/node-usm-decrypter/issues
- npm.io page: https://npm.io/package/usm-decrypter

## Dependencies (1)

- [node-addon-api](https://npm.io/package/node-addon-api.md) *

## Recent versions

- 1.1.2 (latest) — 2024-03-04
- 1.1.1 — 2021-07-21
- 1.1.0 — 2020-12-27
- 1.0.0 — 2020-12-26

## README

```ts
export declare type DecryptCallback = (err: Error | null, outdir: string) => void

export declare enum Encoding {
  UTF8 = 65001,
  SHIFT_JIS = 932
}

export declare class USMDecrypter {
  constructor(cipherKey1?: number, cipherKey2?: number)

  getEncoding (): Encoding
  setEncoding (encoding: Encoding): void

  demux (usmFile: string, callback?: DecryptCallback): void
  demux (usmFile: string, outdir: string, callback?: DecryptCallback): void
  demux (usmFile: string, outdir: string, adxDecode: boolean, callback?: DecryptCallback): void

  demuxSync (usmFile: string, outdir?: string, adxDecode?: boolean): string
}
```

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