Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Component plugin for requiring JSON files
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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
Something went wrong with that request. Please try again.