{"repo":"rcjpisani/redactyl.js","free":true,"listed":false,"github":"https://github.com/rcjpisani/redactyl.js","clone":"git clone https://github.com/rcjpisani/redactyl.js.git","description":"Redact sensitive information from JSON for logging (Node.js)","language":"JavaScript","stars":83,"topics":["javascript","logging","redact","security","typescript"],"license":"MIT","category":"security-tools","readme_excerpt":"redactyl.js Redact sensitive information from JSON for logging (Node.js) Installation Usage Instantiate a new instance of Redactyl, specifying the properties you wish to redact Optional - provide your own replacer function: Then run your sensitive data through the redact function! Constructor Options - Object - properties - Array - An array of property names that should be redacted. - text - String - Custom text to replace the redacted properties with. - replacer - Function - Custom replacer function that alters the behavior of the stringification process API addProperties ( properties ) Add the names of properties that should be redacted. setText ( text ) Set the text to replace the redacted properties with. Default: [REDACTED] setReplacer ( function ) Set the replacer function, altering the behavior of the stringification process redact ( json ) Traverse through the specified JSON and replace all properties that match the property names set through the constructor options object, or the setText function.","default_branch":null,"files":null,"tree":[],"storefront":"/r/rcjpisani","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rcjpisani/redactyl.js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}