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

5 lines
169 B
JavaScript

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