Skip to content

demoj1/get-in

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Work with json in scripts without 228GB node_modules dependency

:: C/get_in » echo '{"a": [1, {"b": 2}]}' | get-in a
[1, {
        "b":    2
}]
:: C/get_in » echo '{"a": [1, {"b": 2}]}' | get-in a.0
1
:: C/get_in » echo '{"a": [1, {"b": 2}]}' | get-in a.1
{
        "b":    2
}
:: C/get_in » echo '{"a": [1, {"b": 2}]}' | get-in a.1.b
2
:: C/get_in » echo '{"a": [1, {"b": 2}]}' | get-in a.1.b.c
[ERROR] Could not extract sub path from plain type
:: C/get_in » echo '{"a": [1, {"b": 2}]}' | get-in c
(null)

About

Simple fast (but not alternative) jq

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published