{"id":26160018,"url":"https://github.com/ieedan/css-dependency","last_synced_at":"2026-02-14T15:33:35.392Z","repository":{"id":281532282,"uuid":"934166685","full_name":"ieedan/css-dependency","owner":"ieedan","description":"A css parser for getting imports from css code.","archived":false,"fork":false,"pushed_at":"2025-02-17T14:13:52.000Z","size":85,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T14:58:00.611Z","etag":null,"topics":["css","parser","tailwind"],"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/ieedan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-17T11:38:25.000Z","updated_at":"2025-02-17T14:17:31.000Z","dependencies_parsed_at":"2025-03-09T18:55:52.842Z","dependency_job_id":"69f7bb8e-1d16-4669-95e1-d506e096a2f1","html_url":"https://github.com/ieedan/css-dependency","commit_stats":null,"previous_names":["ieedan/css-dependency"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ieedan/css-dependency","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ieedan%2Fcss-dependency","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ieedan%2Fcss-dependency/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ieedan%2Fcss-dependency/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ieedan%2Fcss-dependency/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ieedan","download_url":"https://codeload.github.com/ieedan/css-dependency/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ieedan%2Fcss-dependency/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29448010,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T14:10:32.461Z","status":"ssl_error","status_checked_at":"2026-02-14T14:09:49.945Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","parser","tailwind"],"created_at":"2025-03-11T11:56:44.762Z","updated_at":"2026-02-14T15:33:35.376Z","avatar_url":"https://github.com/ieedan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# css-dependency\n\nA css parser for getting imports from css code.\n\n```bash\nnpm install css-dependency\n```\n\n```ts\nimport { parse } from \"css-dependency\";\n\nconst imports = parse('@import \"./example.css\";');\n\nassert.deepStrictEqual(imports.unwrap(), [\n\t{\n\t\tdirective: \"@import\",\n\t\tmodule: \"./util.css\",\n\t\traw: '@import \"./util.css\";',\n\t},\n]);\n```\n\n## Supported Syntax\n\n```css\n@import \"./example.css\";\n@import url(\"./something.css\");\n@import \"./example.css\" /* Conditions... */;\n```\n\n### Tailwind Directives\n\nIn `tailwindcss@v4` more @ directives were introduced that can result in additional dependencies for your css files. You can enable their detection by setting `allowTailwindDirectives` to true:\n\n```ts\nimport { parse } from \"css-dependency\";\n\nparse(code, { allowTailwindDirectives: true });\n```\n\n#### Supported Directives\n\n```ts\n[\"@plugin\", \"@config\", \"@reference\"];\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fieedan%2Fcss-dependency","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fieedan%2Fcss-dependency","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fieedan%2Fcss-dependency/lists"}