开发者社区> 镜像站> NPM> component-json
component-json
Component plugin for JSON files
Last updated 7 years ago by camshaft .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install component-json 
SYNC missed versions from official npm registry.

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"
  ]
  ...
}

Current Tags

  • 0.1.4                                ...           latest (7 years ago)

5 Versions

  • 0.1.4                                ...           7 years ago
  • 0.1.3                                ...           8 years ago
  • 0.1.2                                ...           8 years ago
  • 0.1.1                                ...           8 years ago
  • 0.1.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None