
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
change-name-of-all-keys
Advanced tools
Change the key name of all attributes of an object given a hash, children as well (handy utility)
$ npm install change-name-of-all-keys
const changeNameOfAllKeys = require('change-name-of-all-keys');
const original_object = {
'>': 23,
and: {
'>': 44,
'<': 46,
or: {
like: 'bye',
notlike: 'hello'
}
}
};
const hash = {
or: 'Op.or',
and: 'Op.and',
'>': 'Op.gt',
'<': 'Op.lt',
'>=': 'Op.gte',
'<=': 'Op.lte',
like: 'Op.like',
notlike: 'Op.notLike',
'=': 'Op.eq',
'<>': 'Op.n'
};
const resulting_object = appendToAllAttributes(original_object, hash);
console.log(resulting_object);
//=>
{
'Op.gt': 23,
'Op.and': {
'Op.gt': 44,
'Op.lt': 46,
'Op.or': {
'Op.like': 'bye',
'Op.notLike': 'hello'
}
}
};
MIT © Fabio Espinosa
FAQs
Change names of all keys and subkeys given a hash table
We found that change-name-of-all-keys 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
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.