Codebase list node-stream-array / upstream/1.1.2+git20160430.1.707f590
Import upstream version 1.1.2+git20160430.1.707f590 Debian Janitor 2 years ago
4 changed file(s) with 3 addition(s) and 65 deletion(s). Raw diff Collapse all Expand all
+0
-13
.gitignore less more
0 *.*~
1 *.seed
2 *.log
3 *.csv
4 *.dat
5 *.out
6 *.swp
7 *.pid
8 *.gz
9 *.tgz
10
11 node_modules
12 npm-debug.log
+0
-13
.npmignore less more
0 *.*~
1 *.seed
2 *.log
3 *.csv
4 *.dat
5 *.out
6 *.swp
7 *.pid
8 *.gz
9 *.tgz
10 *.lock
11
12 .travis.yml
+0
-36
.travis.yml less more
0 sudo: false
1
2 language: node_js
3
4 notifications:
5 email: false
6
7 before_install:
8 - npm install -g npm@2
9 - npm install -g npm
10 - '[ "${TRAVIS_NODE_VERSION}" == "0.8" -o "${TRAVIS_NODE_VERSION}" == "0.10" ] || npm install -g covert'
11
12 matrix:
13 fast_finish: true
14 include:
15 - node_js: '0.8'
16 env: TASK=test
17 - node_js: '0.10'
18 env: TASK=test
19 - node_js: '0.12'
20 env: TASK=coverage
21 - node_js: '1'
22 env: TASK=coverage
23 - node_js: '2'
24 env: TASK=coverage
25 - node_js: '3'
26 env: TASK=coverage
27 - node_js: '4'
28 env: TASK=coverage
29 - node_js: '5'
30 env: TASK=coverage
31 - node_js: '6'
32 env: TASK=coverage
33
34 script: "npm run $TASK"
35
2727 The result of [require][13] is a 'function()' that when invoked, will return a
2828 [Readable][11] [Stream][12].
2929
30 ```
30 ```js
3131 var streamify = require('stream-array');
3232 ```
3333
3535 stream can handle it. Each element in the array will be [pushed][14] into the
3636 [piped][15] stream, **without** modifying the source array.
3737
38 ```
38 ```js
3939 var readable = streamify(['Hello', new Buffer('World')]);
4040 ```
4141
4242 This [Stream][12] will [push][14] each element of the source array into the
4343 [piped][15] array.
4444
45 ```
45 ```js
4646 readable(['1', '2', '3', os.EOL]).pipe(process.stdout);
4747 ```
4848