{"id":15284388,"url":"https://github.com/pekim/postcss-modules-resolve-from-alias","last_synced_at":"2025-08-20T18:23:02.094Z","repository":{"id":57328215,"uuid":"45305207","full_name":"pekim/postcss-modules-resolve-from-alias","owner":"pekim","description":"A CSS Modules transform to provide aliases for composes paths.","archived":false,"fork":false,"pushed_at":"2019-11-06T10:50:10.000Z","size":10,"stargazers_count":7,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-17T09:56:25.694Z","etag":null,"topics":["css-modules","postcss"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pekim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-31T14:42:37.000Z","updated_at":"2020-01-29T14:47:41.000Z","dependencies_parsed_at":"2022-08-23T14:31:07.702Z","dependency_job_id":null,"html_url":"https://github.com/pekim/postcss-modules-resolve-from-alias","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/pekim/postcss-modules-resolve-from-alias","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pekim%2Fpostcss-modules-resolve-from-alias","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pekim%2Fpostcss-modules-resolve-from-alias/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pekim%2Fpostcss-modules-resolve-from-alias/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pekim%2Fpostcss-modules-resolve-from-alias/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pekim","download_url":"https://codeload.github.com/pekim/postcss-modules-resolve-from-alias/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pekim%2Fpostcss-modules-resolve-from-alias/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271362532,"owners_count":24746503,"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","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-modules","postcss"],"created_at":"2024-09-30T14:55:41.986Z","updated_at":"2025-08-20T18:23:02.037Z","avatar_url":"https://github.com/pekim.png","language":"JavaScript","readme":"# CSS Modules: Resolve imports from aliases\n\n[![Build Status](https://travis-ci.org/pekim/postcss-modules-resolve-from-alias.svg?branch=master)](https://travis-ci.org/pekim/postcss-modules-resolve-from-alias)\n[![NPM version](http://img.shields.io/npm/v/postcss-modules-resolve-from-alias.svg)](https://www.npmjs.org/package/postcss-modules-resolve-from-alias)\n\n\nWith this config:\n\n```javascript\n{\n  'css': 'src/style'\n}\n```\n\ntransforms:\n\n```css\n.myClass {\n  composes: button from \"css/button.css\";\n  color: green;\n}\n```\n\ninto:\n\n```css\n.myClass {\n  composes: button from \"src/style/button.css\";\n  color: green;\n}\n```\n\n## Options\n\nAn object, where each key/value pair represents an alias for `composes` import paths.\n- _key_ - `composes` import path prefix\n- _value_ - replacement value for the import path prefix\n\nBoth keys and values may include a trailing `/`.\nIf there is no trailing `/`, then one is implied.\n\n## Building\n\n```\nnpm install\nnpm build\nnpm test\n```\n\n[![Build Status](https://travis-ci.org/pekim/postcss-modules-resolve-from-alias.svg?branch=master)](https://travis-ci.org/pekim/postcss-modules-resolve-from-alias)\n\n* Lines: [![Coverage Status](https://coveralls.io/repos/pekim/postcss-modules-resolve-from-alias/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/pekim/postcss-modules-resolve-from-alias?branch=master)\n* Statements: [![codecov.io](http://codecov.io/github/pekim/postcss-modules-resolve-from-alias/coverage.svg?branch=master)](http://codecov.io/github/pekim/postcss-modules-resolve-from-alias?branch=master)\n\n## Development\n\n- `npm watch` will watch `src` for changes and rebuild\n- `npm autotest` will watch `src` and `test` for changes and retest\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpekim%2Fpostcss-modules-resolve-from-alias","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpekim%2Fpostcss-modules-resolve-from-alias","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpekim%2Fpostcss-modules-resolve-from-alias/lists"}