action-debian-package/node_modules/fast-redact/example/serialize-false.js
Dawid Dziurla 9308795b8b
update
2020-03-26 15:37:35 +01:00

12 lines
233 B
JavaScript

'use strict'
const fastRedact = require('..')
const redact = fastRedact({
paths: ['a'],
serialize: false
})
const o = { a: 1, b: 2 }
console.log(redact(o) === o)
console.log(o)
console.log(redact.restore(o) === o)
console.log(o)