1.0.0 • Published 9 years ago

glob-slash v1.0.0

Weekly downloads
326,980
License
MIT
Repository
github
Last release
9 years ago

glob-slash

Prefix globs with a slash and normalize. Supports negated globs too.

Install

npm install glob-slash --save

Usage

var globSlash = require('glob-slash');

console.log(globSlash('!**/testing')) // OUTPUTS: !/**/testing
console.log(globSlash('another-test//**')) // OUTPUTS: /another-test/**

Run Tests

npm install
npm test