through2 2.0.3 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nyc_output/28dcebf0-9c4a-47bb-900e-93fcef37bbe2.json +1 -0
- package/LICENSE.md +2 -2
- package/README.md +8 -10
- package/package.json +8 -9
- package/through2.js +3 -4
- package/.npmignore +0 -3
- package/LICENSE.html +0 -336
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"/Users/rvagg/git/through2/through2.js":{"path":"/Users/rvagg/git/through2/through2.js","statementMap":{"0":{"start":{"line":1,"column":16},"end":{"line":1,"column":52}},"1":{"start":{"line":2,"column":16},"end":{"line":2,"column":40}},"2":{"start":{"line":5,"column":2},"end":{"line":5,"column":28}},"3":{"start":{"line":6,"column":2},"end":{"line":6,"column":25}},"4":{"start":{"line":9,"column":0},"end":{"line":9,"column":41}},"5":{"start":{"line":11,"column":0},"end":{"line":21,"column":1}},"6":{"start":{"line":12,"column":2},"end":{"line":12,"column":29}},"7":{"start":{"line":12,"column":23},"end":{"line":12,"column":29}},"8":{"start":{"line":13,"column":2},"end":{"line":13,"column":24}},"9":{"start":{"line":15,"column":13},"end":{"line":15,"column":17}},"10":{"start":{"line":16,"column":2},"end":{"line":20,"column":4}},"11":{"start":{"line":17,"column":4},"end":{"line":18,"column":29}},"12":{"start":{"line":18,"column":6},"end":{"line":18,"column":29}},"13":{"start":{"line":19,"column":4},"end":{"line":19,"column":22}},"14":{"start":{"line":25,"column":2},"end":{"line":25,"column":23}},"15":{"start":{"line":32,"column":2},"end":{"line":46,"column":3}},"16":{"start":{"line":33,"column":4},"end":{"line":37,"column":5}},"17":{"start":{"line":34,"column":6},"end":{"line":34,"column":27}},"18":{"start":{"line":35,"column":6},"end":{"line":35,"column":25}},"19":{"start":{"line":36,"column":6},"end":{"line":36,"column":20}},"20":{"start":{"line":39,"column":4},"end":{"line":40,"column":22}},"21":{"start":{"line":40,"column":6},"end":{"line":40,"column":22}},"22":{"start":{"line":42,"column":4},"end":{"line":43,"column":18}},"23":{"start":{"line":43,"column":6},"end":{"line":43,"column":18}},"24":{"start":{"line":45,"column":4},"end":{"line":45,"column":47}},"25":{"start":{"line":51,"column":0},"end":{"line":60,"column":2}},"26":{"start":{"line":52,"column":11},"end":{"line":52,"column":44}},"27":{"start":{"line":54,"column":2},"end":{"line":54,"column":27}},"28":{"start":{"line":56,"column":2},"end":{"line":57,"column":21}},"29":{"start":{"line":57,"column":4},"end":{"line":57,"column":21}},"30":{"start":{"line":59,"column":2},"end":{"line":59,"column":11}},"31":{"start":{"line":65,"column":0},"end":{"line":83,"column":2}},"32":{"start":{"line":67,"column":4},"end":{"line":68,"column":35}},"33":{"start":{"line":68,"column":6},"end":{"line":68,"column":35}},"34":{"start":{"line":70,"column":4},"end":{"line":70,"column":55}},"35":{"start":{"line":72,"column":4},"end":{"line":72,"column":49}},"36":{"start":{"line":75,"column":2},"end":{"line":75,"column":42}},"37":{"start":{"line":77,"column":2},"end":{"line":77,"column":43}},"38":{"start":{"line":79,"column":2},"end":{"line":80,"column":37}},"39":{"start":{"line":80,"column":4},"end":{"line":80,"column":37}},"40":{"start":{"line":82,"column":2},"end":{"line":82,"column":17}},"41":{"start":{"line":86,"column":0},"end":{"line":95,"column":2}},"42":{"start":{"line":87,"column":11},"end":{"line":87,"column":100}},"43":{"start":{"line":89,"column":2},"end":{"line":89,"column":27}},"44":{"start":{"line":91,"column":2},"end":{"line":92,"column":21}},"45":{"start":{"line":92,"column":4},"end":{"line":92,"column":21}},"46":{"start":{"line":94,"column":2},"end":{"line":94,"column":11}}},"fnMap":{"0":{"name":"DestroyableTransform","decl":{"start":{"line":4,"column":9},"end":{"line":4,"column":29}},"loc":{"start":{"line":4,"column":36},"end":{"line":7,"column":1}},"line":4},"1":{"name":"(anonymous_1)","decl":{"start":{"line":11,"column":41},"end":{"line":11,"column":42}},"loc":{"start":{"line":11,"column":55},"end":{"line":21,"column":1}},"line":11},"2":{"name":"(anonymous_2)","decl":{"start":{"line":16,"column":19},"end":{"line":16,"column":20}},"loc":{"start":{"line":16,"column":30},"end":{"line":20,"column":3}},"line":16},"3":{"name":"noop","decl":{"start":{"line":24,"column":9},"end":{"line":24,"column":13}},"loc":{"start":{"line":24,"column":37},"end":{"line":26,"column":1}},"line":24},"4":{"name":"through2","decl":{"start":{"line":31,"column":9},"end":{"line":31,"column":17}},"loc":{"start":{"line":31,"column":30},"end":{"line":47,"column":1}},"line":31},"5":{"name":"(anonymous_5)","decl":{"start":{"line":32,"column":9},"end":{"line":32,"column":10}},"loc":{"start":{"line":32,"column":46},"end":{"line":46,"column":3}},"line":32},"6":{"name":"(anonymous_6)","decl":{"start":{"line":51,"column":26},"end":{"line":51,"column":27}},"loc":{"start":{"line":51,"column":63},"end":{"line":60,"column":1}},"line":51},"7":{"name":"(anonymous_7)","decl":{"start":{"line":65,"column":31},"end":{"line":65,"column":32}},"loc":{"start":{"line":65,"column":68},"end":{"line":83,"column":1}},"line":65},"8":{"name":"Through2","decl":{"start":{"line":66,"column":11},"end":{"line":66,"column":19}},"loc":{"start":{"line":66,"column":31},"end":{"line":73,"column":3}},"line":66},"9":{"name":"(anonymous_9)","decl":{"start":{"line":86,"column":30},"end":{"line":86,"column":31}},"loc":{"start":{"line":86,"column":67},"end":{"line":95,"column":1}},"line":86}},"branchMap":{"0":{"loc":{"start":{"line":12,"column":2},"end":{"line":12,"column":29}},"type":"if","locations":[{"start":{"line":12,"column":2},"end":{"line":12,"column":29}},{"start":{"line":12,"column":2},"end":{"line":12,"column":29}}],"line":12},"1":{"loc":{"start":{"line":17,"column":4},"end":{"line":18,"column":29}},"type":"if","locations":[{"start":{"line":17,"column":4},"end":{"line":18,"column":29}},{"start":{"line":17,"column":4},"end":{"line":18,"column":29}}],"line":17},"2":{"loc":{"start":{"line":33,"column":4},"end":{"line":37,"column":5}},"type":"if","locations":[{"start":{"line":33,"column":4},"end":{"line":37,"column":5}},{"start":{"line":33,"column":4},"end":{"line":37,"column":5}}],"line":33},"3":{"loc":{"start":{"line":39,"column":4},"end":{"line":40,"column":22}},"type":"if","locations":[{"start":{"line":39,"column":4},"end":{"line":40,"column":22}},{"start":{"line":39,"column":4},"end":{"line":40,"column":22}}],"line":39},"4":{"loc":{"start":{"line":42,"column":4},"end":{"line":43,"column":18}},"type":"if","locations":[{"start":{"line":42,"column":4},"end":{"line":43,"column":18}},{"start":{"line":42,"column":4},"end":{"line":43,"column":18}}],"line":42},"5":{"loc":{"start":{"line":56,"column":2},"end":{"line":57,"column":21}},"type":"if","locations":[{"start":{"line":56,"column":2},"end":{"line":57,"column":21}},{"start":{"line":56,"column":2},"end":{"line":57,"column":21}}],"line":56},"6":{"loc":{"start":{"line":67,"column":4},"end":{"line":68,"column":35}},"type":"if","locations":[{"start":{"line":67,"column":4},"end":{"line":68,"column":35}},{"start":{"line":67,"column":4},"end":{"line":68,"column":35}}],"line":67},"7":{"loc":{"start":{"line":79,"column":2},"end":{"line":80,"column":37}},"type":"if","locations":[{"start":{"line":79,"column":2},"end":{"line":80,"column":37}},{"start":{"line":79,"column":2},"end":{"line":80,"column":37}}],"line":79},"8":{"loc":{"start":{"line":91,"column":2},"end":{"line":92,"column":21}},"type":"if","locations":[{"start":{"line":91,"column":2},"end":{"line":92,"column":21}},{"start":{"line":91,"column":2},"end":{"line":92,"column":21}}],"line":91}},"s":{"0":1,"1":1,"2":16,"3":16,"4":1,"5":1,"6":3,"7":1,"8":2,"9":2,"10":2,"11":2,"12":0,"13":2,"14":0,"15":3,"16":15,"17":8,"18":8,"19":8,"20":15,"21":2,"22":15,"23":14,"24":15,"25":1,"26":6,"27":6,"28":6,"29":1,"30":6,"31":1,"32":16,"33":7,"34":9,"35":9,"36":8,"37":8,"38":8,"39":0,"40":8,"41":1,"42":1,"43":1,"44":1,"45":0,"46":1},"f":{"0":16,"1":3,"2":2,"3":0,"4":3,"5":15,"6":6,"7":8,"8":16,"9":1},"b":{"0":[1,2],"1":[0,2],"2":[8,7],"3":[2,13],"4":[14,1],"5":[1,5],"6":[7,9],"7":[0,8],"8":[0,1]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"0e6d9c139041e468222a5271346b1d4b44840ea4","contentHash":"e8d9fa1f16cd3fbb5bfdcbe9002323f0"}}
|
package/LICENSE.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
**Copyright (c)
|
|
3
|
+
**Copyright (c) Rod Vagg (the "Original Author") and additional contributors**
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
6
|
|
|
7
7
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
8
|
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://nodei.co/npm/through2/)
|
|
4
4
|
|
|
5
|
-
**A tiny wrapper around Node streams.Transform (Streams2) to avoid explicit subclassing noise**
|
|
5
|
+
**A tiny wrapper around Node.js streams.Transform (Streams2/3) to avoid explicit subclassing noise**
|
|
6
6
|
|
|
7
7
|
Inspired by [Dominic Tarr](https://github.com/dominictarr)'s [through](https://github.com/dominictarr/through) in that it's so much easier to make a stream out of a function than it is to set up the prototype chain properly: `through(function (chunk) { ... })`.
|
|
8
8
|
|
|
9
|
-
Note:
|
|
9
|
+
***Note: Users of Node.js 0.10 and 0.12 should install `through2@2.x`. As of through2@3.x, readable-stream@3 is being used and is not compatible with older versions of Node.js.*** _v2.x support is being maintained on the [v2.x](https://github.com/rvagg/through2/tree/v2.x) branch._
|
|
10
10
|
|
|
11
11
|
```js
|
|
12
12
|
fs.createReadStream('ex.txt')
|
|
@@ -20,9 +20,7 @@ fs.createReadStream('ex.txt')
|
|
|
20
20
|
callback()
|
|
21
21
|
}))
|
|
22
22
|
.pipe(fs.createWriteStream('out.txt'))
|
|
23
|
-
.on('finish',
|
|
24
|
-
doSomethingSpecial()
|
|
25
|
-
})
|
|
23
|
+
.on('finish', () => doSomethingSpecial())
|
|
26
24
|
```
|
|
27
25
|
|
|
28
26
|
Or object streams:
|
|
@@ -42,10 +40,10 @@ fs.createReadStream('data.csv')
|
|
|
42
40
|
|
|
43
41
|
callback()
|
|
44
42
|
}))
|
|
45
|
-
.on('data',
|
|
43
|
+
.on('data', (data) => {
|
|
46
44
|
all.push(data)
|
|
47
45
|
})
|
|
48
|
-
.on('end',
|
|
46
|
+
.on('end', () => {
|
|
49
47
|
doSomethingSpecial(all)
|
|
50
48
|
})
|
|
51
49
|
```
|
|
@@ -67,7 +65,7 @@ The `options` argument is first, unlike standard convention, because if I'm pass
|
|
|
67
65
|
```js
|
|
68
66
|
fs.createReadStream('/tmp/important.dat')
|
|
69
67
|
.pipe(through2({ objectMode: true, allowHalfOpen: false },
|
|
70
|
-
|
|
68
|
+
(chunk, enc, cb) => {
|
|
71
69
|
cb(null, 'wut?') // note we can use the second argument on the callback
|
|
72
70
|
// to provide data as an alternative to this.push('wut?')
|
|
73
71
|
}
|
|
@@ -92,7 +90,7 @@ The optional `flushFunction` is provided as the last argument (2nd or 3rd, depen
|
|
|
92
90
|
```js
|
|
93
91
|
fs.createReadStream('/tmp/important.dat')
|
|
94
92
|
.pipe(through2(
|
|
95
|
-
|
|
93
|
+
(chunk, enc, cb) => cb(null, chunk), // transform is a noop
|
|
96
94
|
function (cb) { // flush function
|
|
97
95
|
this.push('tacking on an extra buffer to the end');
|
|
98
96
|
cb();
|
|
@@ -133,4 +131,4 @@ var converter = FToC({objectMode: true})
|
|
|
133
131
|
|
|
134
132
|
## License
|
|
135
133
|
|
|
136
|
-
**through2** is Copyright (c)
|
|
134
|
+
**through2** is Copyright (c) Rod Vagg and additional contributors and licensed under the MIT license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE file for more details.
|
package/package.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "through2",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "A tiny wrapper around Node
|
|
3
|
+
"version": "3.0.1",
|
|
4
|
+
"description": "A tiny wrapper around Node.js streams.Transform (Streams2/3) to avoid explicit subclassing noise",
|
|
5
5
|
"main": "through2.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"test": "node test/test.js | faucet"
|
|
8
|
-
"test-local": "brtapsauce-local test/basic-test.js"
|
|
7
|
+
"test": "nyc node test/test.js | faucet && nyc report"
|
|
9
8
|
},
|
|
10
9
|
"repository": {
|
|
11
10
|
"type": "git",
|
|
@@ -20,13 +19,13 @@
|
|
|
20
19
|
"author": "Rod Vagg <r@va.gg> (https://github.com/rvagg)",
|
|
21
20
|
"license": "MIT",
|
|
22
21
|
"dependencies": {
|
|
23
|
-
"readable-stream": "
|
|
24
|
-
"xtend": "~4.0.1"
|
|
22
|
+
"readable-stream": "2 || 3"
|
|
25
23
|
},
|
|
26
24
|
"devDependencies": {
|
|
27
|
-
"bl": "~
|
|
25
|
+
"bl": "~2.0.1",
|
|
28
26
|
"faucet": "0.0.1",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
27
|
+
"nyc": "~13.1.0",
|
|
28
|
+
"stream-spigot": "~3.0.6",
|
|
29
|
+
"tape": "~4.9.1"
|
|
31
30
|
}
|
|
32
31
|
}
|
package/through2.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
var Transform = require('readable-stream
|
|
1
|
+
var Transform = require('readable-stream').Transform
|
|
2
2
|
, inherits = require('util').inherits
|
|
3
|
-
, xtend = require('xtend')
|
|
4
3
|
|
|
5
4
|
function DestroyableTransform(opts) {
|
|
6
5
|
Transform.call(this, opts)
|
|
@@ -68,7 +67,7 @@ module.exports.ctor = through2(function (options, transform, flush) {
|
|
|
68
67
|
if (!(this instanceof Through2))
|
|
69
68
|
return new Through2(override)
|
|
70
69
|
|
|
71
|
-
this.options =
|
|
70
|
+
this.options = Object.assign({}, options, override)
|
|
72
71
|
|
|
73
72
|
DestroyableTransform.call(this, this.options)
|
|
74
73
|
}
|
|
@@ -85,7 +84,7 @@ module.exports.ctor = through2(function (options, transform, flush) {
|
|
|
85
84
|
|
|
86
85
|
|
|
87
86
|
module.exports.obj = through2(function (options, transform, flush) {
|
|
88
|
-
var t2 = new DestroyableTransform(
|
|
87
|
+
var t2 = new DestroyableTransform(Object.assign({ objectMode: true, highWaterMark: 16 }, options))
|
|
89
88
|
|
|
90
89
|
t2._transform = transform
|
|
91
90
|
|
package/.npmignore
DELETED
package/LICENSE.html
DELETED
|
@@ -1,336 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<!-- Created with GFM2HTML: https://github.com/rvagg/gfm2html -->
|
|
3
|
-
<html lang="en">
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="utf-8">
|
|
6
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
7
|
-
<title></title>
|
|
8
|
-
<meta name="description" content="">
|
|
9
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
10
|
-
<meta name="created-with" content="https://github.com/rvagg/gfm2html">
|
|
11
|
-
|
|
12
|
-
<style type="text/css">
|
|
13
|
-
/* most of normalize.css */
|
|
14
|
-
article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block;}[hidden],template{display:none;}html{font-family:sans-serif;/*1*/-ms-text-size-adjust:100%;/*2*/-webkit-text-size-adjust:100%;/*2*/}body{margin:0;}a{background:transparent;}a:focus{outline:thindotted;}a:active,a:hover{outline:0;}h1{font-size:2em;margin:0.67em0;}abbr[title]{border-bottom:1pxdotted;}b,strong{font-weight:bold;}dfn{font-style:italic;}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0;}mark{background:#ff0;color:#000;}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em;}pre{white-space:pre-wrap;}q{quotes:"\201C""\201D""\2018""\2019";}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sup{top:-0.5em;}sub{bottom:-0.25em;}img{border:0;}svg:not(:root){overflow:hidden;}table{border-collapse:collapse;border-spacing:0;}
|
|
15
|
-
|
|
16
|
-
html {
|
|
17
|
-
font: 14px 'Helvetica Neue', Helvetica, arial, freesans, clean, sans-serif;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.container {
|
|
21
|
-
line-height: 1.6;
|
|
22
|
-
color: #333;
|
|
23
|
-
background: #eee;
|
|
24
|
-
border-radius: 3px;
|
|
25
|
-
padding: 3px;
|
|
26
|
-
width: 790px;
|
|
27
|
-
margin: 10px auto;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.body-content {
|
|
31
|
-
background-color: #fff;
|
|
32
|
-
border: 1px solid #CACACA;
|
|
33
|
-
padding: 30px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.body-content > *:first-child {
|
|
37
|
-
margin-top: 0 !important;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
a, a:visited {
|
|
41
|
-
color: #4183c4;
|
|
42
|
-
text-decoration: none;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
a:hover {
|
|
46
|
-
text-decoration: underline;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
p, blockquote, ul, ol, dl, table, pre {
|
|
50
|
-
margin: 15px 0;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.markdown-body h1
|
|
54
|
-
, .markdown-body h2
|
|
55
|
-
, .markdown-body h3
|
|
56
|
-
, .markdown-body h4
|
|
57
|
-
, .markdown-body h5
|
|
58
|
-
, .markdown-body h6 {
|
|
59
|
-
margin: 20px 0 10px;
|
|
60
|
-
padding: 0;
|
|
61
|
-
font-weight: bold;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
h1 {
|
|
65
|
-
font-size: 2.5em;
|
|
66
|
-
color: #000;
|
|
67
|
-
border-bottom: 1px solid #ddd;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
h2 {
|
|
71
|
-
font-size: 2em;
|
|
72
|
-
border-bottom: 1px solid #eee;
|
|
73
|
-
color: #000;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
img {
|
|
77
|
-
max-width: 100%;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
hr {
|
|
81
|
-
background: transparent url("/img/hr.png") repeat-x 0 0;
|
|
82
|
-
border: 0 none;
|
|
83
|
-
color: #ccc;
|
|
84
|
-
height: 4px;
|
|
85
|
-
padding: 0;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
table {
|
|
89
|
-
border-collapse: collapse;
|
|
90
|
-
border-spacing: 0;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
tr:nth-child(2n) {
|
|
94
|
-
background-color: #f8f8f8;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.markdown-body tr {
|
|
98
|
-
border-top: 1px solid #ccc;
|
|
99
|
-
background-color: #fff;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
td, th {
|
|
103
|
-
border: 1px solid #ccc;
|
|
104
|
-
padding: 6px 13px;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
th {
|
|
108
|
-
font-weight: bold;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
blockquote {
|
|
112
|
-
border-left: 4px solid #ddd;
|
|
113
|
-
padding: 0 15px;
|
|
114
|
-
color: #777;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
blockquote > :last-child, blockquote > :first-child {
|
|
118
|
-
margin-bottom: 0px;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
pre, code {
|
|
122
|
-
font-size: 13px;
|
|
123
|
-
font-family: 'UbuntuMono', monospace;
|
|
124
|
-
white-space: nowrap;
|
|
125
|
-
margin: 0 2px;
|
|
126
|
-
padding: 0px 5px;
|
|
127
|
-
border: 1px solid #eaeaea;
|
|
128
|
-
background-color: #f8f8f8;
|
|
129
|
-
border-radius: 3px;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
pre > code {
|
|
133
|
-
white-space: pre;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
pre {
|
|
137
|
-
overflow-x: auto;
|
|
138
|
-
white-space: pre;
|
|
139
|
-
padding: 10px;
|
|
140
|
-
line-height: 150%;
|
|
141
|
-
background-color: #f8f8f8;
|
|
142
|
-
border-color: #ccc;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
pre code, pre tt {
|
|
146
|
-
margin: 0;
|
|
147
|
-
padding: 0;
|
|
148
|
-
border: 0;
|
|
149
|
-
background-color: transparent;
|
|
150
|
-
border: none;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.highlight .c
|
|
154
|
-
, .highlight .cm
|
|
155
|
-
, .highlight .cp
|
|
156
|
-
, .highlight .c1 {
|
|
157
|
-
color:#999988;
|
|
158
|
-
font-style:italic;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.highlight .err {
|
|
162
|
-
color:#a61717;
|
|
163
|
-
background-color:#e3d2d2
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.highlight .o
|
|
167
|
-
, .highlight .gs
|
|
168
|
-
, .highlight .kc
|
|
169
|
-
, .highlight .kd
|
|
170
|
-
, .highlight .kn
|
|
171
|
-
, .highlight .kp
|
|
172
|
-
, .highlight .kr {
|
|
173
|
-
font-weight:bold
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.highlight .cs {
|
|
177
|
-
color:#999999;
|
|
178
|
-
font-weight:bold;
|
|
179
|
-
font-style:italic
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.highlight .gd {
|
|
183
|
-
color:#000000;
|
|
184
|
-
background-color:#ffdddd
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.highlight .gd .x {
|
|
188
|
-
color:#000000;
|
|
189
|
-
background-color:#ffaaaa
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
.highlight .ge {
|
|
193
|
-
font-style:italic
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.highlight .gr
|
|
197
|
-
, .highlight .gt {
|
|
198
|
-
color:#aa0000
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.highlight .gh
|
|
202
|
-
, .highlight .bp {
|
|
203
|
-
color:#999999
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
.highlight .gi {
|
|
207
|
-
color:#000000;
|
|
208
|
-
background-color:#ddffdd
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.highlight .gi .x {
|
|
212
|
-
color:#000000;
|
|
213
|
-
background-color:#aaffaa
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
.highlight .go {
|
|
217
|
-
color:#888888
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
.highlight .gp
|
|
221
|
-
, .highlight .nn {
|
|
222
|
-
color:#555555
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
.highlight .gu {
|
|
227
|
-
color:#800080;
|
|
228
|
-
font-weight:bold
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
.highlight .kt {
|
|
233
|
-
color:#445588;
|
|
234
|
-
font-weight:bold
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.highlight .m
|
|
238
|
-
, .highlight .mf
|
|
239
|
-
, .highlight .mh
|
|
240
|
-
, .highlight .mi
|
|
241
|
-
, .highlight .mo
|
|
242
|
-
, .highlight .il {
|
|
243
|
-
color:#009999
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.highlight .s
|
|
247
|
-
, .highlight .sb
|
|
248
|
-
, .highlight .sc
|
|
249
|
-
, .highlight .sd
|
|
250
|
-
, .highlight .s2
|
|
251
|
-
, .highlight .se
|
|
252
|
-
, .highlight .sh
|
|
253
|
-
, .highlight .si
|
|
254
|
-
, .highlight .sx
|
|
255
|
-
, .highlight .s1 {
|
|
256
|
-
color:#d14
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
.highlight .n {
|
|
260
|
-
color:#333333
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
.highlight .na
|
|
264
|
-
, .highlight .no
|
|
265
|
-
, .highlight .nv
|
|
266
|
-
, .highlight .vc
|
|
267
|
-
, .highlight .vg
|
|
268
|
-
, .highlight .vi
|
|
269
|
-
, .highlight .nb {
|
|
270
|
-
color:#0086B3
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.highlight .nc {
|
|
274
|
-
color:#445588;
|
|
275
|
-
font-weight:bold
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
.highlight .ni {
|
|
279
|
-
color:#800080
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
.highlight .ne
|
|
283
|
-
, .highlight .nf {
|
|
284
|
-
color:#990000;
|
|
285
|
-
font-weight:bold
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
.highlight .nt {
|
|
289
|
-
color:#000080
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
.highlight .ow {
|
|
293
|
-
font-weight:bold
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
.highlight .w {
|
|
297
|
-
color:#bbbbbb
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
.highlight .sr {
|
|
301
|
-
color:#009926
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
.highlight .ss {
|
|
305
|
-
color:#990073
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
.highlight .gc {
|
|
309
|
-
color:#999;
|
|
310
|
-
background-color:#EAF2F5
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
@media print {
|
|
314
|
-
.container {
|
|
315
|
-
background: transparent;
|
|
316
|
-
border-radius: 0;
|
|
317
|
-
padding: 0;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
.body-content {
|
|
321
|
-
border: none;
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
</style>
|
|
325
|
-
</head>
|
|
326
|
-
<body>
|
|
327
|
-
<div class="container">
|
|
328
|
-
<div class="body-content"><h1 id="the-mit-license-mit-">The MIT License (MIT)</h1>
|
|
329
|
-
<p><strong>Copyright (c) 2016 Rod Vagg (the "Original Author") and additional contributors</strong></p>
|
|
330
|
-
<p>Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:</p>
|
|
331
|
-
<p>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.</p>
|
|
332
|
-
<p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</p>
|
|
333
|
-
</div>
|
|
334
|
-
</div>
|
|
335
|
-
</body>
|
|
336
|
-
</html>
|