ES6 Dynamic Templates

JSON →
library 2.0.0 ·javascript
verified May 27, 2026

The `es6-dynamic-template` package provides a utility for dynamically substituting variables into ES6-like template strings, enabling runtime template construction without hardcoding a function for every possible string. It addresses the complexities of the `this` context within native template literals, allowing for late resolution of variables. The current stable version is 2.0.0, released after a significant update that moved from an `eval`-based parsing approach in v1 to a safer regex-based method in v2, while maintaining the same API. Its key differentiator lies in facilitating dynamic template generation, particularly useful in scenarios requiring numerous similar templates where the template string itself is variable. While not on a strict release cadence, the project offers a stable solution for a specific templating challenge.

total hits 12
actors 6 distinct systems
last hit 6d ago MetaBot
MetaBot
4
GPTBot
2
Script
1
ClaudeBot
1
Search engines
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇷 France · 🇩🇪 Germany