Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 386 Bytes

README.md

File metadata and controls

39 lines (26 loc) · 386 Bytes

json-export

Converts an exported javascript object to JSON.

Installation

This module may be installed either globally:

npm i -g json-export-cli

or locally:

npm install --save-dev json-export-cli

Usage

json-export my-object.js

Example

my-object.js

module.exports = {
  sum: 1 + 2,
};

Output

{"sum":3}