Skip to content

Make abusive comments cute by replacing specified words with a random emoji ๐Ÿ˜ธ

Notifications You must be signed in to change notification settings

isthatcentered/happy-thoughts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

11 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

NPM package publish test

Make abusive comments cute by replacing specified words with a random emoji ๐Ÿ˜ธ

(Pull Requests very welcome, let's have some fun)

Installation

$ npm install happy-thoughts --dev

Usage

const { happyThoughts } = require( "happy-thoughts" )

// Es2015 module import
// import happyThoughts from 'happy-thoughts'

const singleWord = happyThoughts( `Kal-El's a bit of bore -Batman`, [ "bore" ] )
const multipleWords = happyThoughts( `Why is Superman wearing his mother's tights lol -Batman`, [ "mother", "tights" ] )

console.log( singleWord )    // Kal-El's a bit of ๐Ÿ™€ -Batman
console.log( multipleWords ) // Why is Superman wearing his ๐Ÿ™Œ's ๐Ÿ™€ lol -Batman

About

Make abusive comments cute by replacing specified words with a random emoji ๐Ÿ˜ธ

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages