1.1.1 • Published 3 years ago
generaterandomjson v1.1.1
generaterandomjson
Replaces tokens in a JSON
Install
$ npm install generaterandomjson
Usage
It takes a JSON with the predefined tokens to replace and returns a JSON
/**
* Replaces TOKENS
*
* Current TOKENS
* WHOLE10 WHOLE100 WHOLE1000
* WHOLE-1TO4
* TRUEORFALSE
*
*/
const generaterandomjson = require("generaterandomjson");
generaterandomjson({foo: "WHOLE100" })
// return {foo: 42}