arcjet-js
arcjet-js copied to clipboard
feat: add library to perform redaction of pii
Adds the library to perform redaction on text using the Arcjet sensitive info primitive.
Redaction is performed by creating a RedactionSession
object with the configuration that you want to use, then calling redact()
on it with some plaintext. Later on you can pass it another text with the same redacted entities in it and call unredact()
and it will replace the fake data with the original data.