{"id":21871756,"url":"https://github.com/ericmorand/css-region-rebase","last_synced_at":"2026-04-11T11:02:25.775Z","repository":{"id":137361092,"uuid":"86616229","full_name":"ericmorand/css-region-rebase","owner":"ericmorand","description":null,"archived":false,"fork":false,"pushed_at":"2017-06-28T14:08:59.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-26T17:11:17.940Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericmorand.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-03-29T18:30:51.000Z","updated_at":"2017-03-30T10:06:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"623821f1-b2b0-4cdb-b14c-04100d2d1d5f","html_url":"https://github.com/ericmorand/css-region-rebase","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericmorand%2Fcss-region-rebase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericmorand%2Fcss-region-rebase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericmorand%2Fcss-region-rebase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericmorand%2Fcss-region-rebase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericmorand","download_url":"https://codeload.github.com/ericmorand/css-region-rebase/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244877139,"owners_count":20524962,"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":[],"created_at":"2024-11-28T06:15:11.807Z","updated_at":"2026-04-11T11:02:20.738Z","avatar_url":"https://github.com/ericmorand.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# css-region-rebase\n\n[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage percentage][coveralls-image]][coveralls-url]\n\nRebase your CSS assets based on comment regions.\n\nThink about what you can do when combining this with [node-sass importer](https://github.com/sass/node-sass#importer--v200---experimental) feature...^^\n\n## Installation\n\n```bash\nnpm install css-region-rebase\n```\n\n## Example\n\nFrom:\n``` css\n/* region cssRebase: /path/to/rebase/your/assets/to */\n.foo {\n    background: url(./foo.png);\n}\n/* endregion cssRebase: /path/to/rebase/your/assets/to */\n```\n\nTo:\n``` css\n/* region cssRebase: /path/to/rebase/your/assets/to */\n.foo {\n    background: url(/path/to/rebase/your/assets/to/foo.png);\n}\n/* endregion cssRebase: /path/to/rebase/your/assets/to */\n```\n\n## API\n\n`let Rebaser = require('css-region-rebase')`\n\n### rebaser = new Rebaser(opts={})\n\nReturn an object transform stream `rebaser` that expects entry filenames.\n\nOptionally pass in some opts:\n\n* opts.format - the format used by your region. Defaults to `cssRebase:`.\n\n## Events\n\nIn addition to the usual events emitted by node.js streams, css-region-rebase emits the following events:\n\n### rebaser.on('rebase', function(file) {})\n\nEvery time an asset is rebased, this event fires with the rebased path.\n\n## Contributing\n\n* Fork the main repository\n* Code\n* Implement tests using [node-tap](https://github.com/tapjs/node-tap)\n* Issue a pull request keeping in mind that all pull requests must reference an issue in the issue queue\n\n## License\n\nApache-2.0 © [Eric MORAND]()\n\n[npm-image]: https://badge.fury.io/js/css-region-rebase.svg\n[npm-url]: https://npmjs.org/package/css-region-rebase\n[travis-image]: https://travis-ci.org/ericmorand/css-region-rebase.svg?branch=master\n[travis-url]: https://travis-ci.org/ericmorand/css-region-rebase\n[daviddm-image]: https://david-dm.org/ericmorand/css-region-rebase.svg?theme=shields.io\n[daviddm-url]: https://david-dm.org/ericmorand/css-region-rebase\n[coveralls-image]: https://coveralls.io/repos/github/ericmorand/css-region-rebase/badge.svg\n[coveralls-url]: https://coveralls.io/github/ericmorand/css-region-rebase","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericmorand%2Fcss-region-rebase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericmorand%2Fcss-region-rebase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericmorand%2Fcss-region-rebase/lists"}