 CND                       = require 'cnd'
 badge                     = 'PIPESTREAMS/NJS-STREAMS-AND-FILES'
 FS                        = require 'fs'
-STPS                      = require 'stream-to-pull-stream'
+TO_PULL_STREAM            = require 'stream-to-pull-stream'
+TO_NODE_STREAM            = require 'pull-stream-to-stream'
 defer                     = setImmediate
 
 

    return null
  #.........................................................................................................
  stream.on 'close', -> finish()
  return STPS.sink stream, ( error ) -> finish error


    when 1 then null
    else throw new Error "µ9983 expected 1 argument, got #{arity}"
  #.........................................................................................................
  return TO_PULL_STREAM.source stream, ( error ) -> finish error

#-----------------------------------------------------------------------------------------------------------
@write_to_nodejs_stream = ( stream, on_stop ) ->
