Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/adam-lynch/glob-to-vinyl
- Owner: adam-lynch
- License: mit
- Created: 2014-06-01T01:44:25.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-04-22T00:09:51.000Z (9 months ago)
- Last Synced: 2024-09-24T17:37:17.605Z (3 months ago)
- Language: JavaScript
- Homepage: http://www.adamlynch.com
- Size: 6.84 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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