{"id":25827703,"url":"https://github.com/uojo/object-deep-map","last_synced_at":"2025-02-28T16:39:11.120Z","repository":{"id":57312579,"uuid":"141561915","full_name":"uojo/object-deep-map","owner":"uojo","description":null,"archived":false,"fork":false,"pushed_at":"2018-07-19T10:39:47.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T15:15:29.833Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uojo.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":"2018-07-19T10:12:23.000Z","updated_at":"2018-07-19T15:20:24.000Z","dependencies_parsed_at":"2022-09-10T19:00:35.382Z","dependency_job_id":null,"html_url":"https://github.com/uojo/object-deep-map","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/uojo%2Fobject-deep-map","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uojo%2Fobject-deep-map/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uojo%2Fobject-deep-map/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uojo%2Fobject-deep-map/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uojo","download_url":"https://codeload.github.com/uojo/object-deep-map/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241182848,"owners_count":19923735,"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":"2025-02-28T16:39:10.516Z","updated_at":"2025-02-28T16:39:11.095Z","avatar_url":"https://github.com/uojo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deep-map\n\n\n## Install\nTo install from npm:\n```\nnpm install --save deep-map\n```\n\n## Usage\nFor Node.js:\n```javascript\nvar deepMap = require('deep-map');\nvar data = {\n  a: 1,\n  b: {\n    c: 3,\n    d: [\n      {id: 1, name: 'apple'},\n      {id: 2, name: 'orange'}\n    ]\n  },\n  e: ['hello', 100, null, undefined]\n}\n\ndeepMap(data,(val, key, parent, tags) =\u003e {\n  console.log(key, val)\n})\n\n// undefined { a: 1,\n//   b: { c: 3, d: [ [Object], [Object] ] },\n//   e: [ 'hello', 100, null, undefined ] }\n// a 1\n// b { c: 3,\n//   d: [ { id: 1, name: 'apple' }, { id: 2, name: 'orange' } ] }\n// c 3\n// d [ { id: 1, name: 'apple' }, { id: 2, name: 'orange' } ]\n// 0 { id: 1, name: 'apple' }\n// id 1\n// name apple\n// 1 { id: 2, name: 'orange' }\n// id 2\n// name orange\n// e [ 'hello', 100, null, undefined ]\n// 0 'hello'\n// 1 100\n// 2 null\n// 3 undefined\n```\n\n\n## ChangeLog\n### 0.1.0\n- 第一版本。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuojo%2Fobject-deep-map","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuojo%2Fobject-deep-map","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuojo%2Fobject-deep-map/lists"}