@fluejs/txtag
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@fluejs/txtag

Small and lightweight library that helps you compile simple text templates. It can be useful for interpolation in dictionaries (e.g. i18n) or dynamic data substitution in text strings.

Documentation & demo

Installation

# npm
npm install --save-dev @fluejs/txtag

# yarn
yarn add -D @fluejs/txtag
import {compile} from '@fluejs/txtag';

compile('Hello, {name}!', { name: 'Joe' });

// result: "Hello, Joe!"

Readme

Keywords

none

Package Sidebar

Install

npm i @fluejs/txtag

Weekly Downloads

2

Version

1.0.1

License

UNLICENSED

Unpacked Size

22.3 kB

Total Files

16

Last publish

Collaborators

  • fl3nkey