# datamosher

> Datamoshing Library

Latest version **0.2.1** (published 2017-09-03) · MIT license · 0 weekly downloads

## Install

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

## 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.2.1 |
| Published | 2017-09-03 |
| First published | 2017-08-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 52 |
| Author | Roecrew |
| Maintainers | roecrew |
| Keywords | datamosh, glitch, glitch art, mp4, avi, mkv |

## Links

- npm: https://www.npmjs.com/package/datamosher
- Repository: https://github.com/roecrew/datamosher
- Homepage: https://github.com/roecrew/datamosher#readme
- Issues: https://github.com/roecrew/datamosher/issues
- npm.io page: https://npm.io/package/datamosher

## Dependencies (1)

- [fs](https://npm.io/package/fs.md) latest

## Alternatives

- [express-promise-router](https://npm.io/package/express-promise-router.md) — 736.1K weekly downloads
- [next-usequerystate](https://npm.io/package/next-usequerystate.md) — 29.8K weekly downloads
- [@bitkyc08/opencodex](https://npm.io/package/@bitkyc08/opencodex.md) — 4.6K weekly downloads
- [lynkr](https://npm.io/package/lynkr.md) — 575 weekly downloads
- [baremetal.js](https://npm.io/package/baremetal.js.md) — 42 weekly downloads

## Recent versions

- 0.2.1 (latest) — 2017-09-03
- 0.2.0 — 2017-09-02
- 0.1.9 — 2017-09-02
- 0.1.8 — 2017-08-31
- 0.1.7 — 2017-08-31
- 0.1.6 — 2017-08-28
- 0.1.5 — 2017-08-27
- 0.1.4 — 2017-08-27
- 0.1.3 — 2017-08-27
- 0.1.2 — 2017-08-27
- 0.1.1 — 2017-08-27
- 0.1.0 — 2017-08-27

## README

# datamosher
Datamosh your videos.

![Image](http://i.imgur.com/gQ100W5.jpg)

![Image](https://media.giphy.com/media/13bMkBsTQ7mh32/giphy.gif)

## Supported File Types

* mp4
* mkv
* avi

## Quick Start

    npm install datamosher

## Methods

    glitchMP4(value, freq, repeat, start, end, left, right); //default values (0, 0, 1, 0, 100, 10, 90)
    
    glitchAIV(offset, value, freq, repeat, start, end); //default values (10000, 0, 0, 1, 0, 100)
    
    glitchMKV(offset, value, freq, repeat, start, end); //default values (10000, 0, 0, 1, 0, 100)
    
    generate(newFilename); //default value <filename>_glitched.<filetype>

## Properties

    fileName
    
	fileType
    
	rawData //hex buffer
    
	data //string buffer

## Example
    
    //simple datamoshing program
    
    var dmosh = require("datamosher");
    var file = new dmosh("video.mp4");
    file.glitchMP4();
    file.generate();
    
    console.log(file.rawData);

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