component-json

Component plugin for JSON files

npm install component-json
4 downloads in the last day
143 downloads in the last week
498 downloads in the last month

component-json

Component plugin for requiring JSON files

Usage

var json = require("component-json");

builder.use(json());
// my-app.js

var component = require("./component.json");

console.log(component.version);
// component.json
{
  ...
  "json": [
    "component.json"
  ]
  ...
}

Or use directly with component-build

$ npm install component-json
$ component build --use component-json
npm loves you