# @kenjiuno/decompressrtf

> Decompress CompressedRTF (used in outlook msg)

Latest version **0.1.4** (published 2021-08-12) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install @kenjiuno/decompressrtf
pnpm add @kenjiuno/decompressrtf
yarn add @kenjiuno/decompressrtf
bun add @kenjiuno/decompressrtf
```

## Health

**Score 40/100 (D)** — status: abandoned.

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

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2021-08-12 |
| First published | 2019-01-26 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | kenjiuno |
| Maintainers | kenjiuno |

## Links

- npm: https://www.npmjs.com/package/@kenjiuno/decompressrtf
- Repository: https://github.com/HiraokaHyperTools/DeCompressRTF
- Homepage: https://github.com/HiraokaHyperTools/DeCompressRTF#readme
- Issues: https://github.com/HiraokaHyperTools/DeCompressRTF/issues
- npm.io page: https://npm.io/package/@kenjiuno/decompressrtf

## Recent versions

- 0.1.4 (latest) — 2021-08-12
- 0.1.3 — 2020-03-23
- 0.1.2 — 2019-03-04
- 0.1.1 — 2019-01-26
- 0.1.0 — 2019-01-26

## README

# DeCompressRTF

[![npm](https://img.shields.io/npm/v/@kenjiuno/decompressrtf)](https://www.npmjs.com/package/@kenjiuno/decompressrtf)

CompressedRTF is a compressed entity found in Outlook Item File (.msg).

DeCompressRTF is a decompressor in JavaScript npm module

## How to use

```javascript
const fs = require('fs');
const { decompressRTF } = require('@kenjiuno/decompressrtf');

const inputArray = fs.readFileSync('test/__substg1.0_10090102');
const outputArray = decompressRTF(inputArray);

console.log(Buffer.from(outputArray).toString("ascii"));
```

## Reference

- The Compressed RTF Format
  https://www.freeutils.net/source/jtnef/rtfcompressed

- 2.1.3.1 RTF Compression Format
  https://msdn.microsoft.com/en-us/library/ee159164(v=exchg.80).aspx

- 1009-PidTagRtfCompressed
  https://github.com/HiraokaHyperTools/OXPROPS/blob/master/JSON/1009-PidTagRtfCompressed.md

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