{"id":20671430,"url":"https://github.com/fajarbc/data-normalize","last_synced_at":"2026-04-24T07:34:11.393Z","repository":{"id":63017677,"uuid":"564191980","full_name":"fajarbc/data-normalize","owner":"fajarbc","description":"Library to normalize data structure changes, a modified version of andreamangano/normalize-data","archived":false,"fork":false,"pushed_at":"2022-11-10T07:35:45.000Z","size":89,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-26T10:50:24.488Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fajarbc.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-11-10T07:28:34.000Z","updated_at":"2022-11-10T07:35:08.000Z","dependencies_parsed_at":"2022-11-11T01:31:05.727Z","dependency_job_id":null,"html_url":"https://github.com/fajarbc/data-normalize","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/fajarbc/data-normalize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fajarbc%2Fdata-normalize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fajarbc%2Fdata-normalize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fajarbc%2Fdata-normalize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fajarbc%2Fdata-normalize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fajarbc","download_url":"https://codeload.github.com/fajarbc/data-normalize/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fajarbc%2Fdata-normalize/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32214417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T03:15:14.334Z","status":"ssl_error","status_checked_at":"2026-04-24T03:15:11.608Z","response_time":64,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-16T20:27:12.469Z","updated_at":"2026-04-24T07:34:11.377Z","avatar_url":"https://github.com/fajarbc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Data Normalize\n\n## Description\nA modified version for [andreamangano/normalize-data](https://github.com/andreamangano/normalize-data).\n\nLibrary to normalize data structure changes, include Map object.\n\n## Usage \n- CJS\n  ```javascript\n  const { normalize } = require(\"data-normalize\")\n  ```\n- ESM\n  ```javascript\n  import { normalize } from \"data-normalize\";\n  ```\n\n\n```javascript\nimport { normalize } from \"data-normalize\";\n\nconst originObjectMap = {\n    name: new Map([\n        [\"first\", \"Fajar\"],\n        [\"last\", \"BC\"],\n    ]),\n\n};\n\nfunction transformToFullname(name) {\nreturn `${name.get(\"first\")} ${name.get(\"last\")}`;\n}\n\nconsole.log(normalize(originObjectMap, [[\"fullname\", \"name\", transformToFullname]], true))\n/**\n * Output\n * { fullname: 'Fajar BC' }\n */\nconsole.log(normalize(originObjectMap, [[\"name\", \"name.first\"]]))\n/**\n * Output\n * { name: 'Fajar' }\n */\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffajarbc%2Fdata-normalize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffajarbc%2Fdata-normalize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffajarbc%2Fdata-normalize/lists"}