
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
A super simple template for node, to use in simple apps and libraries
0.2.0 - Incorporate deep replacement for objects (or understanding dot notation) 0.1.0 - Initial release, simple replacement of prop in objects or values passed as arrays
This is a very simple library to use in libraries and small application that don't need a full fledge template system.
If you are planning to build large documents with it, you are out of luck. For those cases use some of the existing templating systems in node. eg: ejs, jade, mustache.
This library is mostly to template short strings or small paragraphs.
npm install untokenize
Create a untokenize calling create.
var untokenize = require('untokenize').create();
Replace tokens in code given values as an object literal (or hash) where the tokens in the string are the properties (keys) in the object.
untokenize.render("The fox jumped over the {{barrier}}", {barrier: "fence"});
//The fox jumped over the fence.
You can also use positional tokens and use an array to pass the values.
untokenize.render("The {{1}} jumped over the {{0}}", ["fence", "fox"]);
//The fox jumped over the fence.
Or nested objects (as of 0.2.0)
untokenize.render("The fox jumped over the {{barrier.type}}", {barrier: {type: "fence"}});
//The fox jumped over the fence.
Replaces are globals so you can use the token or position multiple times in the string and all occurrences will be replaced.
There is only one customization, but should be used with care. You can replace the token delimiters when creating a new untokenize.
Be careful, some characters may not work well as delimiters, so try and test before settling on a new set.
var untokenize = require('untokenize').create({startToken: '<%', endToken: '%>'});
untokenize.render("Using the new <%name%>", {name: "tokens"});
//Using the new tokens
FAQs
A very, very simple template engine for simple uses.
We found that untokenize 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.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.