{"id":15061862,"url":"https://github.com/ezavile/postcss-text-transform","last_synced_at":"2025-10-04T21:31:45.770Z","repository":{"id":57328581,"uuid":"92120163","full_name":"ezavile/postcss-text-transform","owner":"ezavile","description":"A PostCSS plugin to transform the text","archived":true,"fork":false,"pushed_at":"2021-02-09T04:37:32.000Z","size":48,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-25T23:25:41.486Z","etag":null,"topics":["capitalize","lowercase","postcss","postcss-plugin","text","text-transformations","transform","uppercase"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/ezavile.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":"2017-05-23T02:29:36.000Z","updated_at":"2023-03-07T15:17:19.000Z","dependencies_parsed_at":"2022-09-21T02:31:23.880Z","dependency_job_id":null,"html_url":"https://github.com/ezavile/postcss-text-transform","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/ezavile%2Fpostcss-text-transform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezavile%2Fpostcss-text-transform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezavile%2Fpostcss-text-transform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezavile%2Fpostcss-text-transform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ezavile","download_url":"https://codeload.github.com/ezavile/postcss-text-transform/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219876787,"owners_count":16554787,"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":["capitalize","lowercase","postcss","postcss-plugin","text","text-transformations","transform","uppercase"],"created_at":"2024-09-24T23:26:13.730Z","updated_at":"2025-10-04T21:31:40.484Z","avatar_url":"https://github.com/ezavile.png","language":"TypeScript","readme":"[DEPRECATED] - Use [@postcss-plugins/text-transform](https://github.com/ezavile/postcss-plugins/tree/master/packages/text-transform) instead\n\n# postcss-text-transform\n\n[![Travis](https://img.shields.io/travis/ezavile/postcss-text-transform.svg?style=flat-square)](https://travis-ci.org/ezavile/postcss-text-transform)\n[![Codecov](https://img.shields.io/codecov/c/github/ezavile/postcss-text-transform.svg?style=flat-square)](https://codecov.io/gh/ezavile/postcss-text-transform)\n[![npm](https://img.shields.io/npm/v/postcss-text-transform.svg?style=flat-square)](https://www.npmjs.com/package/postcss-text-transform)\n[![MIT License](https://img.shields.io/npm/l/postcss-text-transform.svg?style=flat-square)](http://opensource.org/licenses/MIT)\n\nA [PostCSS] plugin to transform the text.\n\n## Installation\n```\nnpm install postcss-text-transform\n```\n\nWhat is this? For example, you have the following CSS file (I'm using [postcss-each] and [postcss-cssnext]):\n\n**backgrounds.css**\n```css\n.u {\n  @each $color in green, yellow, red {\n    @text-transform $color, upperFirst, $colorTransformed {\n      \u0026-bg$(colorTransformed) {\n        background-color: $color;\n      }\n    }\n  }\n}\n```\n\nAnd the plugin will give you:\n```css\n.u-bgGreen {\n  background-color: green\n}\n\n.u-bgYellow {\n  background-color: yellow\n}\n\n.u-bgRed {\n  background-color: red\n}\n```\n\n## Usage\n\n### JavaScript\n```javascript\npostcss([\n   require('postcss-text-transform')\n]);\n```\n\n## TypeScript\n```js\nimport * as postcssTextTransform from 'postcss-text-transform';\n\npostcss([ postcssTextTransform() ]);\n```\n\n```css\n@text-transform $text, transformation, $textTransformed { ... }\n```\n\n**Transformations**\n* camelCase - Converts to camel case.\n* capitalize - Converts the first character of string to upper case and the remaining to lower case.\n* lowerCase - Converts string, as space separated words, to lower case.\n* lowerFirst - Converts the first character of string to lower case.\n* upperCase - Converts string, as space separated words, to upper case.\n* upperFirst - Converts the first character of string to upper case.\n\n## Testing\nThis will build scripts, run tests and generate a code coverage report. Anything less than 100% coverage will throw an error.\n\n```javascript\nnpm test\n```\n\nSee [PostCSS] docs for examples for your environment.\n\n## Contributing\n* ⇄ Pull requests and ★ Stars are always welcome.\n* For bugs and feature requests, please create an issue.\n* Pull requests must be accompanied by passing automated tests (`npm test`).\n\n[MIT License]\n\n[PostCSS]: https://github.com/postcss/postcss\n[postcss-each]: https://github.com/outpunk/postcss-each\n[postcss-cssnext]: https://github.com/MoOx/postcss-cssnext\n[MIT License]: https://github.com/ezavile/postcss-typescript-css/blob/master/LICENSE\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fezavile%2Fpostcss-text-transform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fezavile%2Fpostcss-text-transform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fezavile%2Fpostcss-text-transform/lists"}