Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F969308
README.md
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
489 B
Referenced Files
None
Subscribers
None
README.md
View Options
#
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
Details
Attached
Mime Type
text/x-java
Expires
Fri, Nov 22, 12:50 (12 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
547605
Default Alt Text
README.md (489 B)
Attached To
Mode
rSTREAM tempstream
Attached
Detach File
Event Timeline
Log In to Comment