File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ var stringify = Stringify()
64
64
stringify .replacer = function () {}
65
65
stringify .space = 2
66
66
stringify .opener = ' ['
67
- stringify .seperator = ' ,'
67
+ stringify .separator = ' ,'
68
68
stringify .closer = ' ]'
69
69
stringify .stringifier = JSON .stringify
70
70
```
Original file line number Diff line number Diff line change @@ -27,13 +27,13 @@ function Stringify(options) {
27
27
28
28
// Array Deliminator and Stringifier defaults
29
29
var opener = options && options . opener ? options . opener : '[\n'
30
- var seperator = options && options . seperator ? options . seperator : '\n,\n'
30
+ var separator = options && options . separator ? options . separator : '\n,\n'
31
31
var closer = options && options . closer ? options . closer : '\n]\n'
32
32
var stringifier = options && options . stringifier ? options . stringifier : stringify
33
33
34
34
// Array Deliminators and Stringifier
35
35
this . opener = new Buffer ( opener , 'utf8' )
36
- this . seperator = new Buffer ( seperator , 'utf8' )
36
+ this . separator = new Buffer ( separator , 'utf8' )
37
37
this . closer = new Buffer ( closer , 'utf8' )
38
38
this . stringifier = stringifier
39
39
}
@@ -47,7 +47,7 @@ Stringify.prototype.space = 0
47
47
48
48
Stringify . prototype . _transform = function ( doc , enc , cb ) {
49
49
if ( this . started ) {
50
- this . push ( this . seperator )
50
+ this . push ( this . separator )
51
51
} else {
52
52
this . push ( this . opener )
53
53
this . started = true
Original file line number Diff line number Diff line change @@ -178,12 +178,12 @@ describe('Streamify()', function () {
178
178
stream . end ( obj )
179
179
} )
180
180
181
- it ( 'should allow custom seperators ' , function ( done ) {
181
+ it ( 'should allow custom separators ' , function ( done ) {
182
182
var stream = new PassThrough ( {
183
183
objectMode : true
184
184
} )
185
185
186
- var stringify = Stringify ( { seperator : ' , ' } )
186
+ var stringify = Stringify ( { separator : ' , ' } )
187
187
188
188
stream
189
189
. pipe ( stringify )
You can’t perform that action at this time.
0 commit comments