An open API service indexing awesome lists of open source software.

https://github.com/isthatcentered/happy-thoughts

Make abusive comments cute by replacing specified words with a random emoji 😸
https://github.com/isthatcentered/happy-thoughts

censor emoji es6 filter happy insult npm thoughts

Last synced: 16 days ago
JSON representation

Make abusive comments cute by replacing specified words with a random emoji 😸

Awesome Lists containing this project

README

          

# 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
```shell
$ npm install happy-thoughts --dev
```

## Usage
```javascript
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
```