Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/adam-lynch/glob-to-vinyl

Takes a glob, reads in files and returns Vinyls
https://github.com/adam-lynch/glob-to-vinyl

Last synced: 3 months ago
JSON representation

Takes a glob, reads in files and returns Vinyls

Awesome Lists containing this project

README

        

glob-to-vinyl [![NPM version][npm-image]][npm-url] [![Dependency Status][depstat-image]][depstat-url]
=============

Takes a glob, reads in files and returns [Vinyl](https://github.com/wearefractal/vinyl)s. Created based on [wearefractal/vinyl/issues/20](https://github.com/wearefractal/vinyl/issues/20).

## Usage

```javascript
var globToVinyl = require('glob-to-vinyl');

globToVinyl('*.js', function(err, files){
console.log(files);
console.log(files[0].contents.toString('utf8'));
});
```

[npm-url]: https://npmjs.org/package/glob-to-vinyl
[npm-image]: http://img.shields.io/npm/v/glob-to-vinyl.svg?style=flat

[depstat-url]: https://david-dm.org/adam-lynch/glob-to-vinyl
[depstat-image]: https://david-dm.org/adam-lynch/glob-to-vinyl.svg?style=flat