2.4.0 • Published 2 years ago

@cityssm/unleet v2.4.0

Weekly downloads
123
License
MIT
Repository
github
Last release
2 years ago

unleet

npm Codacy Badge Maintainability Test Coverage AppVeyor Snyk Vulnerabilities for GitHub Repo

Worry less about maintaining a list of every possible spelling of every bad word.

Ensuring that text entered by a user is polite can be difficult. Generating memorable passwords automatically using letters and numbers, without creating an offensive combination is challenging as well.

This project attempts to help by taking a piece of text, and replacing symbols that are commonly used to hide bad words with the letters they may represent. The result can be scanned against a far simpler bad words file.

Installation

npm install @cityssm/unleet

Usage

import unleet from "@cityssm/unleet";

unleet("b@d w0rd");
// => [ "bad word" ]

unleet("1337 $P33K");
// => [ 'ieet zpeek', 'ieet speek', 'leet zpeek', 'leet speek' ]

unleet("0rg@ni℠");
// => [ 'organizm', 'organism' ]

Contributing

Found some text that doesn't unleet properly? Open an issue.

Pull requests with more bizarre Unicode-to-letter mappings are more than welcome!

2.4.0

2 years ago

2.3.2

2 years ago

2.3.0

3 years ago

2.3.1

3 years ago

2.2.0

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.11.3

4 years ago

0.11.2

4 years ago

0.11.1

4 years ago

0.11.0

4 years ago

0.10.0

4 years ago

0.10.1

4 years ago

0.9.1

4 years ago

0.9.0

4 years ago

0.8.0

4 years ago

0.7.1

4 years ago

0.7.0

4 years ago

0.6.0

4 years ago

0.5.0

4 years ago