https://github.com/hiroppy/njo
njo creates JSON objects on command line.
https://github.com/hiroppy/njo
Last synced: about 1 month ago
JSON representation
njo creates JSON objects on command line.
- Host: GitHub
- URL: https://github.com/hiroppy/njo
- Owner: hiroppy
- Created: 2016-05-03T02:27:38.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2020-08-17T02:49:18.000Z (almost 6 years ago)
- Last Synced: 2025-03-14T09:38:16.212Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-jo
[](https://travis-ci.org/abouthiroppy/njo)
[](https://codecov.io/gh/abouthiroppy/njo)
`njo` creates JSON objects.
## Install
```
$ npm install -g njo
```
## Respect
[jpmens/jo](https://github.com/jpmens/jo)
## Example
```
$ njo fruits=[apple,orange] favorite=pineapple
{
"fruits": [
"apple",
"orange"
],
"favorite": "pineapple"
}
# if you want to create nested objects
$ njo fruits[apple][name]=[hoge,fuga] fruits[orange][name]=piyo
{
"fruits": {
"apple": {
"name": [
"hoge",
"fuga"
]
},
"orange": {
"name": "piyo"
}
}
}
```
## LICENSE
MIT