{"id":29547939,"url":"https://github.com/micromatch/is-negated-glob","last_synced_at":"2025-07-17T20:43:27.030Z","repository":{"id":57277390,"uuid":"67744674","full_name":"micromatch/is-negated-glob","owner":"micromatch","description":"Returns an object with a `negated` boolean and the `!` stripped from negation patterns. Also respects extglobs.","archived":false,"fork":false,"pushed_at":"2016-09-08T23:38:27.000Z","size":6,"stargazers_count":8,"open_issues_count":1,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-17T09:53:03.881Z","etag":null,"topics":["glob","glob-pattern","negation","negation-patterns","pattern"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/micromatch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-08T22:26:17.000Z","updated_at":"2023-11-07T04:11:41.000Z","dependencies_parsed_at":"2022-09-18T15:51:01.386Z","dependency_job_id":null,"html_url":"https://github.com/micromatch/is-negated-glob","commit_stats":null,"previous_names":["jonschlinkert/is-negated-glob"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/micromatch/is-negated-glob","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micromatch%2Fis-negated-glob","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micromatch%2Fis-negated-glob/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micromatch%2Fis-negated-glob/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micromatch%2Fis-negated-glob/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/micromatch","download_url":"https://codeload.github.com/micromatch/is-negated-glob/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micromatch%2Fis-negated-glob/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265660741,"owners_count":23807208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["glob","glob-pattern","negation","negation-patterns","pattern"],"created_at":"2025-07-17T20:43:24.669Z","updated_at":"2025-07-17T20:43:27.018Z","avatar_url":"https://github.com/micromatch.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-negated-glob [![NPM version](https://img.shields.io/npm/v/is-negated-glob.svg?style=flat)](https://www.npmjs.com/package/is-negated-glob) [![NPM downloads](https://img.shields.io/npm/dm/is-negated-glob.svg?style=flat)](https://npmjs.org/package/is-negated-glob) [![Build Status](https://img.shields.io/travis/jonschlinkert/is-negated-glob.svg?style=flat)](https://travis-ci.org/jonschlinkert/is-negated-glob)\n\n\u003e Returns an object with a `negated` boolean and the `!` stripped from negation patterns. Also respects extglobs.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save is-negated-glob\n```\n\n## Usage\n\n```js\nvar isNegatedGlob = require('is-negated-glob');\n\nconsole.log(isNegatedGlob('foo'));\n// { pattern: 'foo', negated: false }\n\nconsole.log(isNegatedGlob('!foo'));\n// { pattern: 'foo', negated: true }\n\nconsole.log(isNegatedGlob('!(foo)'));\n// extglob patterns are ignored\n// { pattern: '!(foo)', negated: false }\n```\n\n## About\n\n### Related projects\n\n* [is-extglob](https://www.npmjs.com/package/is-extglob): Returns true if a string has an extglob. | [homepage](https://github.com/jonschlinkert/is-extglob \"Returns true if a string has an extglob.\")\n* [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern or an extglob pattern… [more](https://github.com/jonschlinkert/is-glob) | [homepage](https://github.com/jonschlinkert/is-glob \"Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet\")\n* [to-absolute-glob](https://www.npmjs.com/package/to-absolute-glob): Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are… [more](https://github.com/jonschlinkert/to-absolute-glob) | [homepage](https://github.com/jonschlinkert/to-absolute-glob \"Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Building docs\n\n_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_\n\nTo generate the readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install -g verb verb-generate-readme \u0026\u0026 verb\n```\n\n### Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -d \u0026\u0026 npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT license](https://github.com/jonschlinkert/is-negated-glob/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.1.30, on September 08, 2016._","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicromatch%2Fis-negated-glob","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicromatch%2Fis-negated-glob","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicromatch%2Fis-negated-glob/lists"}