1.0.1 • Published 2 years ago

@studimax/ts v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@studimax/ts

npm Code: TypeScript Made By: StudiMax

A tiny template engine for JavaScript and TypeScript with no dependencies.

Installation

npm install @studimax/ts
# or
yarn add @studimax/ts

Usage

import ts from '@studimax/ts';

ts('Hello {world} !', {world: 'World'}) // Hello World !
ts('{a.small.hello} {a.big.world} !', {a: {small: {hello: 'hello'}, big: {world: 'WORLD'}}}) // hello WORLD !
ts('Hello {world} !', {}) // Hello {world} !