{"id":30060169,"url":"https://github.com/tiaanduplessis/css-inject","last_synced_at":"2025-08-08T01:42:27.621Z","repository":{"id":66077127,"uuid":"110083945","full_name":"tiaanduplessis/css-inject","owner":"tiaanduplessis","description":"Inject CSS rules into the head above any other stylesheets","archived":false,"fork":false,"pushed_at":"2019-06-02T22:56:48.000Z","size":697,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-08T11:55:53.309Z","etag":null,"topics":["css","head","inject","style","stylesheet"],"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/tiaanduplessis.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-09T07:48:06.000Z","updated_at":"2022-05-30T09:48:55.000Z","dependencies_parsed_at":"2023-02-20T17:15:25.906Z","dependency_job_id":null,"html_url":"https://github.com/tiaanduplessis/css-inject","commit_stats":{"total_commits":19,"total_committers":2,"mean_commits":9.5,"dds":"0.42105263157894735","last_synced_commit":"d74cd108dd46871a8aee1d211d3208b266eec042"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/tiaanduplessis/css-inject","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fcss-inject","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fcss-inject/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fcss-inject/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fcss-inject/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tiaanduplessis","download_url":"https://codeload.github.com/tiaanduplessis/css-inject/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fcss-inject/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269352329,"owners_count":24402672,"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-08-07T02:00:09.698Z","response_time":73,"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":["css","head","inject","style","stylesheet"],"created_at":"2025-08-08T01:42:21.346Z","updated_at":"2025-08-08T01:42:27.605Z","avatar_url":"https://github.com/tiaanduplessis.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# css-inject\n[![package version](https://img.shields.io/npm/v/css-inject.svg?style=flat-square)](https://npmjs.org/package/css-inject)\n[![package downloads](https://img.shields.io/npm/dm/css-inject.svg?style=flat-square)](https://npmjs.org/package/css-inject)\n[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![package license](https://img.shields.io/npm/l/css-inject.svg?style=flat-square)](https://npmjs.org/package/css-inject)\n[![make a pull request](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) [![Greenkeeper badge](https://badges.greenkeeper.io/tiaanduplessis/css-inject.svg)](https://greenkeeper.io/)\n\n\u003e Inject CSS rules into the head above any other stylesheets\n\n## Table of Contents\n\n- [Install](#install)\n- [Usage](#usage)\n- [Contribute](#contribute)\n- [License](#License)\n\n## Install\n\nThis project uses [node](https://nodejs.org) and [npm](https://www.npmjs.com). \n\n```sh\n$ npm install css-inject\n$ # OR\n$ yarn add css-inject\n```\n\n## Usage\n\n```js\nimport ccInject from 'css-inject'\n\nconst rules = `\n  body { background: tomato; }\n  div { padding: 10px; }\n`\n\nconst remove = cssInject(rules)\n\n// To remove style again\nremove()\n```\n\n## Contribute\n\n1. Fork it and create your feature branch: git checkout -b my-new-feature\n2. Commit your changes: git commit -am 'Add some feature'\n3. Push to the branch: git push origin my-new-feature \n4. Submit a pull request\n\n## License\n\nMIT\n    ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiaanduplessis%2Fcss-inject","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiaanduplessis%2Fcss-inject","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiaanduplessis%2Fcss-inject/lists"}