{"id":16350871,"url":"https://github.com/kevva/import-regex","last_synced_at":"2025-03-21T00:30:56.524Z","repository":{"id":20243199,"uuid":"23515617","full_name":"kevva/import-regex","owner":"kevva","description":"Regular expression for matching CSS @imports","archived":false,"fork":false,"pushed_at":"2017-12-09T19:31:35.000Z","size":10,"stargazers_count":9,"open_issues_count":4,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-17T19:11:42.664Z","etag":null,"topics":["css","import","javascript","nodejs","regex"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/kevva.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-31T14:44:03.000Z","updated_at":"2024-12-23T15:18:06.000Z","dependencies_parsed_at":"2022-07-25T07:02:05.373Z","dependency_job_id":null,"html_url":"https://github.com/kevva/import-regex","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevva%2Fimport-regex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevva%2Fimport-regex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevva%2Fimport-regex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevva%2Fimport-regex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevva","download_url":"https://codeload.github.com/kevva/import-regex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244717303,"owners_count":20498281,"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","import","javascript","nodejs","regex"],"created_at":"2024-10-11T01:06:35.483Z","updated_at":"2025-03-21T00:30:56.228Z","avatar_url":"https://github.com/kevva.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# import-regex [![Build Status](http://img.shields.io/travis/kevva/import-regex.svg?style=flat)](https://travis-ci.org/kevva/import-regex)\n\n\u003e Regular expression for matching CSS @imports\n\n\n## Install\n\n```\n$ npm install --save import-regex\n```\n\n\n## Usage\n\n```js\nconst importRegex = require('import-regex');\n\nimportRegex().test('@import url(\\'foo.css\\'); foo bar');\n//=\u003e true\n\nimportRegex({exact: true}).test('@import url(\\'foo.css\\'); foo bar');\n//=\u003e false\n\nimportRegex({exact: true}).test('@import url(\\'foo.css\\');');\n//=\u003e true\n\n'foo @import url(\\'foo.css\\'); bar @import url(\\'bar.css\\');'.match(importRegex());\n//=\u003e ['@import url('foo.css');', '@import url('bar.css');']\n```\n\n\n## API\n\n### importRegex([options])\n\nReturns a regex for matching CSS @imports.\n\n#### options\n\nType: `Object`\n\n##### exact\n\nType: `Boolean`\u003cbr\u003e\nDefault: `false`\n\nOnly match an exact string. Useful with `RegExp#test` to check if a string is a CSS @import.\n\n\n## License\n\nMIT © [Kevin Mårtensson](https://github.com/kevva)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevva%2Fimport-regex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevva%2Fimport-regex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevva%2Fimport-regex/lists"}