@koralabs/protected-words

Library for checking protected words


Keywords
bad words
License
ISC
Install
npm install @koralabs/protected-words@1.0.5

Documentation

Protected Words

Library for protected words

Installation

Using npm:

npm install @koralabs/protected-words

Usage:

const result = await ProtectedWords.checkAvailability(handleName);
if (!result.available) {
    res.status(result.code).send({
        message:
            result.code === AvailabilityResponseCode.NOT_AVAILABLE_FOR_LEGAL_REASONS ? result.reason : result.message
    });
    return;
}