dist/index.js
function makeParsedStream() {
  var parameters = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

  var defaults = {
    useWorker: _compositeDetect2.default.isBrowser === true,
    concat: true
  };
  parameters = Object.assign({}, defaults, parameters);
  var _parameters = parameters,
      useWorker = _parameters.useWorker,
      concat = _parameters.concat;


  var mainStream = useWorker ? (0, _workerSpawner2.default)() : (0, _through2.default)((0, _parseStream2.default)());
  // concatenate result into a single one if needed (still streaming)
  var endStream = concat ? (0, _combining2.default)()(mainStream, (0, _concatStream2.default)()) : mainStream;

  return endStream;
}
function makeParsedStream() {
  var parameters = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

  var defaults = {
    useWorker: _compositeDetect2.default.isBrowser === true,
    concat: true
  };
  parameters = Object.assign({}, defaults, parameters);
  var _parameters = parameters,
      useWorker = _parameters.useWorker,
      concat = _parameters.concat;


  var mainStream = useWorker ? (0, _workerSpawner2.default)() : (0, _through2.default)((0, _parseStream2.default)());
  // concatenate result into a single one if needed (still streaming)
  var endStream = concat ? (0, _combining2.default)()(mainStream, (0, _concatStream2.default)()) : mainStream;

  return endStream;
}
function makeParsedStream ( ) { var parameters = arguments . length > 0 && arguments [ 0 ] !== undefined ? arguments [ 0 ] : { } ; var defaults = { useWorker : _compositeDetect2 . default . isBrowser === true , concat : true } ; parameters = Object . assign ( { } , defaults , parameters ) ; var _parameters = parameters , useWorker = _parameters . useWorker , concat = _parameters . concat ; var mainStream = useWorker ? ( 0 , _workerSpawner2 . default ) ( ) : ( 0 , _through2 . default ) ( ( 0 , _parseStream2 . default ) ( ) ) ; // concatenate result into a single one if needed (still streaming) var endStream = concat ? ( 0 , _combining2 . default ) ( ) ( mainStream , ( 0 , _concatStream2 . default ) ( ) ) : mainStream ; return endStream ; }
parses and return a stream of parsed stl data
@param {Object} parameters parameters for the parser
@param {Boolean} parameters.useWorker use web workers (browser only) defaults to true in browser
@param {Boolean} parameters.concat when set to true, stream outputs a single value with all combined data
@return {Object} stream of parsed stl data in the form {positions:TypedArray, normals:TypedArray}
parses and return a stream of parsed stl data