Interpolate-ES
A small, easy-to-use template literal builder. Good for loading template literal strings from external sources.
features
- ECMAScript Module
- CommonJS Bundle Included
- Typescript Compatible
- Tiny Footprint (1K)
Installation
npm install interpolate-es
import Interpolate from 'interpolate-es';
Interpolate()
Builds a string from a template string + tags collection.
Arguments
Interpolate(template, {tags})
- template - the template literal string
- tags - the tagged values in the template
CommonJS
A .cjs
bundle is included for CommonJS compatibility
const Interpolate = require('interpolate-es');
Typings
Typings are generated from JSDoc using Typescript. They are 100% compatible with VSCode Intellisense and will work seamlessly with Typescript.