# unfixated

> Stream fixed width files to objects

Latest version **0.0.4** (published 2016-08-18) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2016-08-18 |
| First published | 2015-04-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Saar Yahalom |
| Maintainers | saary |
| Keywords | fixed, width, text, files, stream, objects |

## Links

- npm: https://www.npmjs.com/package/unfixated
- Repository: https://github.com/saary/unfixated
- Issues: https://github.com/saary/unfixated/issues
- npm.io page: https://npm.io/package/unfixated

## Dependencies (2)

- [iconv](https://npm.io/package/iconv.md) ^2.1.11
- [byline](https://npm.io/package/byline.md) ^4.2.1

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 0.0.4 (latest) — 2016-08-18
- 0.0.2 — 2015-04-11
- 0.0.1 — 2015-04-11

## README

# unfixated
Stream fixed width files into objects

## Install
`npm install unfixated`

## How?

```javascript
var Iconv  = require('iconv').Iconv;
var fs = require('fs');
var UnFixated  = require('unfixated');

var stream = fs.createReadStream(path.join(__dirname, 'fixedWidth.txt'));

var format = {
  firstName: 30,
  lastName:  30,
  phone:     15,
  address:  100,
};

// set conversion function
var iconv = new Iconv('CP1255', 'UTF-8');
var opt = {
  convert: iconv.convert.bind(iconv),
};

var unfixated = new UnFixated(format, opt);

unfixated.on('data', function(obj) {
  console.log(obj);
});

stream.pipe(unfixated);
```

### License
MIT

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