{"id":15381871,"url":"https://github.com/lbrian/postcss-class-rename","last_synced_at":"2025-04-15T19:18:34.751Z","repository":{"id":45034233,"uuid":"170248269","full_name":"LBrian/postcss-class-rename","owner":"LBrian","description":"PostCSS plugin simply replaces string without hassle","archived":false,"fork":false,"pushed_at":"2022-01-13T06:31:48.000Z","size":7,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T19:18:26.999Z","etag":null,"topics":["css","postcss","postcss-plugin","postcss-plugins","rollup","webpack","webpack-loader"],"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/LBrian.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":"2019-02-12T03:54:24.000Z","updated_at":"2024-11-13T19:00:49.000Z","dependencies_parsed_at":"2022-09-10T22:00:11.624Z","dependency_job_id":null,"html_url":"https://github.com/LBrian/postcss-class-rename","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LBrian%2Fpostcss-class-rename","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LBrian%2Fpostcss-class-rename/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LBrian%2Fpostcss-class-rename/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LBrian%2Fpostcss-class-rename/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LBrian","download_url":"https://codeload.github.com/LBrian/postcss-class-rename/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249135832,"owners_count":21218365,"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":["css","postcss","postcss-plugin","postcss-plugins","rollup","webpack","webpack-loader"],"created_at":"2024-10-01T14:29:04.527Z","updated_at":"2025-04-15T19:18:34.729Z","avatar_url":"https://github.com/LBrian.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postcss-class-rename\n[PostCSS] plugin to replace class name by giving key-value mapping in options.\n\n---\n[postcss]: https://github.com/postcss/postcss\n\n## Installation\n```\nnpm install postcss-class-rename --save-dev\n```\n\n## Usage\n### rollup\n```\npostcss({\n    plugins: [\n      require('autoprefixer'),\n      require('postcss-class-rename')({\n        // replace 'button-' in class name to 'btn-'\n        button-: 'btn-',\n        // All options are treated as replacement mapping\n        ...\n      })\n    ]\n  }),\n\n```\n\n### postcss.config.js\n```\nconst rename = require('postcss-class-rename');\n\nmodule.exports = ({ env }) =\u003e {\n  plugins: [\n    rename({\n      // All options are treated as replacement mapping\n      button-: 'btn-',\n      ...\n    })\n  ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flbrian%2Fpostcss-class-rename","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flbrian%2Fpostcss-class-rename","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flbrian%2Fpostcss-class-rename/lists"}