{"id":18429453,"url":"https://github.com/bigpipe/fabricator","last_synced_at":"2025-04-13T21:44:37.863Z","repository":{"id":17481945,"uuid":"20262663","full_name":"bigpipe/fabricator","owner":"bigpipe","description":"Discover collections of constructile instances from strings (filepaths), arrays or objects","archived":false,"fork":false,"pushed_at":"2016-11-16T20:44:02.000Z","size":30,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-16T10:33:48.367Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bigpipe.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":"2014-05-28T15:29:11.000Z","updated_at":"2024-05-21T16:08:29.000Z","dependencies_parsed_at":"2022-09-02T12:11:25.118Z","dependency_job_id":null,"html_url":"https://github.com/bigpipe/fabricator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigpipe%2Ffabricator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigpipe%2Ffabricator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigpipe%2Ffabricator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigpipe%2Ffabricator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bigpipe","download_url":"https://codeload.github.com/bigpipe/fabricator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248788868,"owners_count":21161726,"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-06T05:17:14.689Z","updated_at":"2025-04-13T21:44:37.842Z","avatar_url":"https://github.com/bigpipe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fabricator\n\n[![Version npm][version]](http://browsenpm.org/package/fabricator)[![Build Status][build]](https://travis-ci.org/bigpipe/fabricator)[![Dependencies][david]](https://david-dm.org/bigpipe/fabricator)[![Coverage Status][cover]](https://coveralls.io/r/bigpipe/fabricator?branch=master)\n\n[version]: http://img.shields.io/npm/v/fabricator.svg?style=flat-square\n[build]: http://img.shields.io/travis/bigpipe/fabricator/master.svg?style=flat-square\n[david]: https://img.shields.io/david/bigpipe/fabricator.svg?style=flat-square\n[cover]: http://img.shields.io/coveralls/bigpipe/fabricator/master.svg?style=flat-square\n\nDiscover collections of constructible instances from strings (filepaths),\narrays or objects. Fabricator is a small helper module which does nothing\nelse but detecting constructible JS entities. Strings are resolved as filepaths.\n\nThe [BigPipe] project is using the fabricator to find Pages and/or Pagelets. This\ngives developers using BigPipe more flexibility. For example, you don't have to\nworry about adding each Page constructor to BigPipe, simply provide the directory\nthey reside in.\n\n### Installation\n\n```bash\nnpm install fabricator --save\n```\n\n### Usage\n\n```js\nvar fabricator = require('fabricator')\n  , path = './path/to/directory/with/constructibles';\n  , obj = {\n      status: require('./npm-status-pagelet'),\n      extended: __dirname + '/i/can/be/a/path/to/a/constructor.js'\n    }\n\n//\n// Discover constructors.\n//\nvar stack = fabricator(obj);\n```\n\n### Tests\n\nMake sure devDependencies are installed, after run the tests via:\n\n```js\nnpm test\n```\n\n[BigPipe]: http://bigpipe.io/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigpipe%2Ffabricator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbigpipe%2Ffabricator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigpipe%2Ffabricator/lists"}