See https://ull-mii-sytws.github.io/practicas/jq-exercises/
➜ jq-modules git:(main) ✗ npm test
> [email protected] test
> ./main.jq input.json
[
12,
20,
4,
6
]
➜ jq-modules git:(main) ✗ npm start
> [email protected] start
> ./use-math.jq input.json
{
"gcd": 4,
"odd": [
3,
5
],
"even": [
12,
20,
4,
6
]
}
```bash
➜ jq-modules git:(main) npm run debug
> [email protected] debug
> ./use-add-numbers.jq so-cool.json
["DEBUG:","So cool!!"]
["DEBUG:",[["S","o"," ","c","o","o","l","!","!"],[0,1,2,3,4,5,6,7,8]]]
["DEBUG:",[["S",0],["o",1],[" ",2],["c",3],["o",4],["o",5],["l",6],["!",7],["!",8]]]
[
{
"char": "S",
"pos": 0
},
{
"char": "o",
"pos": 1
},
{
"char": " ",
"pos": 2
},
{
"char": "c",
"pos": 3
},
{
"char": "o",
"pos": 4
},
{
"char": "o",
"pos": 5
},
{
"char": "l",
"pos": 6
},
{
"char": "!",
"pos": 7
},
{
"char": "!",
"pos": 8
}
]