UNPKG

json-partial

Version:

Parses a json file looking for partials. If found the partial is read and applied to the json file. On exit saves the json with the provided output name.

8 lines (5 loc) 202 B
"use strict"; var jsonx = require("./index.js"); var path = require("path"); jsonx.expandFile(path.join(__dirname, "foo.jsonx")); jsonx.parseDir(path.join(__dirname, "../plab-dev/source/_patterns"));