Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/prmichaelsen/tempalte
- Owner: prmichaelsen
- Created: 2023-09-16T06:38:47.000Z (over 1 year ago)
- Default Branch: mainline
- Last Pushed: 2023-09-18T02:01:05.000Z (over 1 year ago)
- Last Synced: 2024-12-25T02:12:34.815Z (15 days ago)
- Language: HTML
- Homepage: https://www.npmjs.com/package/@prmichaelsen/tempalte
- Size: 75.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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!');
```