{"id":21995757,"url":"https://github.com/excaliburhan/xp-loadcss","last_synced_at":"2026-04-29T15:09:37.388Z","repository":{"id":28896422,"uuid":"119655099","full_name":"excaliburhan/xp-loadcss","owner":"excaliburhan","description":"动态导入css，支持promise","archived":false,"fork":false,"pushed_at":"2023-01-06T01:57:16.000Z","size":589,"stargazers_count":1,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-19T13:46:35.921Z","etag":null,"topics":["library"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/excaliburhan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-31T08:04:56.000Z","updated_at":"2022-03-24T03:46:50.000Z","dependencies_parsed_at":"2023-01-14T13:45:38.161Z","dependency_job_id":null,"html_url":"https://github.com/excaliburhan/xp-loadcss","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/excaliburhan%2Fxp-loadcss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/excaliburhan%2Fxp-loadcss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/excaliburhan%2Fxp-loadcss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/excaliburhan%2Fxp-loadcss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/excaliburhan","download_url":"https://codeload.github.com/excaliburhan/xp-loadcss/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245053708,"owners_count":20553380,"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":["library"],"created_at":"2024-11-29T21:18:27.449Z","updated_at":"2026-04-29T15:09:32.368Z","avatar_url":"https://github.com/excaliburhan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xp-loadcss\n动态导入js，支持promise\n\n### Usage\n\n```js\nimport loadcss from 'xp-loadcss'\n\n// single file\nloadcss('https://cdn.bootcss.com/animate.css/3.5.2/animate.css')\n  .then(() =\u003e {\n    console.log('load success')\n  })\n  .catch(() =\u003e {\n    console.log('load error')\n  })\n\n// multiple files\nloadcss(['https://cdn.bootcss.com/animate.css/3.5.2/animate.css', 'https://cdn.bootcss.com/hover.css/2.1.1/css/hover.css'])\n  .then(() =\u003e {\n    console.log('load success')\n  })\n  .catch(() =\u003e {\n    console.log('load error')\n  })\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexcaliburhan%2Fxp-loadcss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexcaliburhan%2Fxp-loadcss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexcaliburhan%2Fxp-loadcss/lists"}