文件名称:fast-redact:非常快速的对象编辑
文件大小:21KB
文件格式:ZIP
更新时间:2024-06-01 02:53:41
JavaScript
快速编辑 非常快速的对象编辑 默认用法 默认情况下, fast-redact使用JSON.stringify序列化对象,以检查指定路径上的任何数据: const fastRedact = require ( 'fast-redact' ) const fauxRequest = { headers : { host : 'http://example.com' , cookie : `oh oh we don't want this exposed in logs in etc.` , referer : `if we're cool maybe we'll even redact this` } } const redact = fastRedact ( { paths : [ 'headers.cookie' , 'headers.referer'
【文件预览】:
fast-redact-main
----.gitignore(51B)
----package.json(1KB)
----.npmrc(18B)
----.travis.yml(102B)
----LICENSE(1KB)
----index.js(2KB)
----example()
--------intermediate-wildcard-array.js(308B)
--------top-wildcard-object.js(297B)
--------serialize-false.js(233B)
--------default-usage.js(353B)
--------serialize-function.js(169B)
----lib()
--------modifiers.js(3KB)
--------validator.js(1KB)
--------redactor.js(3KB)
--------state.js(422B)
--------rx.js(677B)
--------parse.js(1KB)
--------restorer.js(2KB)
----readme.md(11KB)
----benchmark()
--------index.js(6KB)
----.npmignore(11B)
----test()
--------index.js(36KB)