hjson-loader

1.0.0 • Public • Published

hjson loader for webpack

What is Hjson, the Human JSON

Installation

npm install hjson-loader

Usage

The loader returns a json after parsing hjson.

var json = require("hjson!./file.hjson");
// => returns file.json content as json parsed object

Query options

  • str - returns the content as raw string (to be used in other loaders)
require "!file?name=[name].json!hjson?str!./file.hjson"
// => emits file.json

Don't forget to polyfill require if you want to use it in node. See webpack documentation.

License

MIT (http://www.opensource.org/licenses/mit-license.php)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    32
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    32

Package Sidebar

Install

npm i hjson-loader

Weekly Downloads

32

Version

1.0.0

License

MIT

Last publish

Collaborators

  • molnarzs