var json = require("json-schema-faker!./file.jsf");
// => returns file.json content as json parsed object
Don't forget to polyfill require
if you want to use it in node.
See webpack
documentation.
var json = require("json-schema-faker!./file.jsf");
// => returns file.json content as json parsed object
Don't forget to polyfill require
if you want to use it in node.
See webpack
documentation.