node-json2module

Convert a JSON object to an ES6 module

Description

For example, given a package.json file and run this through json2module, you’ll get ES6 module as output.

This is particularly useful for exporting a version number defined in your package.json file when using Rollup. Unlike rollup-plugin-json, which enables Rollup to parse JSON directly, json2module creates standard ES6 modules that can be consumed by any client.

Node.js is an event-based server-side JavaScript engine.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://github.com/mbostock/json2module


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install node-json2module