preact-material-components
Version:
preact wrapper for "Material Components for the web"
38 lines (20 loc) • 634 B
Markdown
> Create a vinyl file or stream from a buffer
```
$ npm install --save buffer-to-vinyl
```
```js
var bufferToVinyl = require('buffer-to-vinyl');
var fs = require('fs');
bufferToVinyl.file(fs.readFileSync('foo.jpg', null));
bufferToVinyl.stream(fs.readFileSync('foo.jpg', null));
```
Creates a vinyl file.
Creates a object stream.
MIT © [Kevin Mårtensson](https://github.com/kevva)