ObjectIt
Same as JsonIt except returns the passed object if it isn't a string
Installation
This module is installed via npm:
npm i objit --save
For Command Line Interface:
npm i objit -g
Examples
var objit = // { "op": "ok" } pass-thru // { "op": "ok" } // { "you": "ok" } // { "op": "say", "hello": "world" }
Change the default type of the inital assigned parameter
// { "OneTime": "ok" } // { "DefaultType": "ok" } // { "NewType": "ok" }
Command Line Interface Examples
objit --help
Same as JsonIt except returns the passed object if it isn't a string - v0.1.0
Usage: objit JsonItString [type] [--pretty]
Examples:
objit ok
{ "op": "ok" }
objit hello say
{ "say": "hello" }
objit say,hello:world --pretty
{
"op": "say",
"hello": "world"
}
Rights
Copyright (C) 2015 by Yieme, License: MIT