Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/prmichaelsen/tempalte

Create type safe re-usable template strings.
https://github.com/prmichaelsen/tempalte

Last synced: 12 days ago
JSON representation

Create type safe re-usable template strings.

Awesome Lists containing this project

README

        

[![CI](https://github.com/prmichaelsen/tempalte/actions/workflows/main.yml/badge.svg)](https://github.com/prmichaelsen/tempalte/actions/workflows/main.yml)

## Tempalte [sic]

Create type safe re-usable template strings.

```typescript
const salute = tempalte<{
salutation: string,
entity: string,
}>()(
"${salutation} ${entity}!"
),

expect(salute({
salutation: 'Hello',
entity: 'Word',
}).toBe('Hello World!');
```