Page MenuHomeSealhub

README.md
No OneTemporary

README.md

# Tempstream
Better templating in js:
- renders to a stream instead of a string, so for example an HTML response can start being sent before all of it is rendered
- takes promises as values and awaits them automatically
- takes arrays as values and joins them with `\n` automatically
## Usage:
```
lang=ts
import {tempstream} from "tempstream";
const name = Promise.resolve("John");
const result = tempstream/* HTML */`Hello, ${name}`; // returns a stream with "Hello, John"
```

File Metadata

Mime Type
text/x-java
Expires
Sat, Nov 23, 17:17 (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
547605
Default Alt Text
README.md (489 B)

Event Timeline