Skip to content
/ njo Public

njo creates JSON objects on command line.

Notifications You must be signed in to change notification settings

hiroppy/njo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-jo

Build Status codecov

njo creates JSON objects.

Install

$ npm install -g njo

Respect

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

About

njo creates JSON objects on command line.

Resources

Stars

Watchers

Forks

Packages

No packages published