# netpbm-parser

> A parser of PBM, PGM, and PPM images

Latest version **1.1.7** (published 2020-08-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install netpbm-parser
pnpm add netpbm-parser
yarn add netpbm-parser
bun add netpbm-parser
```

## 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 | 1.1.7 |
| Published | 2020-08-03 |
| First published | 2020-08-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 26.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Hao Luo |
| Maintainers | howlowck |

## Links

- npm: https://www.npmjs.com/package/netpbm-parser
- npm.io page: https://npm.io/package/netpbm-parser

## Recent versions

- 1.1.7 (latest) — 2020-08-03
- 1.1.6 — 2020-08-03
- 1.1.5 — 2020-08-03
- 1.1.4 — 2020-08-03
- 1.1.2 — 2020-08-01
- 1.1.1 — 2020-08-01

## README

# NetPbm Parser

A parser of PBM, PGM, and PPM images

## Features
* Zero Dependency
* Supports P1, P2 and P3
* Supports magnification

## How to Use
```js
import { parse } from 'netpbm-parser'

// content is the content of your ASCII-based image
// mag is the magnification of the output data in Uint8ClampedArray

const doc: Result = parse(content, mag) // mag defaults to 1

// interface Result {
//   type: ImageType;
//   dimension: {
//     width: number;
//     height: number;
//   };
//   max: number;
//   rawData: string;
//   rgba: Uint8ClampedArray
// }
```

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