{"id":37026978,"url":"https://github.com/fomantic/rework-import","last_synced_at":"2026-01-14T03:11:18.918Z","repository":{"id":62239809,"uuid":"558547545","full_name":"fomantic/rework-import","owner":"fomantic","description":"A rework plugin to read and inline css via @import","archived":false,"fork":true,"pushed_at":"2025-03-01T14:14:35.000Z","size":254,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-27T09:37:18.411Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"reworkcss/rework-import","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fomantic.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","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":"2022-10-27T19:15:09.000Z","updated_at":"2025-03-01T14:11:33.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/fomantic/rework-import","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fomantic/rework-import","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fomantic%2Frework-import","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fomantic%2Frework-import/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fomantic%2Frework-import/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fomantic%2Frework-import/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fomantic","download_url":"https://codeload.github.com/fomantic/rework-import/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fomantic%2Frework-import/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408815,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":"2026-01-14T03:11:18.200Z","updated_at":"2026-01-14T03:11:18.903Z","avatar_url":"https://github.com/fomantic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rework-import [![Build Status](http://img.shields.io/travis/reworkcss/rework-import.svg?style=flat)](https://travis-ci.org/reworkcss/rework-import)\n\n\u003e ### Forked Version using updated dependencies and dropped sourceMap support\n\u003e Original repo at https://github.com/reworkcss/rework-import\n\n\u003e Import stylesheets using `@import` and an optional media query\n\n\n## Install\n\n```bash\n$ npm install --save rework-import\n```\n\n\n## Usage\n\n```js\nvar data = require('fs').readFileSync('index.css');\nvar imprt = require('rework-import');\nvar rework = require('rework');\n\nrework(data)\n\t.use(imprt({path: 'app/stylesheets'}))\n\t.toString();\n```\n\n\n## Options\n\n### encoding\n\nType: `String`  \nDefault: `utf8`\n\nUse if your CSS is encoded in anything other than `UTF-8`.\n\n### path\n\nType: `Array|String`  \nDefault: `process.cwd()` or `__dirname` of [the rework source](https://github.com/reworkcss/css#cssparsecode-options)\n\nA string or an array of paths in where to look for files.\n\n_Note: nested `@import` will additionally benefit of the relative dirname of imported files._\n\n### transform\n\nType: `Function`  \n\nA function to transform the content of imported files. Takes one argument and should return the modified content. Useful if you use [`css-whitespace`](https://github.com/reworkcss/css-whitespace).\n\n\n## Example\n\n```css\n@import 'foo.css' (min-width: 25em);\n\nbody {\n\tbackground: black;\n}\n```\n\nyields:\n\n```css\n@media (min-width: 25em) {\n\tbody {\n\t\tbackground: red;\n\t}\n\n\th1 {\n\t\tcolor: grey;\n\t}\n}\n\nbody {\n\tbackground: black;\n}\n```\n\n\n## License\n\nMIT © [Jason Campbell](https://github.com/jxson) and [Kevin Mårtensson](http://github.com/kevva)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffomantic%2Frework-import","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffomantic%2Frework-import","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffomantic%2Frework-import/lists"}