0.0.0-dev • Published 1 year ago

@yaupon/interpolate v0.0.0-dev

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

🔤 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