Skip to content

nzx9/browsejson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

alt text

help command

help

help

print command

print

print

print keys command

print keys

print keys

print keys pass command

print keys pass

print keys pass

list all command

where [key] is key of JSON array.

list all [key]

list all

print clipboard command

clipboard stores results of previous operations

print clipboard

print clipboard

save clipboard command

write clipboard results to file.

save clipboard [filepath]

save clipboard

cd command

navigate in JSON file.

cd [key]

navigate multiple key at a time

cd [key1>key2>key3]

navigate back

cd ..

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]

remove

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.

License

CC0-1.0 License