glob-slash

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

Usage no npm install needed!

<script type="module">
  import globSlash from 'https://cdn.skypack.dev/glob-slash';
</script>

README

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