{"id":17766568,"url":"https://github.com/floatdrop/deps-graph","last_synced_at":"2025-07-07T12:06:17.287Z","repository":{"id":19564947,"uuid":"22814044","full_name":"floatdrop/deps-graph","owner":"floatdrop","description":"Builds graph by BEM deps","archived":false,"fork":false,"pushed_at":"2014-10-26T18:03:50.000Z","size":592,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-07T18:46:56.427Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/floatdrop.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":"2014-08-10T17:08:56.000Z","updated_at":"2015-08-05T13:34:14.000Z","dependencies_parsed_at":"2022-08-21T09:41:08.898Z","dependency_job_id":null,"html_url":"https://github.com/floatdrop/deps-graph","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fdeps-graph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fdeps-graph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fdeps-graph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fdeps-graph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/floatdrop","download_url":"https://codeload.github.com/floatdrop/deps-graph/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246651507,"owners_count":20811991,"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-26T20:32:31.125Z","updated_at":"2025-04-01T13:45:10.238Z","avatar_url":"https://github.com/floatdrop.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deps-graph\n\n[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Dependency Status][depstat-image]][depstat-url]\n\nThis module constructs dependency graph of blocks, constructed with [BEM objects](https://github.com/floatdrop/gulp-bem#bem-object). It relies on `require` and `expect` properties in BEM objects to build connections between blocks.\n\n`require` and `expect` should be `Array` of BEMObjects.\n\n## API\n\n### DepsGraph([parent])\n\nConstructor. Can accept parent DepsGraph.\n\n### DepsGraph.add(BEMObject...)\nReturns: nothing  \n\nStores [BEM object](https://github.com/floatdrop/gulp-bem#bem-object) in graph.\n\n### DepsGraph.deps(bem)\nType: `Object`  \nReturns: `Array` of [BEM objects](https://github.com/floatdrop/gulp-bem#bem-object).\n\nGets all dependencies for block. Returns dependencies in order, that defined by `require` and `expect` of corresponding BEM objects and levels of declaration.\n\nIt will throw `NotFound` exception, when `path` or any block in dependencies of blocks is not found.\n\n## License\n\nMIT (c) 2014 Vsevolod Strukchinsky, Vladimir Starkov\n\n[npm-url]: https://npmjs.org/package/deps-graph\n[npm-image]: http://img.shields.io/npm/v/deps-graph.svg?style=flat\n\n[travis-url]: http://travis-ci.org/floatdrop/deps-graph\n[travis-image]: http://img.shields.io/travis/floatdrop/deps-graph.svg?branch=master\u0026style=flat\n\n[depstat-url]: https://david-dm.org/floatdrop/deps-graph\n[depstat-image]: http://img.shields.io/david/floatdrop/deps-graph.svg?style=flat\n\n[coveralls-url]: https://coveralls.io/r/floatdrop/deps-graph\n[coveralls-image]: http://img.shields.io/coveralls/floatdrop/deps-graph.svg?style=flat\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloatdrop%2Fdeps-graph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffloatdrop%2Fdeps-graph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloatdrop%2Fdeps-graph/lists"}