{"id":14968191,"url":"https://github.com/birdofpreyru/postcss-icss","last_synced_at":"2025-10-01T07:30:30.908Z","repository":{"id":57109579,"uuid":"298031590","full_name":"birdofpreyru/postcss-icss","owner":"birdofpreyru","description":"PostCSS plugin to process CSS modules and extract tokens","archived":false,"fork":true,"pushed_at":"2023-04-09T00:07:39.000Z","size":229,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-16T11:28:13.816Z","etag":null,"topics":["css","css-modules","javascript","modules","plugin","postcss","web"],"latest_commit_sha":null,"homepage":"https://dr.pogodin.studio/docs/postcss-modules-parser","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"css-modules/postcss-icss","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/birdofpreyru.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"birdofpreyru"}},"created_at":"2020-09-23T16:36:07.000Z","updated_at":"2022-11-05T18:08:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/birdofpreyru/postcss-icss","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/birdofpreyru%2Fpostcss-icss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/birdofpreyru%2Fpostcss-icss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/birdofpreyru%2Fpostcss-icss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/birdofpreyru%2Fpostcss-icss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/birdofpreyru","download_url":"https://codeload.github.com/birdofpreyru/postcss-icss/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234837155,"owners_count":18894548,"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","modules","plugin","postcss","web"],"created_at":"2024-09-24T13:39:30.574Z","updated_at":"2025-10-01T07:30:25.611Z","avatar_url":"https://github.com/birdofpreyru.png","language":"JavaScript","funding_links":["https://github.com/sponsors/birdofpreyru"],"categories":[],"sub_categories":[],"readme":"_A fork of [`postcss-icss` Git repository](https://github.com/css-modules/postcss-icss), updated to use the latest dependency versions. The Git repo hosts codebases of both **postcss-modules-parser** (older), and **postcss-icss** (newer) NPM packages. The present fork updates and releases **postcss-modules-parser** only (see the branch of the same name)._\n\nA CSS Modules parser to extract tokens from the css file. Provides opportunity to process multiple files.\n\n## API\n\nIn order to use it you should provide a `fetch` function which should load contents of files and process it with the PostCSS instance.\n`fetch` function should return  promise object which will resolve into tokens.\n\n```js\nconst ICSS = require('postcss-icss');\n\nfunction fetch(importee, importerDir, processor) {\n  // load content\n  return processor.process(css, { from: filename })\n    .then(result =\u003e result.messages.find(d =\u003e d.type === \"icss\").exportTokens);\n}\n\npostcss([ ICSS({ fetch }) ]);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbirdofpreyru%2Fpostcss-icss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbirdofpreyru%2Fpostcss-icss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbirdofpreyru%2Fpostcss-icss/lists"}