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 😸
- Host: GitHub
- URL: https://github.com/isthatcentered/happy-thoughts
- Owner: isthatcentered
- Created: 2018-02-03T12:29:04.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-03T19:41:29.000Z (over 8 years ago)
- Last Synced: 2025-03-17T10:51:47.990Z (about 1 year ago)
- Topics: censor, emoji, es6, filter, happy, insult, npm, thoughts
- Language: JavaScript
- Homepage:
- Size: 104 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```