Gathering detailed insights and metrics for @whi/object-walk
Gathering detailed insights and metrics for @whi/object-walk
Gathering detailed insights and metrics for @whi/object-walk
Gathering detailed insights and metrics for @whi/object-walk
A method for traversing an object and optionally replacing values
npm install @whi/object-walk
Typescript
Module System
Node Version
NPM Version
JavaScript (41.38%)
TypeScript (39.54%)
Makefile (11.84%)
Nix (7.24%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
21 Commits
1 Watchers
1 Branches
1 Contributors
Updated on May 20, 2025
Latest Version
0.4.2
Package Id
@whi/object-walk@0.4.2
Unpacked Size
12.93 kB
Size
3.65 kB
File Count
6
NPM Version
10.8.2
Node Version
20.19.1
Published on
May 20, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
5
Object.walk( obj, replacer )
This module is intended to help with recursively traversing an object and optionally replacing values.
traverse
do this?Traverse is a great library, but it hasn't been updated since 2013. The internal assumptions
(specifically around the immutable/copy feature) do not support newer types such as Node's Buffer
class. You may see this error message when using traverse
with Buffer
TypeError: Method get TypedArray.prototype.length called on incompatible receiver [object Object]
Another reason you might use Object.walk
instead of traverse
is to avoid dependence on this
context. I don't see anything wrong with the object oriented approach, but this library is intended
to feel like a native method. Other native implementations with callbacks (such as
JSON.stringify
) don't add contextual API's to this
.
1npm i @whi/object-walk
1import { walk } from '@whi/object-walk'; 2 3walk( some_obj, function ( key, value ) { 4 return value; 5});
Alternatively, attach walk
to the native Object
as a method.
1import { bindNative } from '@whi/object-walk'; 2bindNative(); 3 4Object.walk( some_obj, function ( key, value ) { 5 return value; 6});
See docs/API.md
See CONTRIBUTING.md
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
1 existing vulnerabilities detected
Details
Reason
7 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 5
Reason
no SAST tool detected
Details
Reason
Found 0/21 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More