npm.io
0.1.8 • Published 12 years ago

globy

Licence
MIT
Version
0.1.8
Deps
1
Vulns
0
Weekly
0
Stars
8
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

globy

New glob library for Node.js. Search fast and exactly. Build Status Coverage Status

NPM

Installation

Requires (optional)

Install

$ npm install globy

Usage

var globy = require("globy");

var options = {
    "dot": true,
    "nocase": false,
    "nofollow": false,
};

var files = globy.glob("**/*.js", options);

API

globy.glob(pattern, [options])

Glob search files.

  • returns {String[]}
  • pattern {String} filepath pattern
  • options {Object=} search options
    • dot {Boolean} (default: false) if true, * and ** matchs dotfiles
    • nocase {Boolean} (default: false) if true, perform case-insensitive match
    • nofollow {Boolean} (default: false) if true, ** does not search symbolic link directory
    • cwd {String} (default: null) Change current working directory

Keywords