{"_id":"gulp-json-modify","_rev":"10-2ed762bf3cef3a21ff7db93660b32c72","name":"gulp-json-modify","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.2":{"name":"gulp-json-modify","version":"1.0.2","keywords":["gulp","gulpplugin","version","versioning","gulp-version","gulp-plugin","json"],"author":{"url":"http://olioex.com","name":"Lloyd Watkin"},"license":"MIT","_id":"gulp-json-modify@1.0.2","maintainers":[{"name":"lloydwatkin","email":"lloyd@evilprofessor.co.uk"}],"homepage":"http://github.com/olioex/gulp-json-modify","bugs":{"url":"https://github.com/olioex/gulp-json-modify/issues"},"dist":{"shasum":"a75424f334765b62c0c978ca6b6505c5fbc04970","tarball":"https://registry.npmjs.org/gulp-json-modify/-/gulp-json-modify-1.0.2.tgz","integrity":"sha512-vBSU8dVY5PNAEjEepe6rqWRZ6k8/KjG9p1D+JCreXXQ46uqsH8U+XpB0KJqQahy6AngH0m4oPR5qYIoNSl1I0Q==","signatures":[{"sig":"MEUCIQD0hXl4V8WECT6h9v+KTO3kuRmlnN1I5ArPMqo8W7XHTwIgVPcVYqZvm6IHjfXdPy5Qd2dI7aWSQG4539TAUtr01KA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./index.js","_from":".","_shasum":"a75424f334765b62c0c978ca6b6505c5fbc04970","engines":{"node":">= 0.9.0"},"gitHead":"a26a66e9139bba2ac1849abdf4c38d09e7ec10fe","scripts":{"test":"mocha --reporter spec"},"_npmUser":{"name":"lloydwatkin","email":"lloyd@evilprofessor.co.uk"},"repository":{"url":"git://github.com/olioex/gulp-json-modify.git","type":"git"},"_npmVersion":"2.14.12","description":"Modify data on a JSON path using Gulp (gulpjs.com)","_nodeVersion":"4.2.6","dependencies":{"through2":"^0.5.1","dot-object":"^1.2.0","plugin-log":"^0.1.0","plugin-error":"^0.1.2"},"devDependencies":{"mocha":"^2.4.5","vinyl":"^1.1.1","should":"^8.2.2"},"_npmOperationalInternal":{"tmp":"tmp/gulp-json-modify-1.0.2.tgz_1465035803609_0.8666820607613772","host":"packages-16-east.internal.npmjs.com"},"directories":{}},"2.0.0":{"_id":"gulp-json-modify@2.0.0","bugs":{"url":"https://github.com/OLIOEX/gulp-json-modify/issues"},"dist":{"shasum":"96bcfebe14bd80cac16e1c0fafb226184f2e3419","tarball":"https://registry.npmjs.org/gulp-json-modify/-/gulp-json-modify-2.0.0.tgz","fileCount":9,"integrity":"sha512-K9/QorX0w4MtJVWX0/Ccf/dshc0elG+GRm9KNoPooJNEV7bQ9jNvpVOcUUD8b6FKt2Qgp7NU2BQW5IVHGOosWg==","signatures":[{"sig":"MEUCIC8474Vwo8SfmeIeNjx3zWl5AISpPTZtuaN6+TXpM5K7AiEAxDu53lnIVO5Ti/CQcayLNFZHXKFrD4tvCRLLWsjlG7M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBA53pPps3Vdl21F9MNkv5aYY4H8+FXTVKwJsNN4/recAiA9K6Mexhb3vhHDknCiPBcZ/gXfonKrArXfB3W4xOXBLg=="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/gulp-json-modify@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":11860},"main":"./index.js","name":"gulp-json-modify","author":{"url":"http://olioex.com","name":"Lloyd Watkin"},"engines":{"node":">=20"},"gitHead":"eda0bbb4aaf83ae910889b89c2c816d1f8576c7b","license":"MIT","scripts":{"test":"mocha --reporter spec"},"version":"2.0.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"a5558a6f-352a-4335-937f-6849dedbe5e7"}},"homepage":"http://github.com/olioex/gulp-json-modify","keywords":["gulp","gulpplugin","version","versioning","gulp-version","gulp-plugin","json"],"repository":{"url":"git+https://github.com/OLIOEX/gulp-json-modify.git","type":"git"},"_npmVersion":"11.19.1","description":"Modify data on a JSON path using Gulp (gulpjs.com)","directories":{},"maintainers":[{"name":"lloydwatkin","email":"lloyd@evilprofessor.co.uk"}],"_nodeVersion":"24.22.2","dependencies":{"through2":"^0.5.1","dot-object":"^2.1.5","plugin-log":"^0.1.0","plugin-error":"^0.1.2"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^2.4.5","vinyl":"^1.1.1","should":"^8.2.2"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/gulp-json-modify_2.0.0_1794582765217_0.8546985709008591"}}},"time":{"created":"2016-03-04T15:49:56.365Z","modified":"2026-11-13T15:12:45.688Z","1.0.0":"2016-03-04T15:49:56.365Z","1.0.1":"2016-05-11T11:38:54.952Z","1.0.2":"2016-06-04T10:23:25.232Z","2.0.0":"2026-11-13T15:12:45.310Z"},"bugs":{"url":"https://github.com/OLIOEX/gulp-json-modify/issues"},"author":{"url":"http://olioex.com","name":"Lloyd Watkin"},"license":"MIT","homepage":"http://github.com/olioex/gulp-json-modify","keywords":["gulp","gulpplugin","version","versioning","gulp-version","gulp-plugin","json"],"repository":{"url":"git+https://github.com/OLIOEX/gulp-json-modify.git","type":"git"},"description":"Modify data on a JSON path using Gulp (gulpjs.com)","maintainers":[{"name":"lloydwatkin","email":"lloyd@evilprofessor.co.uk"}],"readme":"# gulp-json-modify\n\n[![CI](https://github.com/OLIOEX/gulp-json-modify/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/OLIOEX/gulp-json-modify/actions/workflows/ci.yml)\n[![npm version](https://img.shields.io/npm/v/gulp-json-modify.svg)](https://www.npmjs.com/package/gulp-json-modify)\n\n> Modify a value in a JSON file using [gulp](https://gulpjs.com)\n\n## Install\n\nRequires Node.js 20 or later.\n\n```bash\nnpm install --save-dev gulp-json-modify\n```\n\n## Usage\n\n```js\nconst { src, dest } = require('gulp')\nconst jsonModify = require('gulp-json-modify')\n\nfunction setVersion() {\n  return src(['./bower.json', './package.json'])\n    .pipe(jsonModify({\n      key: 'version',\n      value: '1.0.0'\n    }))\n    .pipe(dest('./'))\n}\n\nexports.default = setVersion\n```\n\n## Options\n\n### key\n\nType: `string` (required)\n\nThe key to set. Use dot notation to set nested keys:\n\n```js\n.pipe(jsonModify({ key: 'key.subkey', value: 'set-me-to' }))\n\n/*\n{\n  \"key\": {\n    \"subkey\": \"set-me-to\"\n  }\n}\n*/\n```\n\nMissing intermediate objects are created.\n\n### value\n\nType: any JSON-serialisable value (required)\n\nThe value to set. Falsy values such as `false`, `0` and `''` are allowed; only `undefined` is rejected.\n\n### indent\n\nType: `number | string`\n\nThe indentation passed to `JSON.stringify`. By default, the plugin detects the indentation already used in the file (tabs or spaces) and keeps it. A trailing newline is also kept if the file had one.\n\n## Releasing\n\nReleases are published to npm by GitHub Actions ([`publish.yml`](.github/workflows/publish.yml)) using npm trusted publishing.\n\nCreate a GitHub Release with a new `vX.Y.Z` tag (e.g. `v2.1.0`). Publishing the release triggers the npm publish.\n\nThe workflow sets the `package.json` version from the release tag before publishing, so there is no need to bump the version by hand. Tags that are not exactly `vX.Y.Z` fail the workflow.\n\n## Credits\n\nBased on [gulp-bump](https://github.com/stevelacy/gulp-bump).\n\n## License\n\n(MIT License)\n\nCopyright (c) 2015 Steve Lacy <me@slacy.me> slacy.me\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"README.md","users":{"kiinlam":true}}