0.0.3 • Published 8 years ago

glob-contents v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

glob-contents

Build Status npm version JavaScript Style Guide

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