@studimax/ts
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@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} !

Package Sidebar

Install

npm i @studimax/ts

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

6 kB

Total Files

9

Last publish

Collaborators

  • maxscharwath