snapy-file

Take a snapshot from a file

Usage no npm install needed!

<script type="module">
  import snapyFile from 'https://cdn.skypack.dev/snapy-file';
</script>

README

snapy-file

Plugin of snapy.

Take a snapshot from a file:

{test} = require("snapy")

test((snap) => {
  snap({file: "./package.json"}) // relative to cwd!
})

Creates a readStream and passes it to snapy-stream

License

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