Component plugin for requiring JSON files
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
index.js
package.json

README.md

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