mask-properties

1.0.2 • Public • Published

mask-properties

import { mask } from "mask-properties"
 
const person = {
  name: 'Jim',
  birthday: '1962-01-17',
  credits: {
    actor: [],
    writer: []
  }
}
 
mask(person, { name: true, credits: { writer: true } })
// { name: 'Jim', credits: { writer: [] } }

Dependents (1)

Package Sidebar

Install

npm i mask-properties

Weekly Downloads

4

Version

1.0.2

License

MIT

Unpacked Size

9.92 kB

Total Files

6

Last publish

Collaborators

  • rogerbf