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
Search attributes easily within structures of type dictionary, list and embedded substructures with simple format 'dict.users.0.name'.
Getting Started
npm install deepfinderRun tests
make testExample 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.