test-action-debian-package/node_modules/fast-redact/example/serialize-function.js

5 lines
169 B
JavaScript
Raw Normal View History

2020-03-26 14:37:35 +00:00
'use strict'
const fastRedact = require('..')
const redact = fastRedact({ paths: ['a'], serialize: (o) => JSON.stringify(o, 0, 2) })
console.log(redact({ a: 1, b: 2 }))