Numerous Pulsating Martians

    strip-skin-tone
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.1 • Public • Published

    strip-skin-tone

    Build Coverage Downloads Size

    Strip skin tone modifiers (as in Fitzpatrick scale) from emoji (🎅🏿 to 🎅).

    Contents

    Install

    This package is ESM only. In Node.js (version 12.20+, 14.14+, or 16.0+), install with npm:

    npm install strip-skin-tone

    In Deno with Skypack:

    import {stripSkinTone} from 'https://cdn.skypack.dev/strip-skin-tone@2?dts'

    In browsers with Skypack:

    <script type="module">
      import {stripSkinTone} from 'https://cdn.skypack.dev/strip-skin-tone@2?min'
    </script>

    Use

    import {stripSkinTone} from 'strip-skin-tone'
    
    stripSkinTone('🎅🏿') // => '🎅'
    stripSkinTone('👌🏻') // => '👌'

    API

    This package exports the following identifiers: stripSkinTone. There is no default export.

    stripSkinTone(value)

    Strip skin tone modifiers from value.

    Parameters
    • value (string) — value to clean of skin tone modifiers
    Returns

    string — cleaned value.

    Types

    This package is fully typed with TypeScript.

    Compatibility

    This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 12.20+, 14.14+, and 16.0+. It also works in Deno and modern browsers.

    Security

    This package is safe.

    Related

    Contribute

    Yes please! See How to Contribute to Open Source.

    License

    MIT © Titus Wormer

    Install

    npm i strip-skin-tone

    DownloadsWeekly Downloads

    6

    Version

    2.0.1

    License

    MIT

    Unpacked Size

    6.51 kB

    Total Files

    5

    Last publish

    Collaborators

    • wooorm