{"id":13671092,"url":"https://github.com/thompsongl/postcss-class-prefix","last_synced_at":"2025-05-13T13:12:01.316Z","repository":{"id":28883703,"uuid":"32408290","full_name":"thompsongl/postcss-class-prefix","owner":"thompsongl","description":"No Longer Maintained - A class prefixer/namespacer for postcss","archived":false,"fork":false,"pushed_at":"2018-01-04T16:33:57.000Z","size":14,"stargazers_count":83,"open_issues_count":0,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-27T14:38:36.598Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/thompsongl.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2015-03-17T17:14:07.000Z","updated_at":"2024-08-12T10:52:04.000Z","dependencies_parsed_at":"2022-09-17T14:40:18.004Z","dependency_job_id":null,"html_url":"https://github.com/thompsongl/postcss-class-prefix","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thompsongl%2Fpostcss-class-prefix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thompsongl%2Fpostcss-class-prefix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thompsongl%2Fpostcss-class-prefix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thompsongl%2Fpostcss-class-prefix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thompsongl","download_url":"https://codeload.github.com/thompsongl/postcss-class-prefix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253948445,"owners_count":21988957,"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-08-02T09:00:58.769Z","updated_at":"2025-05-13T13:12:01.261Z","avatar_url":"https://github.com/thompsongl.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# postcss-class-prefix [![Build Status](https://secure.travis-ci.org/thompsongl/postcss-class-prefix.png?branch=master)](http://travis-ci.org/thompsongl/postcss-class-prefix)\n___\n\n## ⚠️ Repo no longer actively maintained\nPlease look to [postcss-prefixer](https://github.com/marceloucker/postcss-prefixer) or [postcss-slds-prefix](https://github.com/salesforce-ux/postcss-slds-prefix) for similar functionallity in active repos.\n\n___\n\nA [PostCSS](https://github.com/postcss/postcss) plugin to prefix/namespace classes.\n\nAvoid collisions with other libraries/stylesheets by prefixing your components with a namespace.\n\n__Example input__\n\n```css\n.Component { /* ... */ }\n.Component--modifier { /* ... */ }\n.Component-descendent { /* ... */ }\n```\n\n__Example output__\n`classPrefix('pfx-')`\n```css\n.pfx-Component { /* ... */ }\n.pfx-Component--modifier { /* ... */ }\n.pfx-Component-descendent { /* ... */ }\n```\n\n\n## Installation\n\n```\nnpm install postcss-class-prefix\n```\n\n## Usage\n\n```javascript\nvar fs        = require('fs');\nvar postcss   = require('postcss');\nvar classPrfx = require('postcss-class-prefix');\n\nvar css = fs.readFileSync('css/my-file.css', 'utf8').toString();\nvar out = postcss()\n          .use(classPrfx('my-prefix-'))\n          .process(css);\n```\n\n### Using the `ignore` option\n\n```javascript\nvar fs        = require('fs');\nvar postcss   = require('postcss');\nvar classPrfx = require('postcss-class-prefix');\n\nvar css = fs.readFileSync('css/my-file.css', 'utf8').toString();\nvar out = postcss()\n          .use(classPrfx('my-prefix-', { ignore: [/ng-/, 'some-class-to-ignore']}))\n          .process(css);\n```\n\n## License\n\nMIT\n\n## Acknowledgements\n\n* Based on [rework-class-prefix](https://github.com/jnv/rework-class-prefix) ([originally](https://github.com/johnotander/rework-class-prefix))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthompsongl%2Fpostcss-class-prefix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthompsongl%2Fpostcss-class-prefix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthompsongl%2Fpostcss-class-prefix/lists"}