{"_id":"grunt-replace-json","_rev":"5-a1cea78190f2b766adc4de4468063090","name":"grunt-replace-json","description":"Updates attributes of json files.","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"grunt-replace-json","description":"Updates attributes of json files.","version":"0.1.0","homepage":"https://github.com/exo-dev/grunt-replace-json","author":{"name":"Agustin Croce","email":"agustinc@exo.com.ar"},"repository":{"type":"git","url":"git+https://github.com/exo-dev/grunt-replace-json.git"},"bugs":{"url":"https://github.com/exo-dev/grunt-replace-json/issues"},"licenses":[{"type":"MIT","url":"https://github.com/exo-dev/grunt-replace-json/blob/master/LICENCE.md"}],"engines":{"node":">= 0.8.0"},"keywords":["gruntplugin"],"dependencies":{"lodash.set":"^4.3.2"},"gitHead":"948a41f99a2c5df172a1f4fccc062e8ecb16f98e","_id":"grunt-replace-json@0.1.0","scripts":{},"_shasum":"2e58602249181718f744147a9365e4d383ca15af","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"exo-dev","email":"devmail@exo.com.ar"},"dist":{"shasum":"2e58602249181718f744147a9365e4d383ca15af","tarball":"https://registry.npmjs.org/grunt-replace-json/-/grunt-replace-json-0.1.0.tgz","integrity":"sha512-YLiDQas44Zil/bNkhWFCP63pIykTSM4TaNzXPiV7niMkHRefmpyFe5aWiRn4Cs5uJMLhXad8pjrAi2BOmkTkZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHUfHjXW2MZjQ/67kN0s38xlHCNLiKRGFQ5Fn+Vs2bnzAiEA1Gp1E3w49IlmzNNOh//fwFw9ILIUsmBBtptb03gZAFQ="}]},"maintainers":[{"name":"exo-dev","email":"devmail@exo.com.ar"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/grunt-replace-json-0.1.0.tgz_1481644570565_0.42862467421218753"}}},"readme":"# grunt-replace-json\n\n> Updates attributes of json files\n\n## Getting Started\nThis plugin requires Grunt `~0.4.5`\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-replace-json --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-replace-json');\n```\n\n## The \"replace_json\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `replace_json` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  replace_json: {\n    your_target: {\n      // Target-specific src and changes go here.\n    },\n  },\n});\n```\n\n### Options\n\n#### src\n\nThe path of the file where the changes will be applied.\n\n#### changes\n\nA JSON object of the changes to be applied. Each key is the attribute name for a single property or  *attribute0*.*attribute1*.(...).*attributeN*\nfor nested attributes. If the attribute isn't present in the file, it will be added.\n\n### Usage Example\n\nIn this example we change the version of the dotenv dependency and add a new one in our `package.json`.\n\n```js\ngrunt.initConfig({\n  replace_json: {\n    dotenv:{\n        src: 'dist/package.json',\n        changes: {\n            'dependencies.dotenv': '^2.0.0',\n            'dependencies.grunt': '^0.4.2'\n        }\n    },\n  },\n});\n```\n\nInitial file:\n```json\n{\n    \"dependencies\": {\n        \"dotenv\": \"^1.0.0\",\n    }\n}\n\n```\nResult file:\n```json\n{\n    \"dependencies\": {\n        \"dotenv\": \"^2.0.0\",\n        \"grunt\": \"^0.4.2\"\n    }\n}\n```\n","maintainers":[{"email":"devmail@exo.com.ar","name":"exodev"}],"time":{"modified":"2022-06-18T15:49:46.833Z","created":"2016-12-13T15:56:10.807Z","0.1.0":"2016-12-13T15:56:10.807Z"},"homepage":"https://github.com/exo-dev/grunt-replace-json","keywords":["gruntplugin"],"repository":{"type":"git","url":"git+https://github.com/exo-dev/grunt-replace-json.git"},"author":{"name":"Agustin Croce","email":"agustinc@exo.com.ar"},"bugs":{"url":"https://github.com/exo-dev/grunt-replace-json/issues"},"readmeFilename":"README.md","users":{"exo-dev":true}}