File: internal_stream.md

package info (click to toggle)
node-jszip 3.1.4%2Bdfsg-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,004 kB
  • sloc: javascript: 5,697; sh: 2; makefile: 2
file content (30 lines) | stat: -rw-r--r-- 673 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
title: "internalStream(type)"
layout: default
section: api
---

Return a [StreamHelper]({{site.baseurl}}/documentation/api_streamhelper.html)
of the content in the asked type.

__Returns__ : a [StreamHelper]({{site.baseurl}}/documentation/api_streamhelper.html)
of the content in the asked type.

## Arguments

name     | type     | description
---------|----------|------------
type     | String   | the type of the result: `string`, `binarystring`, `uint8array`, `arraybuffer`, `nodebuffer`.


## Example

```js
zip
.file("my_text.txt")
.internalStream("string")
.on("data", function (data) {...})
.on("error", function (e) {...})
.on("end", function () {...});
```