{"_id":"bump-file","_rev":"826824","name":"bump-file","description":"Bump JSON files (e.g. package.json and friends)","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"webpro","email":"lars@webpro.nl"}],"time":{"modified":"2021-09-13T09:10:57.000Z","created":"2017-10-08T14:43:36.096Z","2.0.0":"2019-01-07T12:54:20.987Z","1.0.0":"2017-10-08T14:43:36.096Z"},"users":{},"author":{"name":"Lars Kappert","email":"lars@webpro.nl"},"repository":{"type":"git","url":"git+https://github.com/webpro/bump-file.git"},"versions":{"2.0.0":{"name":"bump-file","version":"2.0.0","description":"Bump JSON files (e.g. package.json and friends)","keywords":["bump","json","file","increment","version","package","release","tag"],"repository":{"type":"git","url":"git+https://github.com/webpro/bump-file.git"},"homepage":"https://github.com/webpro/bump-file","bugs":{"url":"https://github.com/webpro/bump-file/issues"},"main":"index.js","bin":{"bump":"bin/bump.js"},"scripts":{"format":"prettier --write index.js \"{bin,test}/**/*.js\"","test":"tape test/*.js"},"author":{"name":"Lars Kappert","email":"lars@webpro.nl"},"license":"MIT","dependencies":{"detect-indent":"5.0.0","semver":"5.4.1"},"devDependencies":{"prettier":"1.7.3","tape":"4.8.0"},"engines":{"node":">=6"},"gitHead":"dfb1e3c7517cb1709f673c93968bbe4cc0ae08bf","_id":"bump-file@2.0.0","_npmVersion":"6.5.0","_nodeVersion":"10.14.2","_npmUser":{"name":"webpro","email":"lars@webpro.nl"},"dist":{"shasum":"171475dc8a4ab0bd8ce8469860337446eb886fb5","size":2422,"noattachment":false,"key":"/bump-file/-/bump-file-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/bump-file/download/bump-file-2.0.0.tgz"},"maintainers":[{"name":"webpro","email":"lars@webpro.nl"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bump-file_2.0.0_1546865660893_0.7179801717010499"},"_hasShrinkwrap":false,"publish_time":1546865660987,"_cnpm_publish_time":1546865660987},"1.0.0":{"name":"bump-file","version":"1.0.0","description":"Bump JSON files (e.g. package.json and friends)","keywords":["bump","json","file","increment","version","package","release","tag"],"repository":{"type":"git","url":"git+https://github.com/webpro/bump-file.git"},"homepage":"https://github.com/webpro/bump-file","bugs":{"url":"https://github.com/webpro/bump-file/issues"},"main":"index.js","bin":{"bump":"bin/bump.js"},"files":["index.js","bin/bump.js"],"scripts":{"format":"prettier --write index.js \"{bin,test}/**/*.js\"","test":"tape test/*.js"},"author":{"name":"Lars Kappert","email":"lars@webpro.nl"},"license":"MIT","dependencies":{"detect-indent":"5.0.0","semver":"5.4.1"},"devDependencies":{"prettier":"1.7.3","tape":"4.8.0"},"engines":{"node":">=4"},"gitHead":"1136debba39f78818a40307514301abd671f9d18","_id":"bump-file@1.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.3.0","_npmUser":{"name":"webpro","email":"lars@webpro.nl"},"dist":{"shasum":"892880ef8af84c8df8d94cc2829ef18811503247","size":2462,"noattachment":false,"key":"/bump-file/-/bump-file-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/bump-file/download/bump-file-1.0.0.tgz"},"maintainers":[{"name":"webpro","email":"lars@webpro.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bump-file-1.0.0.tgz_1507473815132_0.4190819358918816"},"directories":{},"publish_time":1507473816096,"_hasShrinkwrap":false,"_cnpm_publish_time":1507473816096}},"readme":"# file-bump\n\n## Installation\n\n```\nnpm install file-bump\n```\n\n## Usage\n\n### Node.js\n\n```\nimport bump from 'bump-file';\n\nbump(file, [increment='patch']);\n```\n\nThe second argument can also be an object:\n\n```\nbump(file, {\n  increment,\n  preId,        // Prerelease identifier (such as \"alpha\", \"beta\", \"rc\")\n  get,          // Function to get version. Default: pkg => pkg.version\n  set           // Function to set version. Default: (pkg, version) => pkg.version = version\n});\n```\n\n### CLI\n\nYou can install this globally (`npm install -g file-bump`), and use from CLI:\n\n```\nbump file [increment] [preId]\n```\n\n## Examples\n\n```\nbump('package.json', 'minor'); // 1.0.0 → 1.1.0\n\nbump('package.json', {         // 1.4.2 → 2.0.0-beta.0\n  increment: 'premajor',\n  preId: 'beta'\n});\n```\n\nSee the tests for more example.\n","_attachments":{},"homepage":"https://github.com/webpro/bump-file","bugs":{"url":"https://github.com/webpro/bump-file/issues"},"license":"MIT"}