bruno/packages/bruno-query
2023-02-19 22:48:34 -06:00
..
src feat(query): bruno-query package 2023-02-19 22:48:34 -06:00
tests feat(query): bruno-query package 2023-02-19 22:48:34 -06:00
.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
package.json feat(query): bruno-query package 2023-02-19 22:48:34 -06:00
readme.md feat(query): bruno-query package 2023-02-19 22:48:34 -06:00
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 mapping [?] with corresponding mapper function

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

Publish to Npm Registry

npm publish --access=public