Nitrate Processed Mincemeat

    @jych/string-sanitization
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.4 • Public • Published

    @jych/string-sanitization

    This module includes various utils for working with Strings.

    Installation

    # with npm
    npm i @jych/string-sanitization
    
    # with yarn
    yarn add @jych/string-sanitization

    Usage

    import { sanitizeEmail, sanitizeName } from '@jych/string-sanitization';
    
    const sanitizedEmail = sanitizeEmail('hello@example.com');
    // => aGVsbG9AZXhhbXBsZS5jb20=
    
    const sanitizedEmail = sanitizeEmail('hello@example.com', { prefix: 'email' });
    // => email:aGVsbG9AZXhhbXBsZS5jb20=
    
    const sanitizedName = sanitizeName('Darth Vader');
    // => D**** V****

    Keywords

    none

    Install

    npm i @jych/string-sanitization

    DownloadsWeekly Downloads

    1

    Version

    0.0.4

    License

    MIT

    Unpacked Size

    2.78 kB

    Total Files

    8

    Last publish

    Collaborators

    • jych