git clone https://github.com/googleapis/nodejs-dlp.git
cd nodejs-dlp/samples
npm install @google-cloud/dlp
npm install yargs
npm install mime
Using ìnspectString.js explicit your data.
node inspectString.js $GCLOUD_PROJECT "My email address is [email protected]."
node inspectString.js $GCLOUD_PROJECT "My phone number is +99999999."

nodejs-dlp/samples redact the email address values from the imagenode redactImage.js $GCLOUD_PROJECT ~/assets-for-real.png "" EMAIL_ADDRESS ~/yaya-redacted.png
We specified EMAIL_ADDRESS as the infotype to redact.
In the image, you should notice that the email address is no longer visible.
