
Security News
OpenGrep Restores Fingerprinting in JSON and SARIF Outputs
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
A Javascript library that enables you to handle deeply nested objects easily.
A Javascript library that enables you to handle deeply nested objects easily.
Using npm:
$ npm i -g npm
$ npm i --save mitsuketa
Mitsuketa makes JavaScript easier by taking the hassle out of working with deeply nested data structures. Allows you to strict compare object, locate deeply nested entities, etc.
Method | Description | Parameters/Input | Output |
---|---|---|---|
getType | Gets typeof identity also makes distinction between object , null , and array | identity | string |
sameType | Compares two identities using getType method | identityA, identityB | identity or false |
sameStructure | Compares two identities using sameType then validates both have the same keys | identityA, identityB | identity or false |
identical | Compares two identities using sameStructure then validates children or nested structures for iterble identities or actual values | identityA, identityB | identity or false |
isIterable | Checks if identity contains one or more keys or properties | identity | boolean |
containsKeys | Checks if identity contains the specified properties | identity, keyList | boolean |
trim | Removes properties from identity and only keeps the specified properties | identity, keyList | identity |
locate | Performs a deep search by iterating through the collection 's entire object tree an returns the path to the first identical match that is found as a string of dot . separated property names | collection, identity | string |
deepGet | Uses locate and returns the indentity 's container if found in collection | collection, identity | identity |
locateAll | Uses locate and returns all the paths to all matches | collection, identity | array of string |
deepFilter | Users locateAll and returns an array of all an identites matched inside collection | collection, identity | array of identities |
length | Returns the number of keys or properties contained in identity | identity | number |
exists | Performs deep search on collection for an identical match to identity | collection, identity | boolean |
onlyExisting | For each identity in identities , performs a deep search on collection using exists , to shorten the list identities to those that were found | collection, identities | identities |
onlyMissing | For each identity in identities , performs a deep search on collection using exists , to shorten the list identities to those that were not found | collection, identities | identities |
isFalsy | Checks if identity has or false or false-like values. These include: null, undefined, '', false, and 0 | identity | identity or false |
isTruthy | Checks if identity is non-falsy | identity | identity or false |
foundTruthy | Performs deep search on collection , and evaluate if isTruthy on the first identical match to identity | collection, identity | boolean |
foundFalsy | Performs deep search on collection , and evaluate if isFalsy on the first identical match to identity | collection, identity | boolean |
onlyTruthy | For each identity in identities , performs a deep search on collection using exists , and evaluates if isTruthy on the first identical match of property to shorten the list identities to those that were found and also truthy | collection, identities, property | identities |
onlyFalsy | For each identity in identities , performs a deep search on collection using exists , and evaluates if isFalsy on the first identical match of property to shorten the list identities to those that were found and also truthy | collection, identities, property | identities |
countMatches | Performs deep search for identity on collection using locateAll and returns the number of confirmed matches in a given depth | collection, identity, number | number |
This project is licensed under the MIT License - see the LICENSE.md file for details.
If you have a minute to spare, can you answer these two questions? https://www.surveymonkey.com/r/XJ37XSP
FAQs
A Javascript library that enables you to handle deeply nested objects easily.
We found that mitsuketa demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.