
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
data-path-finder
Advanced tools
Library and CLI tool to find properties of a JSON data structure using datapath string
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
This library allows for traversing a javascript object to find particular properties specified in a data-path string.
A data-path string provides the ability to specify an object-traversal mechanism to grab specific attribute values out of the provided object.
A data-path string conforms to a simple specification of a property tree.
Consider the following javascript object:
{
userName:"Jose",
address: "San Pablo de Heredia",
favoriteCars: [
{
make:"Nissan",
model:"versa"
},
{
make:"Toyota",
model:"Rav4"
},
{
make:"Hyundai",
model:"Santa Fe"
}
]
}
The data-path specification "userName"
points to the value "Jose", while the data-path specification "favoriteCars[].make"
point to the value ["Nissan","Toyota","Hyundai"]
Known uses for data-path expressions implemented in this library include data transformation, mapping and verification out of dynamic rules specified in text. For example for comparing two objects of different structure that may have common attributes.
npm install data-path-finder
cd node_modules/data-path-finder/src
["Nissan","Toyota","Hyundai"]
FAQs
Library and CLI tool to find properties of a JSON data structure using datapath string
We found that data-path-finder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.