1.3.0 • Published 2 years ago

sarcasmify v1.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Sarcasmify

Sarcasmify is a React hook for converting normal text into InTeRnET SaRcAsM.

Installation

yarn add sarcasmify

Usage

import { useSarcasm } from 'sarcasmify';

export default function MyComponent() {
  const sarcasmify = useSarcasm()

  const mySarcasticVariable = sarcasmify('this is some text')

  return (
    <div>
      <p>Here is some regular text</p>
      <p>{mySarcasticVariable}</p>
    </div>
  );
}

Live demo

A live demo is available on StackBlitz here.