{"id":21565117,"url":"https://github.com/cfware/fixture-run-directory","last_synced_at":"2025-03-18T05:17:28.351Z","repository":{"id":57101007,"uuid":"300616448","full_name":"cfware/fixture-run-directory","owner":"cfware","description":"Base class for building daemons within a fixture run directory.","archived":false,"fork":false,"pushed_at":"2023-10-15T20:01:36.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T13:51:40.184Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cfware.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-02T13:03:38.000Z","updated_at":"2022-08-13T03:45:11.000Z","dependencies_parsed_at":"2025-01-24T11:43:56.579Z","dependency_job_id":"0bdc9b45-adc7-4386-8798-b579be8d8d3d","html_url":"https://github.com/cfware/fixture-run-directory","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Ffixture-run-directory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Ffixture-run-directory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Ffixture-run-directory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Ffixture-run-directory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cfware","download_url":"https://codeload.github.com/cfware/fixture-run-directory/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244160055,"owners_count":20408021,"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-24T10:18:28.798Z","updated_at":"2025-03-18T05:17:28.330Z","avatar_url":"https://github.com/cfware.png","language":"JavaScript","readme":"# @cfware/fixture-run-directory [![NPM Version][npm-image]][npm-url]\n\nBase class for building daemons within a fixture run directory.\n\n```js\nimport path from 'path';\nimport {FixtureRunDirectory} from '@cfware/fixture-run-directory';\n\nconst fixtures = path.resolve('fixtures');\nconst instance0 = new FixtureRunDirectory({instanceID: 'instance0', fixtures});\n\nconsole.log(instance0.instanceID);\n// =\u003e instance0\n\nconsole.log(instance0.fixtureDirectory);\n// =\u003e $CWD/fixtures\n\nconsole.log(instance0.fixturePath('dir', 'file'));\n// =\u003e $CWD/fixtures/dir/file\n\nconsole.log(instance0.runDirectory);\n// =\u003e $CWD/fixtures/instances/instance0\n\nconsole.log(instance0.runPath('dir', 'file'));\n// =\u003e $CWD/fixtures/instances/instance0/dir/file\n\nconst instance1 = new FixtureRunDirectory({instanceID: 'instance1'});\n\nconsole.log(instance1.runDirectory);\n// =\u003e $CWD/fixtures/instances/instance1\n```\n\n### new FixtureRunDirectory({fixturePath, instanceID})\n\n`fixturePath` defaults to `process.resolve(process.cwd(), 'fixtures')`.  The value\nfor `process.cwd()` is taken when this module is loaded.\n\n`instanceID` must be provided and be a valid filesystem directory name.\n\n[npm-image]: https://img.shields.io/npm/v/@cfware/fixture-run-directory.svg\n[npm-url]: https://npmjs.org/package/@cfware/fixture-run-directory\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfware%2Ffixture-run-directory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcfware%2Ffixture-run-directory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfware%2Ffixture-run-directory/lists"}