{"_id":"@dormammuuuuu/json-helper","_rev":"2-b8f417ea193ab2c428109621afeb2701","name":"@dormammuuuuu/json-helper","dist-tags":{"latest":"3.0.1-a"},"versions":{"3.0.0":{"name":"@dormammuuuuu/json-helper","version":"3.0.0","keywords":["json","loop","json-lookup","json-helper","json-traversal","data-manipulation","tree-structure","nested-data","hierarchical-data","node-search","json-utils","json-tree","json-data-structure","json-query","json-node-management"],"author":{"name":"Jerico Victoria"},"license":"MIT","_id":"@dormammuuuuu/json-helper@3.0.0","maintainers":[{"name":"dormammuuuuu","email":"jericovic64@gmail.com"}],"homepage":"https://github.com/dormammuuuuu/json-helper#readme","bugs":{"url":"https://github.com/dormammuuuuu/json-helper/issues"},"dist":{"shasum":"4a0f2f8bcfe2228e04ea953347aa196ead97b39c","tarball":"https://registry.npmjs.org/@dormammuuuuu/json-helper/-/json-helper-3.0.0.tgz","fileCount":7,"integrity":"sha512-xQ9WMPCCils9+nONyE/N4zoqo3a9FydgOY8tRu4dXpe3xLGMJI+1dovLnuwNUG96WkEHYzk88jepHGINGM6YiA==","signatures":[{"sig":"MEUCIQC59OllpTDoEkpvnk6O66fRxiDUdXgb8CsNI0q6kpIgzwIgfA0I/NJhdh/KoTTIkCsATm3o+hwUlh5nnfrQ4MpgE6g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":28909},"main":"dist/json-helper.umd.js","types":"dist/types/json-helper.d.ts","module":"dist/json-helper.es.js","exports":{".":{"import":"./dist/json-helper.es.js","require":"./dist/json-helper.umd.js"}},"gitHead":"e3c4d3bf3541e8b2867a5af6c9197311aca604ad","scripts":{"dev":"vite","test":"jest","build":"vite build && tsc","format":"prettier --write ."},"_npmUser":{"name":"dormammuuuuu","email":"jericovic64@gmail.com"},"repository":{"url":"git+https://github.com/dormammuuuuu/json-helper.git","type":"git"},"_npmVersion":"10.5.0","description":"A library that provides utility functions for traversing and manipulating JSON data.","directories":{"test":"test"},"_nodeVersion":"20.12.2","dependencies":{"co":"^4.6.0","ms":"^2.1.3","yn":"^3.1.1","arg":"^4.1.3","ejs":"^3.1.10","bser":"^2.1.1","diff":"^4.0.2","exit":"^0.1.2","glob":"^7.2.3","jake":"^10.9.2","once":"^1.4.0","tmpl":"^1.0.5","y18n":"^5.0.8","acorn":"^8.13.0","async":"^3.2.6","chalk":"^4.1.2","cliui":"^8.0.1","debug":"^4.3.7","execa":"^5.1.1","isexe":"^2.0.0","jsesc":"^3.0.2","json5":"^2.2.3","kleur":"^3.0.3","leven":"^3.1.0","p-try":"^2.2.0","slash":"^3.0.0","which":"^2.0.2","yargs":"^17.7.2","braces":"^3.0.3","dedent":"^1.5.3","expect":"^29.7.0","hasown":"^2.0.2","nanoid":"^3.3.7","rollup":"^4.24.0","semver":"^6.3.1","walker":"^1.0.8","wrappy":"^1.0.2","ci-info":"^3.9.0","esbuild":"^0.21.5","esprima":"^4.0.1","find-up":"^4.1.0","gensync":"^1.0.0-beta.2","globals":"^11.12.0","js-yaml":"^3.14.1","onetime":"^5.1.2","p-limit":"^3.1.0","pirates":"^4.0.6","pkg-dir":"^4.2.0","postcss":"^8.4.47","prompts":"^2.4.2","resolve":"^1.22.8","yallist":"^3.1.1","anymatch":"^3.1.3","argparse":"^1.0.10","emittery":"^0.13.1","error-ex":"^1.3.2","escalade":"^3.2.0","filelist":"^1.0.4","has-flag":"^4.0.0","inflight":"^1.0.6","inherits":"^2.0.4","jest-cli":"^29.7.0","make-dir":"^4.0.0","mimic-fn":"^2.1.0","p-locate":"^4.1.0","path-key":"^3.1.1","react-is":"^18.3.1","bs-logger":"^0.2.6","callsites":"^3.1.0","camelcase":"^5.3.1","deepmerge":"^4.3.1","is-number":"^7.0.0","is-stream":"^2.0.1","jest-diff":"^29.7.0","jest-each":"^29.7.0","jest-mock":"^29.7.0","jest-util":"^29.7.0","js-tokens":"^4.0.0","lru-cache":"^5.1.1","makeerror":"^1.0.12","minimatch":"^3.1.2","picomatch":"^2.3.1","pure-rand":"^6.1.0","strip-bom":"^4.0.0","type-fest":"^0.21.3","wrap-ansi":"^7.0.0","acorn-walk":"^8.3.4","ansi-regex":"^5.0.1","babel-jest":"^29.7.0","char-regex":"^1.0.2","color-name":"^1.1.4","concat-map":"^0.0.1","fill-range":"^7.1.1","get-stream":"^6.0.1","make-error":"^1.3.6","micromatch":"^4.0.8","node-int64":"^0.4.0","parse-json":"^5.2.0","path-parse":"^1.0.7","picocolors":"^1.1.1","sisteransi":"^1.0.5","source-map":"^0.6.1","sprintf-js":"^1.0.3","strip-ansi":"^6.0.1","ansi-styles":"^4.3.0","buffer-from":"^1.1.2","create-jest":"^29.7.0","cross-spawn":"^7.0.3","emoji-regex":"^8.0.0","fb-watchman":"^2.0.2","fs.realpath":"^1.0.0","graceful-fs":"^4.2.11","imurmurhash":"^0.1.4","is-arrayish":"^0.2.1","jest-circus":"^29.7.0","jest-config":"^29.7.0","jest-runner":"^29.7.0","jest-worker":"^29.7.0","locate-path":"^5.0.0","path-exists":"^4.0.0","resolve-cwd":"^3.0.0","signal-exit":"^3.0.7","stack-utils":"^2.0.6","type-detect":"^4.0.8","yocto-queue":"^0.1.0","ansi-escapes":"^4.3.2","browserslist":"^4.24.2","caniuse-lite":"^1.0.30001669","html-escaper":"^2.0.2","import-local":"^3.2.0","jest-resolve":"^29.7.0","jest-runtime":"^29.7.0","jest-watcher":"^29.7.0","merge-stream":"^2.0.0","npm-run-path":"^4.0.1","resolve-from":"^5.0.0","string-width":"^4.2.3","test-exclude":"^6.0.0","undici-types":"^6.19.8","yargs-parser":"^21.1.1","color-convert":"^2.0.1","function-bind":"^1.1.2","human-signals":"^2.1.0","jest-docblock":"^29.7.0","jest-get-type":"^29.6.3","jest-snapshot":"^29.7.0","jest-validate":"^29.7.0","node-releases":"^2.0.18","pretty-format":"^29.7.0","shebang-regex":"^3.0.0","source-map-js":"^1.2.1","string-length":"^4.0.2","balanced-match":"^1.0.2","create-require":"^1.1.1","detect-newline":"^3.1.0","diff-sequences":"^29.6.3","is-core-module":"^2.15.1","jest-haste-map":"^29.7.0","lodash.memoize":"^4.1.2","normalize-path":"^3.0.0","supports-color":"^7.2.0","to-regex-range":"^5.0.1","v8-to-istanbul":"^9.3.0","brace-expansion":"^1.1.11","get-caller-file":"^2.0.5","is-generator-fn":"^2.1.0","jest-regex-util":"^29.6.3","natural-compare":"^1.4.0","resolve.exports":"^2.0.2","shebang-command":"^2.0.0","cjs-module-lexer":"^1.4.1","get-package-type":"^0.1.0","istanbul-reports":"^3.1.7","path-is-absolute":"^1.0.1","babel-preset-jest":"^29.6.3","jest-message-util":"^29.7.0","jest-pnp-resolver":"^1.2.3","lines-and-columns":"^1.2.4","require-directory":"^2.1.1","write-file-atomic":"^4.0.2","convert-source-map":"^2.0.0","jest-changed-files":"^29.7.0","jest-leak-detector":"^29.7.0","jest-matcher-utils":"^29.7.0","source-map-support":"^0.5.13","collect-v8-coverage":"^1.0.2","istanbul-lib-report":"^3.0.1","strip-final-newline":"^2.0.0","strip-json-comments":"^3.1.1","electron-to-chromium":"^1.5.45","escape-string-regexp":"^2.0.0","v8-compile-cache-lib":"^3.0.1","babel-plugin-istanbul":"^6.1.1","istanbul-lib-coverage":"^3.2.2","jest-environment-node":"^29.7.0","update-browserslist-db":"^1.1.1","babel-plugin-jest-hoist":"^29.6.3","is-fullwidth-code-point":"^3.0.0","istanbul-lib-instrument":"^6.0.3","istanbul-lib-source-maps":"^4.0.1","jest-resolve-dependencies":"^29.7.0","fast-json-stable-stringify":"^2.1.0","json-parse-even-better-errors":"^2.3.1","supports-preserve-symlinks-flag":"^1.0.0","babel-preset-current-node-syntax":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","vite":"^5.4.10","ts-jest":"^29.2.5","ts-node":"^10.9.2","prettier":"^3.3.3","typescript":"^5.6.3","@types/jest":"^29.5.14"},"_npmOperationalInternal":{"tmp":"tmp/json-helper_3.0.0_1729803252969_0.21522684593988384","host":"s3://npm-registry-packages"}},"3.0.1":{"name":"@dormammuuuuu/json-helper","version":"3.0.1","keywords":["json","loop","json-lookup","json-helper","json-traversal","data-manipulation","tree-structure","nested-data","hierarchical-data","node-search","json-utils","json-tree","json-data-structure","json-query","json-node-management"],"author":{"name":"Jerico Victoria"},"license":"MIT","_id":"@dormammuuuuu/json-helper@3.0.1","maintainers":[{"name":"dormammuuuuu","email":"jericovic64@gmail.com"}],"homepage":"https://github.com/dormammuuuuu/json-helper#readme","bugs":{"url":"https://github.com/dormammuuuuu/json-helper/issues"},"dist":{"shasum":"40272f85a250f59443b93c7b2864c1122b7a91d3","tarball":"https://registry.npmjs.org/@dormammuuuuu/json-helper/-/json-helper-3.0.1.tgz","fileCount":7,"integrity":"sha512-RoUxD2qck83CXLMUrfGMT3Jx3yUj6OcsBwxz9p9cpcWym3DCN3/o+Rb7xPPRO3D5oGvbXg/O9VdWblp4nkE7Ng==","signatures":[{"sig":"MEQCIB3cJ4pvGtlJg01mze0OYZKA8YQrsEYBoDf2EePrm2KaAiBXJ4/DvbXntehU7Jr77uwnZYGGNFkrMQISWNmRCbsHbA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":28903},"main":"dist/json-helper.umd.js","types":"dist/types/index.d.ts","module":"dist/json-helper.es.js","exports":{".":{"import":"./dist/json-helper.es.js","require":"./dist/json-helper.umd.js"}},"gitHead":"319dd5c47f2cb8e545ed2eb3d50ce34ee4078f5f","scripts":{"dev":"vite","test":"jest","build":"vite build && tsc","format":"prettier --write ."},"_npmUser":{"name":"dormammuuuuu","email":"jericovic64@gmail.com"},"repository":{"url":"git+https://github.com/dormammuuuuu/json-helper.git","type":"git"},"_npmVersion":"10.5.0","description":"A library that provides utility functions for traversing and manipulating JSON data.","directories":{"test":"test"},"_nodeVersion":"20.12.2","dependencies":{"co":"^4.6.0","ms":"^2.1.3","yn":"^3.1.1","arg":"^4.1.3","ejs":"^3.1.10","bser":"^2.1.1","diff":"^4.0.2","exit":"^0.1.2","glob":"^7.2.3","jake":"^10.9.2","once":"^1.4.0","tmpl":"^1.0.5","y18n":"^5.0.8","acorn":"^8.13.0","async":"^3.2.6","chalk":"^4.1.2","cliui":"^8.0.1","debug":"^4.3.7","execa":"^5.1.1","isexe":"^2.0.0","jsesc":"^3.0.2","json5":"^2.2.3","kleur":"^3.0.3","leven":"^3.1.0","p-try":"^2.2.0","slash":"^3.0.0","which":"^2.0.2","yargs":"^17.7.2","braces":"^3.0.3","dedent":"^1.5.3","expect":"^29.7.0","hasown":"^2.0.2","nanoid":"^3.3.7","rollup":"^4.24.0","semver":"^6.3.1","walker":"^1.0.8","wrappy":"^1.0.2","ci-info":"^3.9.0","esbuild":"^0.21.5","esprima":"^4.0.1","find-up":"^4.1.0","gensync":"^1.0.0-beta.2","globals":"^11.12.0","js-yaml":"^3.14.1","onetime":"^5.1.2","p-limit":"^3.1.0","pirates":"^4.0.6","pkg-dir":"^4.2.0","postcss":"^8.4.47","prompts":"^2.4.2","resolve":"^1.22.8","yallist":"^3.1.1","anymatch":"^3.1.3","argparse":"^1.0.10","emittery":"^0.13.1","error-ex":"^1.3.2","escalade":"^3.2.0","filelist":"^1.0.4","has-flag":"^4.0.0","inflight":"^1.0.6","inherits":"^2.0.4","jest-cli":"^29.7.0","make-dir":"^4.0.0","mimic-fn":"^2.1.0","p-locate":"^4.1.0","path-key":"^3.1.1","react-is":"^18.3.1","bs-logger":"^0.2.6","callsites":"^3.1.0","camelcase":"^5.3.1","deepmerge":"^4.3.1","is-number":"^7.0.0","is-stream":"^2.0.1","jest-diff":"^29.7.0","jest-each":"^29.7.0","jest-mock":"^29.7.0","jest-util":"^29.7.0","js-tokens":"^4.0.0","lru-cache":"^5.1.1","makeerror":"^1.0.12","minimatch":"^3.1.2","picomatch":"^2.3.1","pure-rand":"^6.1.0","strip-bom":"^4.0.0","type-fest":"^0.21.3","wrap-ansi":"^7.0.0","acorn-walk":"^8.3.4","ansi-regex":"^5.0.1","babel-jest":"^29.7.0","char-regex":"^1.0.2","color-name":"^1.1.4","concat-map":"^0.0.1","fill-range":"^7.1.1","get-stream":"^6.0.1","make-error":"^1.3.6","micromatch":"^4.0.8","node-int64":"^0.4.0","parse-json":"^5.2.0","path-parse":"^1.0.7","picocolors":"^1.1.1","sisteransi":"^1.0.5","source-map":"^0.6.1","sprintf-js":"^1.0.3","strip-ansi":"^6.0.1","ansi-styles":"^4.3.0","buffer-from":"^1.1.2","create-jest":"^29.7.0","cross-spawn":"^7.0.3","emoji-regex":"^8.0.0","fb-watchman":"^2.0.2","fs.realpath":"^1.0.0","graceful-fs":"^4.2.11","imurmurhash":"^0.1.4","is-arrayish":"^0.2.1","jest-circus":"^29.7.0","jest-config":"^29.7.0","jest-runner":"^29.7.0","jest-worker":"^29.7.0","locate-path":"^5.0.0","path-exists":"^4.0.0","resolve-cwd":"^3.0.0","signal-exit":"^3.0.7","stack-utils":"^2.0.6","type-detect":"^4.0.8","yocto-queue":"^0.1.0","ansi-escapes":"^4.3.2","browserslist":"^4.24.2","caniuse-lite":"^1.0.30001669","html-escaper":"^2.0.2","import-local":"^3.2.0","jest-resolve":"^29.7.0","jest-runtime":"^29.7.0","jest-watcher":"^29.7.0","merge-stream":"^2.0.0","npm-run-path":"^4.0.1","resolve-from":"^5.0.0","string-width":"^4.2.3","test-exclude":"^6.0.0","undici-types":"^6.19.8","yargs-parser":"^21.1.1","color-convert":"^2.0.1","function-bind":"^1.1.2","human-signals":"^2.1.0","jest-docblock":"^29.7.0","jest-get-type":"^29.6.3","jest-snapshot":"^29.7.0","jest-validate":"^29.7.0","node-releases":"^2.0.18","pretty-format":"^29.7.0","shebang-regex":"^3.0.0","source-map-js":"^1.2.1","string-length":"^4.0.2","balanced-match":"^1.0.2","create-require":"^1.1.1","detect-newline":"^3.1.0","diff-sequences":"^29.6.3","is-core-module":"^2.15.1","jest-haste-map":"^29.7.0","lodash.memoize":"^4.1.2","normalize-path":"^3.0.0","supports-color":"^7.2.0","to-regex-range":"^5.0.1","v8-to-istanbul":"^9.3.0","brace-expansion":"^1.1.11","get-caller-file":"^2.0.5","is-generator-fn":"^2.1.0","jest-regex-util":"^29.6.3","natural-compare":"^1.4.0","resolve.exports":"^2.0.2","shebang-command":"^2.0.0","cjs-module-lexer":"^1.4.1","get-package-type":"^0.1.0","istanbul-reports":"^3.1.7","path-is-absolute":"^1.0.1","babel-preset-jest":"^29.6.3","jest-message-util":"^29.7.0","jest-pnp-resolver":"^1.2.3","lines-and-columns":"^1.2.4","require-directory":"^2.1.1","write-file-atomic":"^4.0.2","convert-source-map":"^2.0.0","jest-changed-files":"^29.7.0","jest-leak-detector":"^29.7.0","jest-matcher-utils":"^29.7.0","source-map-support":"^0.5.13","collect-v8-coverage":"^1.0.2","istanbul-lib-report":"^3.0.1","strip-final-newline":"^2.0.0","strip-json-comments":"^3.1.1","electron-to-chromium":"^1.5.45","escape-string-regexp":"^2.0.0","v8-compile-cache-lib":"^3.0.1","babel-plugin-istanbul":"^6.1.1","istanbul-lib-coverage":"^3.2.2","jest-environment-node":"^29.7.0","update-browserslist-db":"^1.1.1","babel-plugin-jest-hoist":"^29.6.3","is-fullwidth-code-point":"^3.0.0","istanbul-lib-instrument":"^6.0.3","istanbul-lib-source-maps":"^4.0.1","jest-resolve-dependencies":"^29.7.0","fast-json-stable-stringify":"^2.1.0","json-parse-even-better-errors":"^2.3.1","supports-preserve-symlinks-flag":"^1.0.0","babel-preset-current-node-syntax":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","vite":"^5.4.10","ts-jest":"^29.2.5","ts-node":"^10.9.2","prettier":"^3.3.3","typescript":"^5.6.3","@types/jest":"^29.5.14"},"_npmOperationalInternal":{"tmp":"tmp/json-helper_3.0.1_1729804060882_0.8117162989205102","host":"s3://npm-registry-packages"}},"3.0.1-a":{"name":"@dormammuuuuu/json-helper","version":"3.0.1-a","description":"A library that provides utility functions for traversing and manipulating JSON data.","main":"dist/json-helper.umd.js","module":"dist/json-helper.es.js","types":"dist/types/index.d.ts","exports":{".":{"import":"./dist/json-helper.es.js","require":"./dist/json-helper.umd.js","types":"./dist/types/index.d.ts"}},"scripts":{"dev":"vite","build":"vite build && tsc","test":"jest","format":"prettier --write ."},"repository":{"type":"git","url":"git+https://github.com/dormammuuuuu/json-helper.git"},"keywords":["json","loop","json-lookup","json-helper","json-traversal","data-manipulation","tree-structure","nested-data","hierarchical-data","node-search","json-utils","json-tree","json-data-structure","json-query","json-node-management"],"author":{"name":"Jerico Victoria"},"license":"MIT","bugs":{"url":"https://github.com/dormammuuuuu/json-helper/issues"},"homepage":"https://github.com/dormammuuuuu/json-helper#readme","devDependencies":{"@types/jest":"^29.5.14","jest":"^29.7.0","prettier":"^3.3.3","ts-jest":"^29.2.5","ts-node":"^10.9.2","typescript":"^5.6.3","vite":"^5.4.10"},"directories":{"test":"test"},"dependencies":{"acorn":"^8.13.0","acorn-walk":"^8.3.4","ansi-escapes":"^4.3.2","ansi-regex":"^5.0.1","ansi-styles":"^4.3.0","anymatch":"^3.1.3","arg":"^4.1.3","argparse":"^1.0.10","async":"^3.2.6","babel-jest":"^29.7.0","babel-plugin-istanbul":"^6.1.1","babel-plugin-jest-hoist":"^29.6.3","babel-preset-current-node-syntax":"^1.1.0","babel-preset-jest":"^29.6.3","balanced-match":"^1.0.2","brace-expansion":"^1.1.11","braces":"^3.0.3","browserslist":"^4.24.2","bs-logger":"^0.2.6","bser":"^2.1.1","buffer-from":"^1.1.2","callsites":"^3.1.0","camelcase":"^5.3.1","caniuse-lite":"^1.0.30001669","chalk":"^4.1.2","char-regex":"^1.0.2","ci-info":"^3.9.0","cjs-module-lexer":"^1.4.1","cliui":"^8.0.1","co":"^4.6.0","collect-v8-coverage":"^1.0.2","color-convert":"^2.0.1","color-name":"^1.1.4","concat-map":"^0.0.1","convert-source-map":"^2.0.0","create-jest":"^29.7.0","create-require":"^1.1.1","cross-spawn":"^7.0.3","debug":"^4.3.7","dedent":"^1.5.3","deepmerge":"^4.3.1","detect-newline":"^3.1.0","diff":"^4.0.2","diff-sequences":"^29.6.3","ejs":"^3.1.10","electron-to-chromium":"^1.5.45","emittery":"^0.13.1","emoji-regex":"^8.0.0","error-ex":"^1.3.2","esbuild":"^0.21.5","escalade":"^3.2.0","escape-string-regexp":"^2.0.0","esprima":"^4.0.1","execa":"^5.1.1","exit":"^0.1.2","expect":"^29.7.0","fast-json-stable-stringify":"^2.1.0","fb-watchman":"^2.0.2","filelist":"^1.0.4","fill-range":"^7.1.1","find-up":"^4.1.0","fs.realpath":"^1.0.0","function-bind":"^1.1.2","gensync":"^1.0.0-beta.2","get-caller-file":"^2.0.5","get-package-type":"^0.1.0","get-stream":"^6.0.1","glob":"^7.2.3","globals":"^11.12.0","graceful-fs":"^4.2.11","has-flag":"^4.0.0","hasown":"^2.0.2","html-escaper":"^2.0.2","human-signals":"^2.1.0","import-local":"^3.2.0","imurmurhash":"^0.1.4","inflight":"^1.0.6","inherits":"^2.0.4","is-arrayish":"^0.2.1","is-core-module":"^2.15.1","is-fullwidth-code-point":"^3.0.0","is-generator-fn":"^2.1.0","is-number":"^7.0.0","is-stream":"^2.0.1","isexe":"^2.0.0","istanbul-lib-coverage":"^3.2.2","istanbul-lib-instrument":"^6.0.3","istanbul-lib-report":"^3.0.1","istanbul-lib-source-maps":"^4.0.1","istanbul-reports":"^3.1.7","jake":"^10.9.2","jest-changed-files":"^29.7.0","jest-circus":"^29.7.0","jest-cli":"^29.7.0","jest-config":"^29.7.0","jest-diff":"^29.7.0","jest-docblock":"^29.7.0","jest-each":"^29.7.0","jest-environment-node":"^29.7.0","jest-get-type":"^29.6.3","jest-haste-map":"^29.7.0","jest-leak-detector":"^29.7.0","jest-matcher-utils":"^29.7.0","jest-message-util":"^29.7.0","jest-mock":"^29.7.0","jest-pnp-resolver":"^1.2.3","jest-regex-util":"^29.6.3","jest-resolve":"^29.7.0","jest-resolve-dependencies":"^29.7.0","jest-runner":"^29.7.0","jest-runtime":"^29.7.0","jest-snapshot":"^29.7.0","jest-util":"^29.7.0","jest-validate":"^29.7.0","jest-watcher":"^29.7.0","jest-worker":"^29.7.0","js-tokens":"^4.0.0","js-yaml":"^3.14.1","jsesc":"^3.0.2","json-parse-even-better-errors":"^2.3.1","json5":"^2.2.3","kleur":"^3.0.3","leven":"^3.1.0","lines-and-columns":"^1.2.4","locate-path":"^5.0.0","lodash.memoize":"^4.1.2","lru-cache":"^5.1.1","make-dir":"^4.0.0","make-error":"^1.3.6","makeerror":"^1.0.12","merge-stream":"^2.0.0","micromatch":"^4.0.8","mimic-fn":"^2.1.0","minimatch":"^3.1.2","ms":"^2.1.3","nanoid":"^3.3.7","natural-compare":"^1.4.0","node-int64":"^0.4.0","node-releases":"^2.0.18","normalize-path":"^3.0.0","npm-run-path":"^4.0.1","once":"^1.4.0","onetime":"^5.1.2","p-limit":"^3.1.0","p-locate":"^4.1.0","p-try":"^2.2.0","parse-json":"^5.2.0","path-exists":"^4.0.0","path-is-absolute":"^1.0.1","path-key":"^3.1.1","path-parse":"^1.0.7","picocolors":"^1.1.1","picomatch":"^2.3.1","pirates":"^4.0.6","pkg-dir":"^4.2.0","postcss":"^8.4.47","pretty-format":"^29.7.0","prompts":"^2.4.2","pure-rand":"^6.1.0","react-is":"^18.3.1","require-directory":"^2.1.1","resolve":"^1.22.8","resolve-cwd":"^3.0.0","resolve-from":"^5.0.0","resolve.exports":"^2.0.2","rollup":"^4.24.0","semver":"^6.3.1","shebang-command":"^2.0.0","shebang-regex":"^3.0.0","signal-exit":"^3.0.7","sisteransi":"^1.0.5","slash":"^3.0.0","source-map":"^0.6.1","source-map-js":"^1.2.1","source-map-support":"^0.5.13","sprintf-js":"^1.0.3","stack-utils":"^2.0.6","string-length":"^4.0.2","string-width":"^4.2.3","strip-ansi":"^6.0.1","strip-bom":"^4.0.0","strip-final-newline":"^2.0.0","strip-json-comments":"^3.1.1","supports-color":"^7.2.0","supports-preserve-symlinks-flag":"^1.0.0","test-exclude":"^6.0.0","tmpl":"^1.0.5","to-regex-range":"^5.0.1","type-detect":"^4.0.8","type-fest":"^0.21.3","undici-types":"^6.19.8","update-browserslist-db":"^1.1.1","v8-compile-cache-lib":"^3.0.1","v8-to-istanbul":"^9.3.0","walker":"^1.0.8","which":"^2.0.2","wrap-ansi":"^7.0.0","wrappy":"^1.0.2","write-file-atomic":"^4.0.2","y18n":"^5.0.8","yallist":"^3.1.1","yargs":"^17.7.2","yargs-parser":"^21.1.1","yn":"^3.1.1","yocto-queue":"^0.1.0"},"_id":"@dormammuuuuu/json-helper@3.0.1-a","gitHead":"ae750376010725d1106bb52f70db0ea39af97b25","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-DuhHqemMqHSYXWrZROtAsWSfwyk9SndCJw5YcnpFZ7LefzZ3WXrvmTJk+s1giLpgF0GrCN9CltyRI9rNOpELuQ==","shasum":"349d7c27cabd706db1038b1f0bf4304858419fb1","tarball":"https://registry.npmjs.org/@dormammuuuuu/json-helper/-/json-helper-3.0.1-a.tgz","fileCount":7,"unpackedSize":28946,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDiomI9evz6LmqAPMEnGDDqU0YRvICaMINJJ3jvCXPpLAiAQ1xQfU2Uf288/OEmQcXPnLwx1qmSSGKBAYZaEH6+vJg=="}]},"_npmUser":{"name":"dormammuuuuu","email":"jericovic64@gmail.com"},"maintainers":[{"name":"dormammuuuuu","email":"jericovic64@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-helper_3.0.1-a_1729804544163_0.8969658630784811"},"_hasShrinkwrap":false}},"time":{"created":"2024-10-24T20:54:12.838Z","modified":"2024-10-24T21:15:44.568Z","3.0.0":"2024-10-24T20:54:13.245Z","3.0.1":"2024-10-24T21:07:41.065Z","3.0.1-a":"2024-10-24T21:15:44.363Z"},"bugs":{"url":"https://github.com/dormammuuuuu/json-helper/issues"},"author":{"name":"Jerico Victoria"},"license":"MIT","homepage":"https://github.com/dormammuuuuu/json-helper#readme","keywords":["json","loop","json-lookup","json-helper","json-traversal","data-manipulation","tree-structure","nested-data","hierarchical-data","node-search","json-utils","json-tree","json-data-structure","json-query","json-node-management"],"repository":{"type":"git","url":"git+https://github.com/dormammuuuuu/json-helper.git"},"description":"A library that provides utility functions for traversing and manipulating JSON data.","maintainers":[{"name":"dormammuuuuu","email":"jericovic64@gmail.com"}],"readme":"# JSONHelper\n\n**JSONHelper** is a utility for efficiently traversing and manipulating nested JSON objects. It helps users search for nodes, retrieve parents, find siblings, and more, in hierarchical or tree-structured data. This is the modernization of `dabeng/json-digger`.\n\n## Features\n\n- **findNodeById**: Retrieve a node by its unique ID.\n- **findOneNode**: Find the first node that satisfies specified conditions.\n- **findNodes**: Retrieve all nodes that match the provided conditions.\n- **findParent**: Get the parent node of a given node by its ID.\n- **findSiblings**: Retrieve the sibling nodes of a given node.\n- **findAncestors**: Get the ancestors of a node.\n- **addChildren**: Add child nodes to a given node.\n- **addSiblings**: Add sibling nodes to a given node.\n- **addRoot**: Replace the root node.\n- **updateNode**: Update a single node's information.\n- **updateNodes**: Update multiple nodes' information.\n- **removeNode**: Remove a node by its ID.\n- **removeNodes**: Remove multiple nodes by their IDs or conditions.\n\n## Installation\n\n```bash\nnpm install json-helper\n```\n\n## Usage\n\n```ts\nimport { JSONHelper } from 'json-helper';\n\nconst datasource = {\n  pk: '1',\n  name: 'Lao Lao',\n  title: 'general manager',\n  inferiors: [/* Nested children */]\n};\n\nconst helper = JSONHelper({\n  datasource,\n  idProp: 'pk',\n  childrenProp: 'inferiors'\n});\n\nconst node = helper.findNodeById('1');  // Find node by ID\n```\n\n## Methods\n\n### `findNodeById(id)`\nFind a node by its ID.\n\n```ts\nconst node = helper.findNodeById('1');\n```\n\n### `findOneNode(conditions)`\nFind the first node that matches a set of conditions.\n\n```ts\nconst node = helper.findOneNode({ name: 'Xiang Xiang' });\n```\n\n### `findNodes(conditions)`\nFind all nodes matching the conditions.\n\n```ts\nconst nodes = helper.findNodes({ title: /engineer/i });\n```\n\n### `findParent(id)`\nFind the parent of a node by its ID.\n\n```ts\nconst parent = helper.findParent('2');\n```\n\n### `findSiblings(id)`\nFind the siblings of a node by its ID.\n\n```ts\nconst siblings = helper.findSiblings('2');\n```\n\n### `findAncestors(id)`\nGet the ancestors of a node.\n\n```ts\nconst ancestors = helper.findAncestors('6');\n```\n\n### `addChildren(id, data)`\nAdd child nodes to a given node.\n\n```ts\nhelper.addChildren('2', { pk: '11', name: 'New Child' });\n```\n\n### `addSiblings(id, data)`\nAdd sibling nodes to a given node.\n\n```ts\nhelper.addSiblings('2', { pk: '11', name: 'New Sibling' });\n```\n\n### `addRoot(data)`\nReplace the root node with new data.\n\n```ts\nhelper.addRoot({ pk: '11', name: 'New Root' });\n```\n\n### `updateNode(data)`\nUpdate the properties of a node.\n\n```ts\nhelper.updateNode({ pk: '1', name: 'Updated Name' });\n```\n\n### `updateNodes(ids, data)`\nUpdate multiple nodes' properties.\n\n```ts\nhelper.updateNodes(['1', '2'], { title: 'New Title' });\n```\n\n### `removeNode(id)`\nRemove a node by its ID.\n\n```ts\nhelper.removeNode('2');\n```\n\n### `removeNodes(param)`\nRemove multiple nodes based on IDs or conditions.\n\n```ts\nhelper.removeNodes(['2', '3']);\n```\n\n## Running Tests\n\nRun tests using the following command:\n\n```bash\nnpm run test\n```","readmeFilename":"README.md"}