{"id":14990652,"url":"https://github.com/dmitrijs-balcers/parcel-transformer-ts-css-modules","last_synced_at":"2025-09-07T14:08:55.641Z","repository":{"id":43355459,"uuid":"401000973","full_name":"dmitrijs-balcers/parcel-transformer-ts-css-modules","owner":"dmitrijs-balcers","description":"Bridge ts with your css-modules","archived":false,"fork":false,"pushed_at":"2022-03-06T07:56:31.000Z","size":37,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T02:37:44.408Z","etag":null,"topics":["css","css-modules","javascript","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/parcel-transformer-ts-css-modules","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/dmitrijs-balcers.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":"2021-08-29T09:26:47.000Z","updated_at":"2024-07-13T15:26:06.000Z","dependencies_parsed_at":"2022-08-25T20:41:09.578Z","dependency_job_id":null,"html_url":"https://github.com/dmitrijs-balcers/parcel-transformer-ts-css-modules","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/dmitrijs-balcers%2Fparcel-transformer-ts-css-modules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitrijs-balcers%2Fparcel-transformer-ts-css-modules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitrijs-balcers%2Fparcel-transformer-ts-css-modules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitrijs-balcers%2Fparcel-transformer-ts-css-modules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmitrijs-balcers","download_url":"https://codeload.github.com/dmitrijs-balcers/parcel-transformer-ts-css-modules/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248507055,"owners_count":21115528,"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","css-modules","javascript","typescript"],"created_at":"2024-09-24T14:20:32.301Z","updated_at":"2025-04-12T02:37:46.271Z","avatar_url":"https://github.com/dmitrijs-balcers.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# parcel-transformer-ts-css-modules\n_Bridge ts with your css-modules_\n\nThis transformer is going to create `.d.ts` according to your `.module.css` files using [typed-css-modules](https://www.npmjs.com/package/typed-css-modules)\n,\nso that you can reference your css in ts files without type errors.\n\n## Installation\n`npm i -D parcel-transformer-ts-css-modules`  \nor  \n`yarn add -D parcel-transformer-ts-css-modules`\n\nAt the root of your project, next to your `package.json`, add a `.parcelrc` file and paste the following code:\n```json\n{\n  \"extends\": \"@parcel/config-default\",\n  \"transformers\": {\n    \"*.module.css\": [\n      \"parcel-transformer-ts-css-modules\",\n      \"...\"\n    ]\n  }\n}\n```\n\n## Configuration\nIf you want to configure underlying ts-css-modules library, create `./tcm.config.json` file and configure it as it is described in [here](https://www.npmjs.com/package/typed-css-modules#user-content-new-dtscreatoroption).  \nFor instance like this:\n```json\n{\n  \"camelCase\": true\n}\n```\n\n## Example\nWhat it does in practice you can see in this example [here](https://github.dev/dmitrijs-balcers/react-css-modules-typescript-boilerplate/tree/master/src/components).\n\n## Contribution\nThis library is open source and depends on your input. Feel free to suggest improvements and/or contribute!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmitrijs-balcers%2Fparcel-transformer-ts-css-modules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmitrijs-balcers%2Fparcel-transformer-ts-css-modules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmitrijs-balcers%2Fparcel-transformer-ts-css-modules/lists"}