Skip to content

snapyjs/snapy-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snapy-stream

Plugin of snapy.

Take a snapshot of a stream.

{test} = require("snapy")

test((snap) => {
  // simple
  snap({stream: someStream})

  // transform stream to obj
  snap({
    obj: {
      someProp: someStream,
      someOtherProp: someOtherStream
    },
    stream: "someProp, someOtherProp",
    encoding: "utf8" // default
    })
})

License

Copyright (c) 2017 Paul Pflugradt Licensed under the MIT license.