function SplitStream( options ) {
	var opts;
	var err;
	if ( !( this instanceof SplitStream ) ) {
		if ( arguments.length ) {
			return new SplitStream( options );
		}
		return new SplitStream();
	}
	opts = assign( {}, DEFAULTS );
	if ( arguments.length ) {
		err = validate( opts, options );
		if ( err ) {
			throw err;
		}
	}
	// The stream's readable state should always be in object mode to prevent split data from being buffered (concatenated) and no longer being separated...
	opts.readableObjectMode = true;

	// The stream converts each chunk into a string so no need to encode strings written to the split stream as Buffer objects:
	opts.decodeStrings = false;

	// Make the stream a Transform stream:
	debug( 'Creating a transform stream configured with the following options: %s.', JSON.stringify( opts ) );
	Transform.call( this, opts );

	// Cache the separator:
	setNonEnumerableReadOnly( this, '_sep', ( opts.sep === null ) ? RE : opts.sep );

	// The destruction state:
	setNonEnumerable( this, '_destroyed', false );

	// Cache the encoding:
	setNonEnumerableReadOnly( this, '_encoding', opts.encoding );

	// Buffer for storing partial splits:
	setNonEnumerable( this, '_buffer', '' );

	// Chunk counter:
	setNonEnumerable( this, '_idx', -1 );

	return this;
}
Split stream constructor.

@constructor
@param {Options} [options] - stream options
@param {(string|RegExp)} [options.sep=/\r?\n/] - separator used to split streamed data
@param {boolean} [options.objectMode=false] - specifies whether a stream should operate in object mode
@param {(string|null)} [options.encoding=null] - specifies how `Buffer` objects should be decoded to `strings`
@param {NonNegativeNumber} [options.highWaterMark] - specifies the `Buffer` level for when `write()` starts returning `false`
@param {boolean} [options.allowHalfOpen=false] - specifies whether the stream should remain open even if one side ends
@param {boolean} [options.writableObjectMode=false] - specifies whether the writable side should be in object mode
@returns {SplitStream} split stream

@example
var stream = new SplitStream();

stream.write( '1\n2\n3' );
stream.end();