Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
hbs-async-helpers
Advanced tools
Library that adds support for asynchronous function helpers to the handlebars template engine.
npm i hbs-async-helpers
const Handlebars = require("handlebars");
const asyncHelpers = require("hbs-async-helpers");
import Handlebars from 'handlebars',
import asyncHelpers from 'hbs-async-helpers';
const hb = asyncHelpers(handlebars);
hb.registerHelper(
"sleep",
async () =>
new Promise((resolve) => {
setTimeout(() => resolve("Done!"), 1000);
})
);
const template = hb.compile("Mark when is completed: {{#sleep}}{{/sleep}}");
const result = await template();
console.log(result);
// 'Mark when is completed: Done!'
This package has been forked from handlebars-async-helpers originally created and maintained by Gaston Robledo.
FAQs
Adds support for async functions to handlebars
The npm package hbs-async-helpers receives a total of 153 weekly downloads. As such, hbs-async-helpers popularity was classified as not popular.
We found that hbs-async-helpers demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.