{"id":16039963,"url":"https://github.com/sonofmagic/is-css-request","last_synced_at":"2026-02-12T05:33:02.331Z","repository":{"id":245531539,"uuid":"818677574","full_name":"sonofmagic/is-css-request","owner":"sonofmagic","description":"Utils for Checking if a path or url points to a CSS request.","archived":false,"fork":false,"pushed_at":"2025-02-07T22:33:01.000Z","size":327,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-18T08:37:30.116Z","etag":null,"topics":[],"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/sonofmagic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["sonofmagic"],"custom":["https://github.com/sonofmagic/sponsors"]}},"created_at":"2024-06-22T14:31:14.000Z","updated_at":"2024-09-16T04:43:15.000Z","dependencies_parsed_at":"2024-06-26T15:38:54.550Z","dependency_job_id":"f3e83386-8dc3-41ac-8259-05f053fcc92e","html_url":"https://github.com/sonofmagic/is-css-request","commit_stats":null,"previous_names":["sonofmagic/is-css-request"],"tags_count":2,"template":false,"template_full_name":"sonofmagic/npm-lib-template","purl":"pkg:github/sonofmagic/is-css-request","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonofmagic%2Fis-css-request","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonofmagic%2Fis-css-request/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonofmagic%2Fis-css-request/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonofmagic%2Fis-css-request/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sonofmagic","download_url":"https://codeload.github.com/sonofmagic/is-css-request/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonofmagic%2Fis-css-request/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273272581,"owners_count":25075991,"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-09-02T02:00:09.530Z","response_time":77,"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":[],"created_at":"2024-10-08T23:09:14.722Z","updated_at":"2026-02-12T05:32:57.299Z","avatar_url":"https://github.com/sonofmagic.png","language":"TypeScript","funding_links":["https://github.com/sponsors/sonofmagic","https://github.com/sonofmagic/sponsors"],"categories":[],"sub_categories":[],"readme":"# is-css-request\n\nUtils for checking if a path or url points to a CSS request.\n\n## Installation\n\n```bash\nnpm i is-css-request\n\nyarn add is-css-request\n\npnpm add is-css-request\n```\n\n## Usage\n\n### API\n\n```js\n// esm + ts\nimport { isCSSRequest, isModuleCSSRequest } from 'is-css-request'\n// or cjs\n// const { isCSSRequest, isModuleCSSRequest } = require('is-css-request')\n\nisCSSRequest('http://foo.bar/css-file.css') // =\u003e true\nisCSSRequest('some/path/to/a/css-file.css') // =\u003e true\nisCSSRequest('ice/a/preprocessor.scss') // =\u003e true\nisCSSRequest('ice/a/x.fac') // =\u003e false\n\nisModuleCSSRequest('some/path/to/a/css-file.css') // =\u003e false\nisModuleCSSRequest('some/path/to/a/css-file.module.css') // =\u003e true\n```\n\n### Enum\n\n```ts\nimport { PostCssDialectLang, PreprocessLang, PureCssLang } from 'is-css-request'\n\nPureCssLang.css\nPreprocessLang.less\nPreprocessLang.sass\nPreprocessLang.scss\nPostCssDialectLang.sss\n```\n\n## License\n\n[MIT](./LICENSE)\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b feature/my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin feature/my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonofmagic%2Fis-css-request","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsonofmagic%2Fis-css-request","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonofmagic%2Fis-css-request/lists"}