
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
Social Media Photo by Tobias Rademacher on Unsplash
Resolves template literals tag values before applying a generic tag.
import asyncTag from 'async-tag';
// or const asyncTag = require('asyncTag');
// or <script src="//unpkg.com/async-tag">
// example
const asyncRaw = asyncTag(String.raw);
// async values
asyncRaw`a${[
1,
[2, [Promise.resolve(3)], 4],
[5, 6]
]}${Promise.resolve(7)}c`
.then(result => {
console.assert(result === 'a1,2,3,4,5,67c')
});
// direct values
asyncRaw`a${'b'}c`
.then(result => {
console.assert(result === 'abc')
});
This module source code is written in a way that guarantees there won't be any code bloat once transpiled, without necessarily providing worse performance than native ES6+.
Both index.js and min.js target any client/server JavaScript engine, assuming there is support, or there is a polyfill, for:
Array.isArray(any) to work with nested interpolationsPromise.all(array) to resolve all interpolationsFunction.prototype.bind to be sure both context and template are expectedPlease note this module is pretty much done so, if there are not many updates in the long term, it's because it's 100% code covered and, for what it does, it won't likely need any change in the future.
FAQs
Resolves template literals tag values before applying a generic tag
The npm package async-tag receives a total of 1,719 weekly downloads. As such, async-tag popularity was classified as popular.
We found that async-tag 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
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.