
Security News
CISA Kills Off RSS Feeds for KEVs and Cyber Alerts
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
#jsonSub Lightweight module for substitution in json object. Use {{placeholder}} (double curly braces) to define your placeholder in the json object and the variables object.
npm install json-sub
var jsonSub = require('json-sub')();
var json = [{
method : 'get',
path : '/reports/{{campaign_id}}/members',
},
{
method : 'get',
path : '/city/{{store_id}}/turnover',
}];
var variables = {
'{{campaign_id}}' : 'mc1234567d',
'{{store_id}}' : 76890
}
// Substitution
var jsonSub(json, variables, function(result) {
console.log(result);
});
// OUTPUTS
/* [
{ method: 'get', path: '/reports/mc1234567d/members' },
{ method: 'get', path: '/city/76890/turnover' }
] */
var jsonSub = require('json-sub')();
// In Synchronous mode
var result = jsonSub.SubSync(json, variables);
FAQs
Substitute placeholders in json Objects && javascript Object.
The npm package json-sub receives a total of 0 weekly downloads. As such, json-sub popularity was classified as not popular.
We found that json-sub 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
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
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.