bruno/packages/bruno-query
2024-11-12 07:06:11 +05:30
..
src chore(#197): ran prettier on packages/bruno-query 2023-09-22 00:43:31 +05:30
tests chore(#197): ran prettier on packages/bruno-query 2023-09-22 00:43:31 +05:30
.gitignore feat(query): bruno-query package 2023-02-19 22:48:34 -06:00
jest.config.js feat(query): bruno-query package 2023-02-19 22:48:34 -06:00
license.md Add license to modules the cli is dependent on. 2023-09-24 22:29:10 -05:00
package.json feat: upgrade libraries for dependabot alerts (#3300) 2024-10-17 11:04:47 +05:30
readme.md Add a proper example for using the usebruno query library in the README file. (#3464) 2024-11-12 07:06:11 +05:30
rollup.config.js feat(query): bruno-query package 2023-02-19 22:48:34 -06:00
tsconfig.json feat(query): bruno-query package 2023-02-19 22:48:34 -06:00

bruno-query

Bruno query with deep navigation, filter and map support

Easy array navigation

get(data, 'customer.orders.items.amount')

Deep navigation .. double dots

get(data, '..items.amount')

Array indexing

get(data, '..items[0].amount')

Array filtering [?] with corresponding filter function

get(data, '..items[?].amount', i => i.amount > 20) 

Array filtering [?] with simple object predicate, same as (i => i.id === 2 && i.amount === 20)

get(data, '..items[?]', { id: 2, amount: 20 }) 

Array mapping [?] with corresponding mapper function

get(data, '..items..amount[?]', amt => amt + 10) 

Publish to Npm Registry

npm publish --access=public