@yaupon/interpolate
v0.0.0-dev
Published
Interpolation is a process of replacing placeholders in a string with values. This package provides a simple and efficient way to interpolate strings in JavaScript, this library is based on `liquidjs`
Downloads
2
Readme
🔤 Interpolate
Interpolation is a process of replacing placeholders in a string with values.
This package provides a simple and efficient way to interpolate strings in JavaScript, this library is based on liquidjs
.
- [ ] Typed Template Literals
import { interpolate } from '@yaupon/interpolate';
let template = 'Hello, {{ name }}!';
let result = interpolate(template, { name: 'World' });
// result === 'Hello, World!'