component-json

0.1.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i component-json

Weekly Downloads

3

Version

0.1.4

License

MIT

Last publish

Collaborators

  • camshaft