JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q44074F
  • License MIT

Search attributes easily within structures of type dictionary, list and embedded substructures.

Package Exports

  • deepfinder

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 (deepfinder) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Deep finder

GitHub npm

Search attributes easily within structures of type dictionary, list and embedded substructures with simple format 'dict.users.0.name'.

Getting Started

  npm install deepfinder

Run tests

  make test

Example usage

Basic sample

  const { deepFind } = require("deepfinder")
  const user = {
    links: {
        github: 'github-user-name',
        twitter: 'twitter-user-name'
    },
  }
  console.log(deepFind(user, 'links.github'))
  // output: 'github-user-name'

License

This project is licensed under the MIT License - see the LICENSE file for details.