1.0.0 • Published 7 years ago

ignore-glob v1.0.0

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

Build Status

DEPRECATED

Please use glob-gitignore instead ~

Install

$ npm install ignore-glob --save

Usage

const glob = require('ignore-glob')

glob({
  cwd: cwd,
  ignore: [
    '/*.js',
    '*.db'
  ]
}, (err, files) => {

})

glob(options, callback)

  • options Object The options of ignore-glob is much the same as node-glob, except for:
    • ignore String=|Array.<String>= ignore patterns
    • ignoreFile path path to the .gitignore or any ignore files according to gitignore spec.

glob.sync(options)

License

MIT