{"id":13724964,"url":"https://github.com/galvez/fast-path-set","last_synced_at":"2025-10-30T17:37:26.859Z","repository":{"id":52554506,"uuid":"361281947","full_name":"galvez/fast-path-set","owner":"galvez","description":"A fast drop-in replacement for lodash.set","archived":false,"fork":false,"pushed_at":"2021-04-27T06:47:39.000Z","size":61,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-16T10:11:42.344Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/galvez.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":"2021-04-24T22:43:36.000Z","updated_at":"2021-04-27T06:47:41.000Z","dependencies_parsed_at":"2022-09-06T17:21:40.358Z","dependency_job_id":null,"html_url":"https://github.com/galvez/fast-path-set","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/galvez%2Ffast-path-set","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galvez%2Ffast-path-set/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galvez%2Ffast-path-set/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galvez%2Ffast-path-set/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/galvez","download_url":"https://codeload.github.com/galvez/fast-path-set/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253720076,"owners_count":21952959,"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-08-03T01:02:08.236Z","updated_at":"2025-10-30T17:37:26.772Z","avatar_url":"https://github.com/galvez.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# fast-path-set\n\nA fast drop-in replacement for [`lodash.set`](https://www.npmjs.com/package/lodash.set).\n\n## Install \n\n```\n$ npm i fast-path-set --save\n```\n\n## Usage\n\n```js\nconst set = require('fast-path-set')\nconst obj = {}\nset(obj, 'a.b.c', 1)\nconsole.log(obj.a.b.c)\n```\n\nCheck [`test.js`](https://github.com/galvez/fast-path-set/blob/main/test.js) for more detailed usage examples. There is one **key** difference to `lodash.set`, which is the fact `fast-path-set` will **prioritise safety** and abort attempts to overwrite non-object values. It also correctly prevents prototype pollution attacks.\n\n## Benchmark\n\n```\n$ npm i lodash.set\n$ node bench.js lodash.set\n85422.0864751339\n$ npm i dset\n$ node bench.js dset\n65307.5742549896\n$ node bench.js fast-path-set\n63214.1385409832\n```\n\n## Acknowledgements\n\nThanks to\n[Luke Edwards](https://github.com/lukeed),\n[James M Snell](https://github.com/jasnell) and\n[Simone Sanfratello](https://github.com/simone-sanfratello)\nfor helping polishing this to perfection.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgalvez%2Ffast-path-set","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgalvez%2Ffast-path-set","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgalvez%2Ffast-path-set/lists"}