Created
May 6, 2015 07:30
-
-
Save kawanet/2937c7dff95404c96c43 to your computer and use it in GitHub Desktop.
Increment a property value in a JSON file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require("fs").writeFileSync("build.json",JSON.stringify(require("obop").update({$inc:{build:1}})(JSON.parse(require("fs").readFileSync("build.json"))))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment