snapy-filter-obj

Filter properties from a snapshot

Usage no npm install needed!

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

README

snapy-filter-obj

Plugin of snapy.

Filter properties from a snapshot, like timestamps.

test((snap) => {
  snap({
    obj: {
      nested:{
        notIncluded: false, 
        included: true
      },
      alsoNotIncluded: false
    }, 
    filter: "nested,-nested.notIncluded"
  })
})

License

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