{"id":16125771,"url":"https://github.com/dy/obj-map-prop","last_synced_at":"2025-04-15T00:11:45.495Z","repository":{"id":65370001,"uuid":"104145534","full_name":"dy/obj-map-prop","owner":"dy","description":"Map object properties by a dict","archived":false,"fork":false,"pushed_at":"2019-04-02T22:27:51.000Z","size":3,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-30T01:37:19.627Z","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/dy.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":"2017-09-20T00:42:05.000Z","updated_at":"2019-07-23T18:58:33.000Z","dependencies_parsed_at":"2023-01-19T23:16:26.372Z","dependency_job_id":null,"html_url":"https://github.com/dy/obj-map-prop","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/dy%2Fobj-map-prop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fobj-map-prop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fobj-map-prop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fobj-map-prop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dy","download_url":"https://codeload.github.com/dy/obj-map-prop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248625493,"owners_count":21135513,"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-10-09T21:31:48.072Z","updated_at":"2025-04-15T00:11:45.450Z","avatar_url":"https://github.com/dy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# obj-map-prop [![unstable](https://img.shields.io/badge/stability-unstable-green.svg)](http://github.com/badges/stability-badges)\n\nMap object properties by a dict of functions.\n\n[![npm install obj-map-prop](https://nodei.co/npm/obj-map-prop.png?mini=true)](https://npmjs.org/package/obj-map-prop/)\n\n```js\nlet map = require('obj-map-prop')\n\nlet obj = {propA: '0', propB: 1, propC: 'foo', propD: 'bar'}\nlet result = map(obj, {\n\tpropA: value =\u003e +value,\n\tpropB: value =\u003e value + 1,\n\tpropC: c =\u003e typeof c === 'function' ? c() : c\n})\n// {propA: 0, propB: 2, propC: 'foo'}\n\n\n// keep rest of properties\nlet result = map(obj, {\n  propA: value =\u003e +value\n}, true)\n// {propA: 0, propB: 1, propC: 'foo', propD: 'bar'}\n```\n\n\n## Credits\n\n© 2017 Dima Yv. MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdy%2Fobj-map-prop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdy%2Fobj-map-prop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdy%2Fobj-map-prop/lists"}