# glob-contents

> Glob with contents

Latest version **0.0.3** (published 2016-09-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install glob-contents
pnpm add glob-contents
yarn add glob-contents
bun add glob-contents
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2016-09-27 |
| First published | 2016-09-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Guilherme Santiago |
| Maintainers | gsantiago |
| Keywords | glob, contents, read, promise, fs, async |

## Links

- npm: https://www.npmjs.com/package/glob-contents
- Repository: https://github.com/gsantiago/glob-contents
- Homepage: https://github.com/gsantiago/glob-contents#readme
- Issues: https://github.com/gsantiago/glob-contents/issues
- npm.io page: https://npm.io/package/glob-contents

## Dependencies (1)

- [glob-promise](https://npm.io/package/glob-promise.md) ^1.0.6

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 0.0.3 (latest) — 2016-09-27
- 0.0.2 — 2016-09-26
- 0.0.1 — 2016-09-26

## README

# glob-contents

[![Build Status](https://travis-ci.org/gsantiago/glob-contents.svg?branch=master)](https://travis-ci.org/gsantiago/glob-contents)
[![npm version](https://badge.fury.io/js/glob-contents.svg)](http://badge.fury.io/js/glob-contents)
[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)

Just like [Glob](https://github.com/isaacs/node-glob), but with files contents.

```js
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](https://github.com/isaacs/node-glob), the difference
is that it returns a Promise.

## license

MIT

---
_Source: https://npm.io/package/glob-contents · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
