1 # exec-buffer [![Build Status](http://img.shields.io/travis/kevva/exec-buffer.svg?style=flat)](https://travis-ci.org/kevva/exec-buffer)
3 > Run a buffer through a child process
9 $ npm install --save exec-buffer
16 const fs = require('fs');
17 const execBuffer = require('exec-buffer');
18 const gifsicle = require('gifsicle').path;
21 input: fs.readFileSync('test.gif'),
23 args: ['-o', execBuffer.output, execBuffer.input]
26 //=> <Buffer 47 49 46 38 37 61 ...>
33 ### execBuffer(options)
41 The `buffer` to be ran through the child process.
53 Arguments to run the binary with.
57 Returns a temporary path to where the input file will be written.
61 Returns a temporary path to where the output file will be written.
66 MIT © [Kevin Mårtensson](https://github.com/kevva)