{"_id":"is-css-request","_rev":"1-daf281c774070252ceac55cc26967797","name":"is-css-request","description":"Utils for checking if a path or url points to a CSS request.","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"is-css-request","version":"1.0.0","keywords":["npm","lib","ts","template"],"author":{"name":"SonOfMagic","email":"qq1324318532@gmail.com"},"license":"MIT","_id":"is-css-request@1.0.0","homepage":"https://github.com/sonofmagic/is-css-request#readme","bugs":{"url":"https://github.com/sonofmagic/is-css-request/issues"},"dist":{"shasum":"9ed9f77dc1c5eee3d2ad613289cc4778e599213a","tarball":"https://registry.npmjs.org/is-css-request/-/is-css-request-1.0.0.tgz","fileCount":7,"integrity":"sha512-jLtkS9/5hYErK3K6hLIp7/SDqMAxgGvyMctkFrEIHcgscv8sojmKQsAqghgaLa7HWK/4WfoWnDJMFftCXrehrA==","signatures":[{"sig":"MEUCIBKBU2jgxFaJAar/RiyHLUijru3wdC1G8Qrl6iP5AMisAiEAqi3orNhX1I9q7DLCf1XclfKbOUSY6gxfvwumoNtZ2iA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9692},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./*":"./*","./package.json":"./package.json"},"gitHead":"e6ba07c62780e9de3e298e773e732989a1f9e863","scripts":{"dev":"tsup --watch --sourcemap","test":"vitest run","build":"tsup","clean":"tsx scripts/clean.ts","ls:pack":"npm pack --dry-run","init:bin":"tsx scripts/init/bin.ts","test:dev":"vitest","build:dev":"tsup --sourcemap","init:rename":"tsx scripts/init/rename.ts","semantic-release":"semantic-release"},"_npmUser":{"name":"icebreaker","email":"1324318532@qq.com"},"repository":{"url":"git+https://github.com/sonofmagic/is-css-request.git","type":"git"},"_npmVersion":"10.7.0","description":"Utils for Checking if a path or url points to a CSS request.","directories":{},"_nodeVersion":"20.14.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"_hasShrinkwrap":false,"packageManager":"pnpm@9.3.0","devDependencies":{"del":"^7.1.0","tsx":"^4.15.7","defu":"^6.1.4","klaw":"^4.1.0","tsup":"^8.1.0","pathe":"^1.1.2","eslint":"9.5.0","lodash":"^4.17.21","vitest":"^1.6.0","fs-extra":"^11.2.0","cross-env":"^7.0.3","lodash-es":"^4.17.21","typescript":"^5.5.2","@types/klaw":"^3.0.6","@types/node":"^20.14.8","@types/lodash":"^4.17.5","@types/fs-extra":"^11.0.4","@types/lodash-es":"^4.17.12","semantic-release":"^24.0.0","@vitest/coverage-v8":"^1.6.0","@tsconfig/recommended":"^1.0.6","@icebreakers/eslint-config":"^0.3.9"},"_npmOperationalInternal":{"tmp":"tmp/is-css-request_1.0.0_1719073883215_0.15266594793059074","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"is-css-request","type":"module","version":"1.0.1","packageManager":"pnpm@9.4.0","description":"Utils for checking if a path or url points to a CSS request.","author":{"name":"SonOfMagic","email":"qq1324318532@gmail.com"},"license":"MIT","homepage":"https://github.com/sonofmagic/is-css-request#readme","repository":{"type":"git","url":"git+https://github.com/sonofmagic/is-css-request.git"},"bugs":{"url":"https://github.com/sonofmagic/is-css-request/issues"},"keywords":["css","request","is-css","vite","rollup","webpack","esbuild"],"exports":{"./package.json":"./package.json",".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./*":"./*"},"main":"dist/index.cjs","module":"dist/index.js","types":"dist/index.d.ts","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"scripts":{"dev":"tsup --watch --sourcemap","build:dev":"tsup --sourcemap","build":"tsup","test:dev":"vitest","test":"vitest run","init:rename":"tsx scripts/init/rename.ts","init:bin":"tsx scripts/init/bin.ts","clean":"tsx scripts/clean.ts","ls:pack":"npm pack --dry-run","semantic-release":"semantic-release"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"devDependencies":{"@icebreakers/eslint-config":"^0.3.9","@tsconfig/recommended":"^1.0.6","@types/fs-extra":"^11.0.4","@types/klaw":"^3.0.6","@types/lodash":"^4.17.5","@types/lodash-es":"^4.17.12","@types/node":"^20.14.8","@vitest/coverage-v8":"^1.6.0","cross-env":"^7.0.3","defu":"^6.1.4","del":"^7.1.0","eslint":"9.5.0","fs-extra":"^11.2.0","klaw":"^4.1.0","lodash":"^4.17.21","lodash-es":"^4.17.21","pathe":"^1.1.2","semantic-release":"^24.0.0","tsup":"^8.1.0","tsx":"^4.15.7","typescript":"^5.5.2","vitest":"^1.6.0"},"_id":"is-css-request@1.0.1","gitHead":"48eeb2f2f05ac802609a3d9597853b6873261834","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-KOrHD2lt94cHcS50h0ULYWRJ2f8PhdVqgR+rs0Bk4HwgpxVN4dLM7Dl53da1XdsoOgT9gygNW3eMSMvhaiXMkg==","shasum":"73b3b3c52fce91484f1aec91ca2f8c05384521e0","tarball":"https://registry.npmjs.org/is-css-request/-/is-css-request-1.0.1.tgz","fileCount":7,"unpackedSize":10320,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+CsBA72TOD1RNP/8EL440A/iWjSQbTbzgcDlIBsQ33QIgMLjT/07kMFROzNZpwzxxvDCBdID22TZN6LTn7paoDDM="}]},"_npmUser":{"name":"icebreaker","email":"1324318532@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-css-request_1.0.1_1719119388941_0.2427820132105163"},"_hasShrinkwrap":false}},"time":{"created":"2024-06-22T16:31:23.119Z","modified":"2024-06-23T05:09:49.296Z","1.0.0":"2024-06-22T16:31:23.386Z","1.0.1":"2024-06-23T05:09:49.121Z"},"maintainers":[{"name":"icebreaker","email":"1324318532@qq.com"}],"author":{"name":"SonOfMagic","email":"qq1324318532@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/sonofmagic/is-css-request.git"},"keywords":["css","request","is-css","vite","rollup","webpack","esbuild"],"license":"MIT","homepage":"https://github.com/sonofmagic/is-css-request#readme","bugs":{"url":"https://github.com/sonofmagic/is-css-request/issues"},"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') // => true\nisCSSRequest('some/path/to/a/css-file.css') // => true\nisCSSRequest('ice/a/preprocessor.scss') // => true\nisCSSRequest('ice/a/x.fac') // => false\n\nisModuleCSSRequest('some/path/to/a/css-file.css') // => false\nisModuleCSSRequest('some/path/to/a/css-file.module.css') // => 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","readmeFilename":"README.md"}