$ gnpm install glob-slash
Prefix globs with a slash and normalize. Supports negated globs too.
npm install glob-slash --save
var globSlash = require('glob-slash');
console.log(globSlash('!**/testing')) // OUTPUTS: !/**/testing
console.log(globSlash('another-test//**')) // OUTPUTS: /another-test/**
npm install
npm test
Copyright 2013 - present © cnpmjs.org | Home |