README
BrowseJSON
Explore JSON files in CLI.
Installation
Use npm to install browsejson
npm install -g browsejson
Use yarn to install browsejson
yarn global add browsejson
Usage
browsejson [filepath]
If browsejson isn't a global package(not used -g flag) then use,
npx browsejson [filepath]
Replace [filepath] with file you want to open with browsejson.
Examples
Import files to browsejson
help command
help
print command
print
print keys command
print keys
print keys pass command
print keys pass
list all command
where [key] is key of JSON array.
list all [key]
print clipboard command
clipboard stores results of previous operations
print clipboard
save clipboard command
write clipboard results to file.
save clipboard [filepath]
cd command
navigate in JSON file.
cd [key]
navigate multiple key at a time
cd [key1>key2>key3]
navigate back
cd ..
set command
write existing key with new value or create new key and value.
set key_value [key] {value}
remove command
remove key and value if exist.
remove [key]
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.