2.0.0 • Published 7 years ago

sugar-glob v2.0.0

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

sugar-glob

Find files using glob with a little added sugar

npm.io

Install

npm install sugar-glob

Usage

var scan = require('sugar-glob')

scan({
  root: './my-folder' // relative to this file or absolute path
})
.file('**/*.html', function(file) {
  console.log(file)
})

Outputs the following for each file matching the pattern:

{ name: 'abc/my-file.html',
  dir: 'abc',
  basename: 'my-file.html',
  dirname: '/Users/will123195/my-folder/abc',
  extname: '.html',
  filename: '/Users/will123195/my-folder/abc/my-file.html' }
2.0.0

7 years ago

1.2.2

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago

0.0.3

9 years ago

0.0.2

10 years ago

0.0.1

10 years ago