package
returns all "bad words" found in a javascript string
npm install fuhkGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Return all "bad words" found in a JavaScript string
Warning - parts of this are NSFW due to the nature of the module
npm install --save fuhkconst fuhk = require('fuhk');
fuhk('shit fuck rubber duck');
//=> ['shit', 'fuck']
fuhk('nothing bad here!');
//=> []<script src="https://rawgit.com/dawsonbotsford/fuhk/master/bundle.js"></script>
<script>
alert(fuhk('shit fuck rubber duck'));
//=> ['shit', 'fuck']
</script>Or download it with npm install --save fuhk and reference it as:
<script src="node_modules/fuhk/bundle.js"></script>Type: string
Type: array
Returns all "bad words" found in a JavaScript string. Strips punctuation and preserves capitalization. If none are found, an empty array is returned.
MIT © Dawson Botsford
If you like this, star it. If you want to follow me, follow me.