1.0.6 • Published 2 years ago

@palehazy/jcrool v1.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Jcrool, the Object and Array crawler.

Library for crawling javascript objects and arrays recursively; to locate certain properties (key/value pairs). Good for deeply nested structures.

An Example

The response from https://reddit.com/.json is big. you just need every single instance of the word GME in all of the comments possibly visible to us in the data.

const result = jcrool(redditJsonData, [
  {keys: ['comment'], types: ['string'] },
]

// where result would be [ { comment: 'value of comment key'}, { comment: 'other value $GME'}, ... ]
1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago