0.0.0-dev • Published 1 year ago
@yaupon/interpolate v0.0.0-dev
🔤 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!'
0.0.0-dev
1 year ago