
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
JSOMap is yet another mapping and templating library for javascript objects.
Install it from the npm repository:
npm install --save jsomap
Then require it in your project:
const { JSOMap } = require('jsomap')
console.log(new JSOMap({ text: 'Hello, world!' }, { print: '[text]' }))
Data from the input object can be referred to in macros and properties using square-bracket syntax. For example, if the input has a property text, it can be selected in a template like:
{ "print": "[text]" }
Templating functionality is provided by the JSOMacro class. The class is extensible by directly calling the JSOMap.addMacro() function.
Built-in macros are provided by class Macro, which class JSMacro extends. Documentation for all built-in macros are available can be found at Macro.
Function JSOMap.addMacro() can be used to directly add more macros at runtime. See JSOMap for examples.
Macros are referred to by enclosing in curly braces:
{ "print": "{Date()}" }
Selectors and macros may have their output piped to other macros; this is called a 'pipe macro':
{ "print": "{[text] | Split(/ (.+))}" }
Pipe macros must have each selector or macro separated by a space, a pipe, and another space. This is enforced for readability; piped macros not coforming to this standard will break.
FAQs
A JavaScript Object mapping and templating language.
The npm package jsomap receives a total of 2 weekly downloads. As such, jsomap popularity was classified as not popular.
We found that jsomap 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
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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.