{"repo":"ehmicky/wild-wild-path","free":true,"listed":false,"github":"https://github.com/ehmicky/wild-wild-path","clone":"git clone https://github.com/ehmicky/wild-wild-path.git","description":"🤠 Object property paths with wildcards and regexps 🌵","language":"JavaScript","stars":729,"topics":["nodejs","javascript","map","json","library","algorithm","typescript","parsing","functional-programming","regex"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"🤠 Object property paths with wildcards and regexps. 🌵 Get/set object properties using: - ⛏️ Dot-delimited paths: foo.bar.0.baz - ⭐ Wildcards: foo. , .bar - 🗺️ Regexps: foo./ba?/ - 🏜️ Slices: foo.0:2 - 🚂 Unions: foo bar baz Install This package works in both Node.js =18.18.0 and browsers. This is an ES module. It must be loaded using an import or import() statement, not require() . If TypeScript is used, it must be configured to output ES modules, not CommonJS. API Methods get(target, query, options?) target : Target \\ query : Query \\ options : Options? \\ Return value : any undefined Return the first property matching the query . has(target, query, options?) target : Target \\ query : Query \\ options : Options? \\ Return value : boolean Return whether the query matches any property. list(target, query, options?) target : Target \\ query : Query \\ options : Options? \\ Return value : any[] Return all properties matching the query , as an array. iterate(target, query, options?) target : Target \\ query : Query \\ options : Options? \\ Return value : Iterable Return all properties matching the query , as an iterable. This is slower than list() but uses less memory. set(target, query, value, options?) target : Target \\ query : Query \\ value : any \\ options : Options? \\ Return value : Target Sets all properties matching the query . The return value is a deep clone unless the mutate option is true . remove(target, query, options?) target : Target \\ query : Query \\ options : Options? \\","default_branch":null,"files":null,"tree":[],"storefront":"/r/ehmicky","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ehmicky/wild-wild-path/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}