An open API service indexing awesome lists of open source software.

https://github.com/thgaskell/json-export

Converts an exported javascript object to JSON.
https://github.com/thgaskell/json-export

cli json nodejs

Last synced: 5 months ago
JSON representation

Converts an exported javascript object to JSON.

Awesome Lists containing this project

README

          

# json-export

Converts an exported javascript object to JSON.

# Installation

This module may be installed either globally:

```bash
npm i -g json-export-cli
```

or locally:

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

# Usage

```bash
json-export my-object.js
```

# Example

**my-object.js**

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

## Output

```json
{"sum":3}
```