1.0.0 • Published 9 years ago

argunauts v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

Argunauts

JSON and the Argunauts

This package contains a parser for Argument Object Notation (ArgON). All objects expressible in JSON are convenient to express at the command line with ArgON.

TypeJSONArgON
Object{"hello": "World"}[ --hello World ]
Array["beep", "boop"][ beep boop ]
Array[1, 2, 3][ 1 2 3 ]
Empty Array[][ ] or []
Object{"a": 10, b: 20}[ --a 10 --b 20 ]
Empty Object{}[ -- ]
Number11
Number-1-1
Number1e31e3
String"hello"hello
String"hello world"'hello world'
String"10"-- 10
String"-10"-- -10
String"-"-- -
String"--"-- --
Truetrue-t
Falsefalse-f
Nullnull-n

Argunauts includes an argon command which accepts ArgON arguments and the -t or --tab option and prints the corresponding JSON.