-
Notifications
You must be signed in to change notification settings - Fork 16
/
deno_stream_slice.deno.txt
23 lines (16 loc) · 1.63 KB
/
deno_stream_slice.deno.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
DENO_STREAM_SLICE
VERSION ==> #Part of Deno
#Browser compatible
@std/streams/byte_slice_stream.ts #
new ByteSliceStream([NUM[, NUM2]])#TSTREAM that drops any bytes before offset NUM (def: 0) or after NUM2 (def: end)
@std/streams/
limited_transform_stream.ts #
new LimitedTransformStream
(NUM[, OPTS]) #TSTREAM that drops any chunk after index NUM
@std/streams/
limited_bytes_transform_stream.ts#
new LimitedBytesTransformStream
(NUM[, OPTS]) #Same but using bytes length NUM instead
OPTS.error #BOOL (def: false). Throw once limit is reached instead.