node-fn-query:sed“ sjq .keynq'({key})=>键'”

时间:2021-02-09 10:38:00
【文件属性】:
文件名称:node-fn-query:sed“ sjq .keynq'({key})=>键'”
文件大小:9KB
文件格式:ZIP
更新时间:2021-02-09 10:38:00
JavaScript q npm install -g node-fn-query cat example.json | jq -c .[] | nq ' ({eyeColor}) => eyeColor ' # all eye color results cat example.json | jq -c .[] | nq --filter ' ({favoriteFruit}) => favoriteFruit === "banana" ' # filtered objects cat example.json | jq -c .[] | nq --reduce [] ' (acc, {friends}) => acc.concat(friends) ' | jq -c .[] | nq ' _.get("id") ' | sort | uniq # list of unique friend ids. _
【文件预览】:
node-fn-query-master
----index.js(2KB)
----package.json(401B)
----example.json(7KB)
----.gitignore(31B)
----README.md(5KB)
----yarn.lock(5KB)

网友评论