Socket
Book a DemoInstallSign in
Socket

george-profanity-filter

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

george-profanity-filter

I have created this as a node package. Therefore, it can be used in a few ways.

1.0.3
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

George's profanity filter

I have created this as a node package. Therefore, it can be used in a few ways.

Best way, i'd suggest, is to use RunKit https://npm.runkit.com/george-profanity-filter

It works with all examples in the specification. Here's a few colourful submissions of my own:

georgeProfanityFilter.filter(`
  TURKEY
  How could you do that? You turkey.
  I hope there are enough turkeys to go around this christmas.
  My neighbour, i hear, cooks up a mean turkey sandwich.
`);
georgeProfanityFilter.filter(`
  pina colada
  Too many Pina Coladas...
  There is one too many Colada in this Pina.
  Pina Colada for you. Pina Colada for you too.
`);

Footnotes:

  • I couldn't get splice working hence the re-assign on line 22.

FAQs

Package last updated on 21 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.