webant-handler-json

2.1.0 • Public • Published

node-modules-webant-handler-json

Require JSON files with webant

Installation

$ npm install webant-handler-json

Usage

Ensure the json handler is present in your webant configuration file. For example:

{
    "entry":"src/js/main.js",
    "dest":"build/main.js",
    "handlers":["json"]
}

You may now require JSON files:

var data = require("./path/to/data.json");

Tests Build Status

Ensure phantomjs is installed and in your PATH, then run:

$ npm test

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.1.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.1.0
    2
  • 2.0.0
    1
  • 1.0.0
    0
  • 0.4.0
    1
  • 0.3.0
    1

Package Sidebar

Install

npm i webant-handler-json

Weekly Downloads

4

Version

2.1.0

License

MIT

Last publish

Collaborators

  • theakman2