
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@liquicode/lib-resource-path
Advanced tools
A node library for manipulating a hierarchy of resources using a resource path.
Install via NPM:
npm install @liquicode/lib-resource-path
Include the library in your source code:
const LibResourcePath = require( '@liquicode/lib-resource-path' );
const LibResourcePath = require( '@liquicode/lib-resource-path' );
// An array defining three resource nodes.
let Resources =
[
// Resource Path : Resource Value
".hello" : { label: 'hello', test: true },
".hello.world" : { label: 'world' },
".koo.bar" : { label: 'koo bar' },
];
// Get information about a particular resource node.
item = LibResourcePath.Select( Resources, '.hello.world' );
/*
item === {
path: '.hello.world',
parent: '.hello',
name: '.world',
info: { label: 'world' },
exists: true,
resource: { label: 'world', test: true },
children: [],
}
*/
// Get information about all resources, including implied ones ('.koo') that are not defined.
items = LibResourcePath.Getall( Resources, { item_type: 'info', list_type: 'full', return_type: 'array'} );
/*
items ===
[
{ path: '.hello', parent: '', name: '.hello', info: { label: 'hello', test: true } },
{ path: '.hello.world', parent: '.hello', name: '.world', info: { label: 'world' } },
{ path: '.koo', parent: '', name: '.koo', info: null },
{ path: '.koo.bar', parent: '.koo', name: '.bar', info: { label: 'koo bar' } },
]
*/
FAQs
A node library for manipulating a hierarchy of resources using a resource path.
We found that @liquicode/lib-resource-path 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.