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.
- Host: GitHub
- URL: https://github.com/thgaskell/json-export
- Owner: thgaskell
- Created: 2017-01-11T07:04:07.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-09-15T03:50:23.000Z (almost 7 years ago)
- Last Synced: 2025-10-10T12:16:03.311Z (9 months ago)
- Topics: cli, json, nodejs
- Language: JavaScript
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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}
```