Skip to content

thgaskell/json-export

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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}

About

Converts an exported javascript object to JSON.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published