{"id":25659493,"url":"https://github.com/jamalam360/dynamo","last_synced_at":"2026-05-04T18:38:38.892Z","repository":{"id":61404042,"uuid":"551318749","full_name":"Jamalam360/dynamo","owner":"Jamalam360","description":"A useful configuration library for Node \u0026 Deno applications.","archived":false,"fork":false,"pushed_at":"2022-10-17T07:20:03.000Z","size":30,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-19T10:36:44.276Z","etag":null,"topics":["deno","node","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Jamalam360.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":"2022-10-14T07:22:19.000Z","updated_at":"2022-10-18T14:44:09.000Z","dependencies_parsed_at":"2022-10-17T00:02:19.356Z","dependency_job_id":null,"html_url":"https://github.com/Jamalam360/dynamo","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jamalam360%2Fdynamo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jamalam360%2Fdynamo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jamalam360%2Fdynamo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jamalam360%2Fdynamo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jamalam360","download_url":"https://codeload.github.com/Jamalam360/dynamo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240400334,"owners_count":19795333,"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":["deno","node","typescript"],"created_at":"2025-02-24T01:17:35.669Z","updated_at":"2026-05-04T18:38:38.865Z","avatar_url":"https://github.com/Jamalam360.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dynamo\n\n_Dynamo_ is a useful configuration library for Deno \u0026 Node applications, built\nfor use with TypeScript.\n\n## Usage\n\nUsing Dynamo is very simple. It is available from both NPM (dynamo-config), and\ndeno.land/x (dynamo).\n\n\u003cdetails\u003e\n\t\u003csummary\u003eNode\u003c/summary\u003e\n\n```ts\nimport { Dynamo } from \"dynamo-config\";\n\n// You can also use a type alias union-ed with Dynamo.Config\n// if you wish.\ninterface ApplicationConfig extends Dynamo.Config {\n\tverbose: boolean;\n\tport?: number;\n\thostname?: string;\n\tcredentials: {\n\t\tusername: string;\n\t\tpassword: string;\n\t};\n}\n\n// We can pass defaults like so.\nconst defaults: Partial\u003cApplicationConfig\u003e = {\n\tport: 8080,\n\thostname: \"localhost\",\n};\n\nconst config = await Dynamo.create\u003cApplicationConfig\u003e({\n\tfile: \"./config.yml\",\n\tdefaults,\n});\n\nconsole.log(config.port);\n\n// Reload can be called to reload the config from the filesystem.\nawait config.reload();\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\t\u003csummary\u003eDeno\u003c/summary\u003e\n\n```ts\nimport * as Dynamo from \"https://deno.land/x/dynamo/mod.ts\";\n\n// You can also use a type alias union-ed with Dynamo.Config\n// if you wish.\ninterface ApplicationConfig extends Dynamo.Config {\n\tverbose: boolean;\n\tport?: number;\n\thostname?: string;\n\tcredentials: {\n\t\tusername: string;\n\t\tpassword: string;\n\t};\n}\n\n// We can pass defaults like so.\nconst defaults: Partial\u003cApplicationConfig\u003e = {\n\tport: 8080,\n\thostname: \"localhost\",\n};\n\nconst config = await Dynamo.create\u003cApplicationConfig\u003e({\n\tfile: \"./config.yml\",\n\tdefaults,\n});\n\nconsole.log(config.port);\n\n// Reload can be called to reload the config from the filesystem.\nawait config.reload();\n```\n\n\u003c/details\u003e\n\n## Formats\n\nBy default, _Dynamo_ uses YAML for configuration, but it is designed to be\nextendable. The `create` method takes an optional `parser` parameter with the\ntype `(content: string) =\u003e any`. This allows you to use any format you can\nparse. _Dynamo_ includes extra parsers for different formats in the `parsers`\ndirectory. For example, to use JSON:\n\n```ts\nimport { json } from \"https://deno.land/x/dynamo/parsers/json.ts\";\n\nconst config = await Dynamo.create\u003cApplicationConfig\u003e({\n\tfile: \"./config.json\",\n\tparser: json,\n});\n```\n\nTo see the full list of parsers, see the `parsers` directory.\n\n## Support\n\nFor support, open an [issue](https://github.com/Jamalam360/Dynamo/issues), or\ncontact me [on Discord](https://discord.jamalam.tech).\n\n## License\n\n_Dynamo_ is licensed under the MIT license.\n\n```\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamalam360%2Fdynamo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamalam360%2Fdynamo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamalam360%2Fdynamo/lists"}