Back to Blog
Tutorial

Getting Started with OpenRedaction: A Complete Guide

November 15, 2024

OpenRedaction is a powerful open-source tool for automatically detecting and redacting personally identifiable information (PII) from text. This guide will walk you through getting started.

Installation

You can install OpenRedaction via npm:

npm install openredaction

Basic Usage

Here's a simple example of how to use OpenRedaction:

import { redact } from 'openredaction';

const text = "Contact John Doe at john@example.com or call 555-123-4567";
const result = await redact(text);
console.log(result.redacted_text);

Next Steps

Check out our documentation for more advanced features and API options.