
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
A lightweight string interpolation library for JavaScript.
Reckon JS is a simple library that enables using template strings in JavaScript (Browser or NodeJS).
Below are simple examples of how Reckon JS can be used:
Sample Data:
var scope = {
fullName: "John Doe",
age: 20,
ageNextYear: function() {
return this.age+1;
}
};
Reckon via string prototype:
/* */
var introduction = "My name is {{fullName}}, and next year, I will turn {{ageNextYear}}";
introduction = introduction.reckon(scope);
// My name is John, and next year, I will turn 21
Reckon via JS function: var introduction = "My name is {{fullName}}, and next year, I will turn {{ageNextYear}}"; introduction = reckon({text: introduction, scope: scope}); //returns a reckon object that can be output as string // My name is John, and next year, I will turn 21
npm install reckonjs
Sample Data:
var reckon = require('reckonjs');
var scope = {
fullName: "John Doe",
age: 20,
ageNextYear: function() {
return this.age+1;
}
};
Reckon via JS function: var introduction = "My name is {{fullName}}, and next year, I will turn {{ageNextYear}}"; introduction = reckon({text: introduction, scope: scope}); //returns a reckon object that can be output as string // My name is John, and next year, I will turn 21
Escaping strings:
Strings enclosed between {% and %} are not interpolated.
"My name is {% {{fullName}} %}".reckon(scope);
// My name is {{fullName}}
Custom delimiters:
var config = {
delimStart: '<<',
delimEnd: '>>'
}
var introduction = "My name is <<fullName>>".reckon(scope);
reckon().applyConfig(config).compile({text: introduction, scope: myScope});
ReckonJS is created by @ritenv. Contributions are open and welcome. For any issues, please raise it in the issues section and feel free to send pull requests to fix them.
FAQs
A lightweight string interpolation library for JavaScript
We found that reckonjs 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
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.