mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-21 15:33:11 +01:00
.. | ||
src | ||
tests | ||
.gitignore | ||
jest.config.js | ||
license.md | ||
package.json | ||
readme.md | ||
rollup.config.js | ||
tsconfig.json |
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