glob-contents

0.0.3 • Public • Published

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

Package Sidebar

Install

npm i glob-contents

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • gsantiago