1.0.3 • Published 7 years ago

extglob-invert v1.0.3

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

extglob-invert

Greenkeeper badge NPM downloads Build Status Build Status Codacy Coverage Codacy Grade Dev-dependencies JavaScript Style Guide

A tiny tool to invert extglobs.

Install

$ npm install --save extglob-invert

Usage

const invert = require('extglob-invert');

invert('/path/to/file')             // !(path/to/file)
invert('   !  !( !/path/to/file)')  // /path/to/file
invert('!**')                       // **
invert('!(!!(**))')                 // **
invert(['file1', '!file2'])         // ['!(file1)', 'file2']

Test and coverage

You just have to clone the repo and run

$ npm test
$ npm run coverage

License

MIT © Léo Lozach

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago