{"id":18990941,"url":"https://github.com/ricardobeat/flatkeys","last_synced_at":"2025-04-13T00:45:05.051Z","repository":{"id":9451776,"uuid":"11331109","full_name":"ricardobeat/flatkeys","owner":"ricardobeat","description":"Flatten object keys","archived":false,"fork":false,"pushed_at":"2013-07-11T03:42:30.000Z","size":112,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T18:51:53.584Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","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/ricardobeat.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":"2013-07-11T03:02:11.000Z","updated_at":"2021-06-14T03:20:10.000Z","dependencies_parsed_at":"2022-09-02T12:43:10.792Z","dependency_job_id":null,"html_url":"https://github.com/ricardobeat/flatkeys","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/ricardobeat%2Fflatkeys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricardobeat%2Fflatkeys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricardobeat%2Fflatkeys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricardobeat%2Fflatkeys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ricardobeat","download_url":"https://codeload.github.com/ricardobeat/flatkeys/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248252703,"owners_count":21072701,"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-08T17:12:11.798Z","updated_at":"2025-04-13T00:45:05.015Z","avatar_url":"https://github.com/ricardobeat.png","language":"CoffeeScript","readme":"flatKeys\n=========\n\n    npm install flatkeys\n\nFlatten object key hierarchies into a list of strings using a custom separator. Used in [Konf](http://github.com/ricardobeat/konf) to populate a config object from `process.env` variables.\n\n### Usage\n\n    flatKeys({\n        zero: {\n            one: 1,\n            two: {\n                three: 3\n            }\n        }\n    })\n\nReturns the array\n\n    [\n        'zero'\n        'zero_one'\n        'zero_two'\n        'zero_two_three'\n    ]\n\n### Options\n\n    flatKeys(keys, {\n        sep    : '_'         // separator\n        snake  : true        // convert keys from camelCase to snake_case\n        filter : toLowerCase // transformation function, defaults to `String.prototype.toLowerCase`\n    })\n\nRunning the example above with `{ sep: ':', filter: String.prototype.toUpperCase }` would yield\n\n    [\n        'ZERO'\n        'ZERO:ONE'\n        'ZERO:TWO'\n        'ZERO:TWO:THREE'\n    ]\n\n#### License\n\n[MIT](http://ricardo.mit-license.org)\n","funding_links":[],"categories":["模块","Modules"],"sub_categories":["对象","Object"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fricardobeat%2Fflatkeys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fricardobeat%2Fflatkeys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fricardobeat%2Fflatkeys/lists"}