{"id":15743703,"url":"https://github.com/doowb/upsert-value","last_synced_at":"2025-03-13T10:30:47.837Z","repository":{"id":34849482,"uuid":"38843389","full_name":"doowb/upsert-value","owner":"doowb","description":"Update or set nested values and any intermediaries with dot notation (`'a.b.c'`) paths.","archived":false,"fork":false,"pushed_at":"2015-10-16T03:09:09.000Z","size":136,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-04T03:21:19.721Z","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":"grpc/grpc-go","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doowb.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2015-07-09T20:24:40.000Z","updated_at":"2024-07-23T02:09:31.000Z","dependencies_parsed_at":"2022-09-07T14:51:29.598Z","dependency_job_id":null,"html_url":"https://github.com/doowb/upsert-value","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/doowb%2Fupsert-value","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fupsert-value/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fupsert-value/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fupsert-value/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doowb","download_url":"https://codeload.github.com/doowb/upsert-value/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221360676,"owners_count":16805035,"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-04T03:21:07.469Z","updated_at":"2024-10-24T23:21:33.429Z","avatar_url":"https://github.com/doowb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# upsert-value [![NPM version](https://badge.fury.io/js/upsert-value.svg)](http://badge.fury.io/js/upsert-value)  [![Build Status](https://travis-ci.org/doowb/upsert-value.svg)](https://travis-ci.org/doowb/upsert-value)\n\n\u003e Update or set nested values and any intermediaries with dot notation (`'a.b.c'`) paths.\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i upsert-value --save\n```\n\n## Usage\n\n```js\nvar upsert = require('upsert-value');\n```\n\n## API\n\n\u003c!-- add a path or glob pattern for files with code comments to use for docs  --\u003e\n\n### [upsert](index.js#L32)\n\nUpdate or set a value on the given object with the given key path.\n\n**Params**\n\n* `obj` **{Object}**: Object to update/set.\n* `path` **{String}**: Key path to update/set.\n* `value` **{*}**: Value to update/set.\n* `returns` **{Object}**: Update object.\n\n**Example**\n\n```js\nvar obj = {};\nupsert(obj, 'a.b.c', 'foo');\n//=\u003e {a: {b: {c: 'foo'}}}\n```\n\n## Related projects\n\n\u003c!-- add an array of related projects, then un-escape the helper --\u003e\n\n* [has-own-deep](https://github.com/jonschlinkert/has-own-deep): Returns true if an object has an own, nested property using dot notation paths ('a.b.c').\n* [put-value](https://github.com/tunnckocore/put-value#readme): Update only existing values from an object, works with dot notation paths like `  a.b.c` and… [more](https://github.com/tunnckocore/put-value#readme)\n* [set-value](https://github.com/jonschlinkert/set-value): Create nested values and any intermediaries using dot notation (`'a.b.c'`) paths.\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d \u0026\u0026 npm test\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/doowb/upsert-value/issues/new)\n\n## Author\n\n**Brian Woodward**\n\n+ [github/doowb](https://github.com/doowb)\n+ [twitter/doowb](http://twitter.com/doowb)\n\n## License\n\nCopyright © 2015 Brian Woodward\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on July 09, 2015._","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoowb%2Fupsert-value","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoowb%2Fupsert-value","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoowb%2Fupsert-value/lists"}