{"id":19653043,"url":"https://github.com/csstools/postcss-unnot","last_synced_at":"2025-04-28T17:31:19.559Z","repository":{"id":57328623,"uuid":"43649215","full_name":"csstools/postcss-unnot","owner":"csstools","description":"Remove :not selectors in CSS","archived":false,"fork":false,"pushed_at":"2015-10-24T06:21:29.000Z","size":144,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-14T03:58:16.979Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://jonathantneal.github.io/oldie/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/csstools.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-04T19:20:00.000Z","updated_at":"2023-01-23T20:59:15.000Z","dependencies_parsed_at":"2022-09-04T10:30:12.967Z","dependency_job_id":null,"html_url":"https://github.com/csstools/postcss-unnot","commit_stats":null,"previous_names":["jonathantneal/postcss-unnot"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fpostcss-unnot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fpostcss-unnot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fpostcss-unnot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fpostcss-unnot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csstools","download_url":"https://codeload.github.com/csstools/postcss-unnot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223794014,"owners_count":17203916,"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":[],"created_at":"2024-11-11T15:13:00.375Z","updated_at":"2024-11-11T15:13:01.176Z","avatar_url":"https://github.com/csstools.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UnNot [![Build Status][ci-img]][ci]\n\n\u003cimg align=\"right\" width=\"135\" height=\"95\" src=\"http://postcss.github.io/postcss/logo-leftp.png\" title=\"Philosopher’s stone, logo of PostCSS\"\u003e\n\n[UnNot] removes `:not` selectors while preserving other selectors. This can be useful for outputting CSS for old browsers like Internet Explorer 8.\n\n```css\n/* before */\n\n.a, .b:not(.c), d {\n    color: red;\n}\n\n/* after */\n\n.a, .d {\n    color: red;\n}\n```\n\n## Usage\n\nAdd [UnNot] to your build tool:\n\n```bash\nnpm install postcss-unnot --save-dev\n```\n\n#### Node\n\n```js\nrequire('postcss-unnot')({ /* options */ }).process(YOUR_CSS);\n```\n\n#### PostCSS\n\nAdd [PostCSS] to your build tool:\n\n```bash\nnpm install postcss --save-dev\n```\n\nLoad [UnNot] as a PostCSS plugin:\n\n```js\npostcss([\n    require('postcss-unnot')({ /* options */ })\n]);\n```\n\n#### Gulp\n\nAdd [Gulp PostCSS] to your build tool:\n\n```bash\nnpm install gulp-postcss --save-dev\n```\n\nEnable [UnNot] within your Gulpfile:\n\n```js\nvar postcss = require('gulp-postcss');\n\ngulp.task('css', function () {\n    return gulp.src('./css/src/*.css').pipe(\n        postcss([\n            require('postcss-unnot')({ /* options */ })\n        ])\n    ).pipe(\n        gulp.dest('./css')\n    );\n});\n```\n\n#### Grunt\n\nAdd [Grunt PostCSS] to your build tool:\n\n```bash\nnpm install grunt-postcss --save-dev\n```\n\nEnable [UnNot] within your Gruntfile:\n\n```js\ngrunt.loadNpmTasks('grunt-postcss');\n\ngrunt.initConfig({\n    postcss: {\n        options: {\n            processors: [\n                require('postcss-unnot')({ /* options */ })\n            ]\n        },\n        dist: {\n            src: 'css/*.css'\n        }\n    }\n});\n```\n\n### Options\n\n#### `method`\n\nType: `String`  \nDefault: `'remove'`\n\n##### `remove`\nRemove any selectors with `:not` functions.\n```css\n/* before */\n\n.a, .b:not(.c), d {\n    color: red;\n}\n\n/* after */\n\n.a, .d {\n    color: red;\n}\n```\n\n##### `move`\nMove any selectors with `:not` functions into a cloned rule.\n```css\n/* before */\n\n.a, .b:not(.c), .d {}\n\n/* after */\n\n.b:not(.c) {\n    color: red;\n}\n\n.a, .d {\n    color: red;\n}\n```\n\n##### `pseudo`\nRemove only the `:not` functions from selectors.\n```css\n/* before */\n\n.a, .b:not(.c), .d {\n    color: red;\n}\n\n/* after */\n\n.a, .b, .d {\n    color: red;\n}\n```\n\n##### `warn`\nWarn when a `:not` function is used.\n\n[ci]: https://travis-ci.org/jonathantneal/postcss-unnot\n[ci-img]: https://travis-ci.org/jonathantneal/postcss-unnot.svg\n[Gulp PostCSS]: https://github.com/postcss/gulp-postcss\n[Grunt PostCSS]: https://github.com/nDmitry/grunt-postcss\n[PostCSS]: https://github.com/postcss/postcss\n[UnNot]: https://github.com/jonathantneal/postcss-unnot\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsstools%2Fpostcss-unnot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsstools%2Fpostcss-unnot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsstools%2Fpostcss-unnot/lists"}