{"id":15936114,"url":"https://github.com/ericmorand/stylesheet-deps","last_synced_at":"2025-04-03T19:29:23.722Z","repository":{"id":57381969,"uuid":"86374772","full_name":"ericmorand/stylesheet-deps","owner":"ericmorand","description":null,"archived":false,"fork":false,"pushed_at":"2017-09-14T08:03:04.000Z","size":51,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-10T12:53:40.060Z","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}},"created_at":"2017-03-27T19:18:56.000Z","updated_at":"2017-06-15T11:30:28.000Z","dependencies_parsed_at":"2022-09-13T11:31:31.272Z","dependency_job_id":null,"html_url":"https://github.com/ericmorand/stylesheet-deps","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericmorand%2Fstylesheet-deps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericmorand%2Fstylesheet-deps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericmorand%2Fstylesheet-deps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericmorand%2Fstylesheet-deps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericmorand","download_url":"https://codeload.github.com/ericmorand/stylesheet-deps/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247064828,"owners_count":20877658,"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-10-07T04:04:05.045Z","updated_at":"2025-04-03T19:29:23.688Z","avatar_url":"https://github.com/ericmorand.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stylesheet-deps\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\nWalk the dependency graph of a stylesheet.\n\n## Installation\n\n```bash\nnpm install stylesheet-deps\n```\n\n# API\n\n`let SSDeps = require('stylesheet-deps')`\n\n## depper = SSDeps(opts={})\n\nReturn an object transform stream `depper` that expects entry filenames.\n\nOptionally pass in some opts:\n\n* opts.syntax - any of the following: `css`, `less`, `sass`, `scss`. Default one is `css`.\n\n## depper.inline(source, basedir, callback)\n\nAdds a new inline file to the dependency graph, where source is the stylesheet source to include and basedir is the directory to pretend it's being created in. A basedir is required to properly resolve dependencies and defaults to process.cwd().\n\n# Example\n\n``` js\nvar SSDeps = require('stylesheet-deps');\n\nvar depper = new SSDeps();\nvar entry = '/path/to/your/stylesheet.css';\n\ndepper.on('data', function (dependency) {\n    // do something with dependency\n});\n\ndepper.on('missing', function (dependency) {\n    // do something with missing dependency\n});\n\ndepper.on('error', function (error) {\n    // do something on error\n});\n\nd.end(entry);\n```\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/stylesheet-deps.svg\n[npm-url]: https://npmjs.org/package/stylesheet-deps\n[travis-image]: https://travis-ci.org/ericmorand/stylesheet-deps.svg?branch=master\n[travis-url]: https://travis-ci.org/ericmorand/stylesheet-deps\n[daviddm-image]: https://david-dm.org/ericmorand/stylesheet-deps.svg?theme=shields.io\n[daviddm-url]: https://david-dm.org/ericmorand/stylesheet-deps\n[coveralls-image]: https://coveralls.io/repos/github/ericmorand/stylesheet-deps/badge.svg\n[coveralls-url]: https://coveralls.io/github/ericmorand/stylesheet-deps","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericmorand%2Fstylesheet-deps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericmorand%2Fstylesheet-deps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericmorand%2Fstylesheet-deps/lists"}