# extglob-invert

> A tiny tool to invert extglobs.

Latest version **1.0.3** (published 2017-04-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install extglob-invert
pnpm add extglob-invert
yarn add extglob-invert
bun add extglob-invert
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2017-04-04 |
| First published | 2017-04-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Leo Lozach |
| Maintainers | leelow |
| Keywords | extglob, glob, invert |

## Links

- npm: https://www.npmjs.com/package/extglob-invert
- Repository: https://github.com/Leelow/extglob-invert
- Homepage: https://github.com/Leelow/extglob-invert#readme
- Issues: https://github.com/Leelow/extglob-invert/issues
- npm.io page: https://npm.io/package/extglob-invert

## Recent versions

- 1.0.3 (latest) — 2017-04-04
- 1.0.2 — 2017-04-04
- 1.0.1 — 2017-04-03
- 1.0.0 — 2017-04-03

## README

# extglob-invert

[![Greenkeeper badge](https://badges.greenkeeper.io/Leelow/extglob-invert.svg)](https://greenkeeper.io/)
[![NPM downloads][downloads-image]][downloads-url]
[![Build Status][travis-image]][travis-url]
[![Build Status][appveyor-image]][appveyor-url]
[![Codacy Coverage][codacy-coverage-image]][codacy-coverage-url]
[![Codacy Grade][codacy-grade-image]][codacy-grade-url]
[![Dev-dependencies][dev-dependencies-image]][dev-dependencies-url]
[![JavaScript Style Guide][javascript-standard-image]][javascript-standard-url]

A tiny tool to invert extglobs.

## Install

```
$ npm install --save extglob-invert
```

## Usage

```js
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](LICENSE) © [Léo Lozach](https://github.com/Leelow)

[downloads-image]: https://img.shields.io/npm/dt/extglob-invert.svg?maxAge=3600
[downloads-url]: https://www.npmjs.com/package/extglob-invert
[travis-image]: https://travis-ci.org/Leelow/extglob-invert.svg?branch=master
[travis-url]: https://travis-ci.org/Leelow/extglob-invert
[appveyor-image]: https://ci.appveyor.com/api/projects/status/ktjub3fo9bvnohjj?svg=true
[appveyor-url]: https://ci.appveyor.com/project/Leelow/extglob-invert
[codacy-coverage-image]: https://api.codacy.com/project/badge/Coverage/049a83f312774b2288138611daf67b27
[codacy-coverage-url]: https://www.codacy.com/app/Leelow/extglob-invert?utm_source=github.com&utm_medium=referral&utm_content=Leelow/extglob-invert&utm_campaign=Badge_Coverage
[codacy-grade-image]: https://api.codacy.com/project/badge/Grade/049a83f312774b2288138611daf67b27
[codacy-grade-url]: https://www.codacy.com/app/Leelow/extglob-invert?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=Leelow/extglob-invert&amp;utm_campaign=Badge_Grade
[dev-dependencies-image]: https://david-dm.org/leelow/extglob-invert/dev-status.svg
[dev-dependencies-url]: https://david-dm.org/leelow/extglob-invert?type=dev
[javascript-standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg
[javascript-standard-url]: http://standardjs.com/

---
_Source: https://npm.io/package/extglob-invert · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
