broccoli-json-module

1.0.0 • Public • Published

broccoli-json-module

Converts JSON files to ES6 modules. .json files will be transpiled into .js files with the json contents as the default export.

A file named config.json with contents {} will be transformed into config.js with contents export default {};.

Installation

npm install --save-dev broccoli-json-module

Usage

var json = require('broccoli-json-module');
tree = json(tree);

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    3,159
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    3,159
  • 0.0.2
    430
  • 0.0.1
    12

Package Sidebar

Install

npm i broccoli-json-module

Weekly Downloads

3,601

Version

1.0.0

License

MIT

Last publish

Collaborators

  • ghempton