0.0.3 • Published 8 years ago
glob-contents v0.0.3
glob-contents
Just like Glob, but with files contents.
var glob = require('glob-contents')
glob('path/to/**/*').then(function (contents) {
console.log(contents)
// {
// 'path/to/file1.txt': 'file 1 contents...',
// 'path/to/file2.txt': 'file 2 contents...'
// }
})
installation
npm install glob-contents --save
tests
npm install && npm test
usage
It receives exactly the same arguments from Node Glob, the difference is that it returns a Promise.
license
MIT