{"id":21077949,"url":"https://github.com/ryanburnette/array-to-object-template","last_synced_at":"2025-03-14T04:12:05.612Z","repository":{"id":57184135,"uuid":"126552562","full_name":"ryanburnette/array-to-object-template","owner":"ryanburnette","description":"Convert an array to an object template.","archived":false,"fork":false,"pushed_at":"2018-03-25T17:03:47.000Z","size":26,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T20:02:32.319Z","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":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryanburnette.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":"2018-03-24T00:42:08.000Z","updated_at":"2018-03-24T04:17:03.000Z","dependencies_parsed_at":"2022-08-23T01:20:50.822Z","dependency_job_id":null,"html_url":"https://github.com/ryanburnette/array-to-object-template","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanburnette%2Farray-to-object-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanburnette%2Farray-to-object-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanburnette%2Farray-to-object-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanburnette%2Farray-to-object-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanburnette","download_url":"https://codeload.github.com/ryanburnette/array-to-object-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243004069,"owners_count":20220237,"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-19T19:38:52.227Z","updated_at":"2025-03-14T04:12:05.592Z","avatar_url":"https://github.com/ryanburnette.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# array-to-object-template\n\nThis library is for a specific use case. It goes something like this.\n\nYou hand this function an object like this.\n\n```javascript\n[ 'date',\n  { student: [ 'name', 'cert_number' ] },\n  { instructor: [ 'name', 'cert_number', 'cert_expiration', { foo: ['a','b'] } ] },\n  { aircraft: [ 'make', 'model' ] } ]\n```\n\nAnd it returns a template based on that object, assuming everything should be a\nkey... like this.\n\n```javascript\n{\n  date: null,\n  student: {\n    name: null,\n    cert_number: null\n  },\n  instructor: {\n    name: null,\n    cert_number: null,\n    cert_expiration_date: null,\n    foo: {\n      a: null,\n      b: null\n    }\n  },\n  aircraft: {\n    make: null,\n    model: null\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanburnette%2Farray-to-object-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanburnette%2Farray-to-object-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanburnette%2Farray-to-object-template/lists"}