# redstar

> quick and dirty file globber ( quicker but dirtier than 'glob' )

Latest version **0.0.2** (published 2017-12-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install redstar
pnpm add redstar
yarn add redstar
bun add redstar
```

## 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.2 |
| Published | 2017-12-09 |
| First published | 2017-11-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | talmobi |
| Maintainers | talmobi |
| Keywords | redstar, glob, globstar, filestar, file |

## Links

- npm: https://www.npmjs.com/package/redstar
- Repository: https://github.com/talmobi/redstar
- Homepage: https://github.com/talmobi/redstar#readme
- Issues: https://github.com/talmobi/redstar/issues
- npm.io page: https://npm.io/package/redstar

## Dependencies (1)

- [minimatch](https://npm.io/package/minimatch.md) ~3.0.4

## 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.2 (latest) — 2017-12-09
- 0.0.1 — 2017-11-18

## README

[![npm](https://img.shields.io/npm/v/redstar.svg?maxAge=3600&style=flat-square)](https://www.npmjs.com/package/redstar)
[![npm](https://img.shields.io/npm/l/redstar.svg?maxAge=3600&style=flat-square)](https://github.com/talmobi/redstar/blob/master/LICENSE)

#  redstar 💥
basic file globber

## Easy to use
```js
var glob = require( 'redstar' )
glob( 'src/**/*.js', function ( err, files, dirs ) {
  if ( err ) {
    // any errors e.g. permission EACCES errors etc
    err.forEach( function ( err ) {
      console.error( err )
    } )
  }

  // all matched files
  files.forEach( function ( file ) {
    console.log( 'file: ' + file )
  } )

  // all recursed dirs ( including dirs without any matching files )
  dirs.forEach( function ( dir ) {
    console.log( 'dir: ' + dir )
  } )
} )
```

## About
Simple globber. Ignores `**/node_modules/**`, `**.git/**` and `.hidden` files by default.

## Why
Small, quick, and easy -- had some inconsistency problems using other popular alternatives.

## How
fs.readdir and [minimatch](https://github.com/isaacs/minimatch).

## Alternatives
[node-glob](https://github.com/isaacs/node-glob)

## Test
```bash
npm test
```

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