JSPM

@usebruno/query

0.1.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 77138
    • Score
      100M100P100Q149094F

    Package Exports

    • @usebruno/query
    • @usebruno/query/dist/cjs/index.js
    • @usebruno/query/dist/esm/index.js

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@usebruno/query) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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