{"_id":"@anywai/profanity-filter","_rev":"6-0d46eaad3ee38d05e8370ade059d96f0","name":"@anywai/profanity-filter","dist-tags":{"latest":"0.0.7"},"versions":{"0.0.1":{"name":"@anywai/profanity-filter","version":"0.0.1","author":"","license":"ISC","_id":"@anywai/profanity-filter@0.0.1","maintainers":[{"name":"anywai","email":"development@anywai.ch"}],"homepage":"https://github.com/anywai/profanity-filter#readme","bugs":{"url":"https://github.com/anywai/profanity-filter/issues"},"dist":{"shasum":"2b6dd72a112267a86959812d23a7cdac574f3fce","tarball":"https://registry.npmjs.org/@anywai/profanity-filter/-/profanity-filter-0.0.1.tgz","fileCount":32,"integrity":"sha512-79Y50lB7612HrrU0f+cqgnse4mCRI04rBoeqay4HgEk6+2YAiXqYLYOtckIqzTxI1FHNEFahGpHneMEJCjDk7A==","signatures":[{"sig":"MEUCIQCTxdmjXSpgoYkcfk3voDZl9t+XZBV9aPMlRulwXuygSgIgAnZ6+Bx88PwaiOthVnEe+CJr5XNeQXH+QlJhKt2NXWg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42623},"main":"index.js","gitHead":"dbd729266e55e7eb6e2ec28ad3ca3b20a8b016a4","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"anywai","email":"development@anywai.ch"},"repository":{"url":"git+https://github.com/anywai/profanity-filter.git","type":"git"},"_npmVersion":"9.6.7","description":"A filter for profanity.","directories":{"lib":"lib"},"_nodeVersion":"18.17.1","dependencies":{"fs":"^0.0.1-security"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.4.2","@types/node":"^20.11.26"},"_npmOperationalInternal":{"tmp":"tmp/profanity-filter_0.0.1_1710413688643_0.5182591699910026","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@anywai/profanity-filter","version":"0.0.2","author":"","license":"ISC","_id":"@anywai/profanity-filter@0.0.2","maintainers":[{"name":"anywai","email":"development@anywai.ch"}],"homepage":"https://github.com/anywai/profanity-filter#readme","bugs":{"url":"https://github.com/anywai/profanity-filter/issues"},"dist":{"shasum":"173168c81cf1ab764bd00428e8a854a257d6b522","tarball":"https://registry.npmjs.org/@anywai/profanity-filter/-/profanity-filter-0.0.2.tgz","fileCount":4,"integrity":"sha512-HE0gVYjjbWzAuZSDP7pssZltfjGHriUi49O3dHF8wuieYLsCyQjwM83e2RBo5onZf4BQmh+5uQlFh5RwHIYZug==","signatures":[{"sig":"MEYCIQCwPtKcpOb90QwRIq3DbCDIMiugED5LCgL4Q+Sk2dRZ3gIhAP6aC9c8rMpWR2O4ABu3dxzlfmOGcUKjrLJOR0N2ugbq","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7079},"main":"build/index.js","types":"./build/index.d.ts","gitHead":"3ad9ff6a3ed16fd4427d84711818f994af2c07ba","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx -p typescript tsc lib/index.ts --declaration --outDir build","publish":"npm run build && npm publish"},"_npmUser":{"name":"anywai","email":"development@anywai.ch"},"repository":{"url":"git+https://github.com/anywai/profanity-filter.git","type":"git"},"_npmVersion":"10.2.0","description":"This library provides a simple yet powerful profanity filtering mechanism for Node.js applications. It allows users to easily check for profane language in strings and manipulate the word lists used for filtering.","directories":{"lib":"lib"},"_nodeVersion":"21.1.0","dependencies":{"fs":"^0.0.1-security"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.4.2","@types/node":"^20.11.26"},"_npmOperationalInternal":{"tmp":"tmp/profanity-filter_0.0.2_1710854446170_0.3864624996770061","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@anywai/profanity-filter","version":"0.0.3","author":"","license":"ISC","_id":"@anywai/profanity-filter@0.0.3","maintainers":[{"name":"anywai","email":"development@anywai.ch"}],"homepage":"https://github.com/anywai/profanity-filter#readme","bugs":{"url":"https://github.com/anywai/profanity-filter/issues"},"dist":{"shasum":"a2f9731a6e76c0baca43d8741dd126623f55c9d8","tarball":"https://registry.npmjs.org/@anywai/profanity-filter/-/profanity-filter-0.0.3.tgz","fileCount":30,"integrity":"sha512-g2li41WhD9HDVvOXJu9+58bMmNJQ2DkZzwvPBv28gM3uF4FRDDTWiHH/APQwbdSALQsmMB5eb7sdfJM2tpvbTQ==","signatures":[{"sig":"MEYCIQDTYf49Z0w0K5MRong6dDU8GjpJVJnC7pe2pLnvf+4+7gIhAN7OnQUI03H713Q9XMlkNgMrmcc3IbWJjzY/qS3PrMBF","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":45572},"main":"build/index.js","types":"./build/index.d.ts","gitHead":"3ad9ff6a3ed16fd4427d84711818f994af2c07ba","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx -p typescript tsc lib/index.ts --declaration --outDir build","publish":"npm run build && npm publish"},"_npmUser":{"name":"anywai","email":"development@anywai.ch"},"repository":{"url":"git+https://github.com/anywai/profanity-filter.git","type":"git"},"_npmVersion":"10.2.0","description":"This library provides a simple yet powerful profanity filtering mechanism for Node.js applications. It allows users to easily check for profane language in strings and manipulate the word lists used for filtering.","directories":{"lib":"lib"},"_nodeVersion":"21.1.0","dependencies":{"fs":"^0.0.1-security"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.4.2","@types/node":"^20.11.26"},"_npmOperationalInternal":{"tmp":"tmp/profanity-filter_0.0.3_1710854563913_0.3954442006350345","host":"s3://npm-registry-packages"}},"0.0.4":{"name":"@anywai/profanity-filter","version":"0.0.4","author":"","license":"ISC","_id":"@anywai/profanity-filter@0.0.4","maintainers":[{"name":"anywai","email":"development@anywai.ch"}],"homepage":"https://github.com/anywai/profanity-filter#readme","bugs":{"url":"https://github.com/anywai/profanity-filter/issues"},"dist":{"shasum":"38ad84a48e08261adab75407604053188036cb42","tarball":"https://registry.npmjs.org/@anywai/profanity-filter/-/profanity-filter-0.0.4.tgz","fileCount":30,"integrity":"sha512-x6wv39H3I/aul33oLzCbucSZwOrci4PlpC7ZBMkrqoK81p1m8haCsNG/dgl4wltTQ0VnfIgAFwlTt6CaptX4xQ==","signatures":[{"sig":"MEQCIDM82WH5bfgbMt6EcQ0ZOOef9eSwUH6a6mUf/+b5cgqEAiAVSReosM0rXqDHO/r3oA0Y22Xt9Kvpb4Dtzaf5AZvNJQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48448},"main":"build/index.js","types":"./build/index.d.ts","gitHead":"b69ab857aa04b97fe2f7b950e2624e8baf0bc112","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx -p typescript tsc lib/index.ts --declaration --outDir build","publish":"npm run build && npm publish"},"_npmUser":{"name":"anywai","email":"development@anywai.ch"},"repository":{"url":"git+https://github.com/anywai/profanity-filter.git","type":"git"},"_npmVersion":"10.2.0","description":"This library provides a simple yet powerful profanity filtering mechanism for Node.js applications. It allows users to easily check for profane language in strings and manipulate the word lists used for filtering.","directories":{"lib":"lib"},"_nodeVersion":"21.1.0","dependencies":{"fs":"^0.0.1-security"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.4.2","@types/node":"^20.11.26"},"_npmOperationalInternal":{"tmp":"tmp/profanity-filter_0.0.4_1710922364387_0.9657105409576161","host":"s3://npm-registry-packages"}},"0.0.5":{"name":"@anywai/profanity-filter","version":"0.0.5","author":"","license":"ISC","_id":"@anywai/profanity-filter@0.0.5","maintainers":[{"name":"anywai","email":"development@anywai.ch"}],"homepage":"https://github.com/anywai/profanity-filter#readme","bugs":{"url":"https://github.com/anywai/profanity-filter/issues"},"dist":{"shasum":"2bce6cedf48f2401eb76de8070ac80d2ebb80677","tarball":"https://registry.npmjs.org/@anywai/profanity-filter/-/profanity-filter-0.0.5.tgz","fileCount":30,"integrity":"sha512-sWYCJs+tInwfuhgEF2EwN5MCJkF0v86w8gcFEvZ9tafkQpmBP7/Wz4fq0G4UNXHBVtDCcSbeG6UA01LSIZ/Jcg==","signatures":[{"sig":"MEQCIDQl9hXYo2lNC0AAYUqlZhDdBD342FZRomRhDquqGGKzAiB6yYX3Xmm193FId9urs1l8lnypAT+8JM9pV8PuqxDVcA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48432},"main":"build/index.js","types":"./build/index.d.ts","gitHead":"b07c19563fd753a40ac50f31a8de5328db0f7b8d","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx -p typescript tsc lib/index.ts --declaration --outDir build","publish":"npm run build && npm publish"},"_npmUser":{"name":"anywai","email":"development@anywai.ch"},"repository":{"url":"git+https://github.com/anywai/profanity-filter.git","type":"git"},"_npmVersion":"10.2.0","description":"This library provides a simple yet powerful profanity filtering mechanism for Node.js applications. It allows users to easily check for profane language in strings and manipulate the word lists used for filtering.","directories":{"lib":"lib"},"_nodeVersion":"21.1.0","dependencies":{"fs":"^0.0.1-security"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.4.2","@types/node":"^20.11.26"},"_npmOperationalInternal":{"tmp":"tmp/profanity-filter_0.0.5_1710925694118_0.519980754775418","host":"s3://npm-registry-packages"}},"0.0.6":{"name":"@anywai/profanity-filter","version":"0.0.6","author":"","license":"ISC","_id":"@anywai/profanity-filter@0.0.6","homepage":"https://github.com/anywai/profanity-filter#readme","bugs":{"url":"https://github.com/anywai/profanity-filter/issues"},"dist":{"shasum":"2210f5690de5f26d020f0e832c0cde4e0cfead13","tarball":"https://registry.npmjs.org/@anywai/profanity-filter/-/profanity-filter-0.0.6.tgz","fileCount":30,"integrity":"sha512-O3T2xgKwn9DdsFvW+DCgqGIOB8e99LkRtlPBscMKIOujmU+Wu72op8dhdsoPOctK9KsZ0d4FG/skzVTnY0Bftw==","signatures":[{"sig":"MEUCIFZThB6wVsDT2wYp+Rb+3/Tox9wJk4p8w/RLLbQLeGfBAiEAz3lKcF08vw0FHhjUvXPCs1srOgYOLmSoWfu/lkJ3vCM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48458},"main":"build/index.js","types":"./build/index.d.ts","gitHead":"ba3f65ad8991a53ff6cd29fbf4f6c0ac72425dfb","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx -p typescript tsc lib/index.ts --declaration --outDir build","publish":"npm run build && npm publish"},"_npmUser":{"name":"anywai","email":"development@anywai.ch"},"repository":{"url":"git+https://github.com/anywai/profanity-filter.git","type":"git"},"_npmVersion":"10.5.0","description":"This library provides a simple yet powerful profanity filtering mechanism for Node.js applications. It allows users to easily check for profane language in strings and manipulate the word lists used for filtering.","directories":{"lib":"lib"},"_nodeVersion":"20.12.1","dependencies":{"fs":"^0.0.1-security"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.4.2","@types/node":"^20.11.26"},"_npmOperationalInternal":{"tmp":"tmp/profanity-filter_0.0.6_1719907381200_0.37546592760284536","host":"s3://npm-registry-packages"}},"0.0.7":{"name":"@anywai/profanity-filter","version":"0.0.7","main":"build/index.js","scripts":{"build":"npx -p typescript tsc lib/index.ts --declaration --outDir build","publish":"npm run build && npm publish","test":"vitest run","test:watch":"vitest"},"author":"","license":"ISC","dependencies":{"fs":"^0.0.1-security"},"devDependencies":{"@types/node":"^20.11.26","typescript":"^5.4.2","vitest":"^1.6.0","vite-tsconfig-paths":"^4.3.2"},"directories":{"lib":"lib"},"repository":{"type":"git","url":"git+https://github.com/anywai/profanity-filter.git"},"bugs":{"url":"https://github.com/anywai/profanity-filter/issues"},"homepage":"https://github.com/anywai/profanity-filter#readme","description":"This library provides a simple yet powerful profanity filtering mechanism for Node.js applications. It allows users to easily check for profane language in strings and manipulate the word lists used for filtering.","_id":"@anywai/profanity-filter@0.0.7","gitHead":"a8cbcc372578cf6de5280765216de3c42afa95c8","types":"./build/index.d.ts","_nodeVersion":"20.12.1","_npmVersion":"10.5.0","dist":{"integrity":"sha512-068X2n3/1JDEZJqSSjDQK2yzloxvDqEJezqy8hqn7znFK+4M2fAbU2146u7+kVgb4I+JpHK6xPKJOCfT6MWipQ==","shasum":"61477a05a4be7f3946f59b95b040c8012880fe5a","tarball":"https://registry.npmjs.org/@anywai/profanity-filter/-/profanity-filter-0.0.7.tgz","fileCount":36,"unpackedSize":52433,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG6I5pOep13L5eAq2D/O1hLuM4QV7rHsf3kReC4rL9FkAiEAzxJ10nUCWgVz7lIok5/cauy9LHwT0IcO4iMqW7ccWIo="}]},"_npmUser":{"name":"anywai","email":"development@anywai.ch"},"maintainers":[{"name":"anywai","email":"development@anywai.ch"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/profanity-filter_0.0.7_1724670743027_0.9575048063585423"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-14T10:54:48.643Z","modified":"2024-08-26T11:12:23.350Z","0.0.1":"2024-03-14T10:54:48.854Z","0.0.2":"2024-03-19T13:20:46.334Z","0.0.3":"2024-03-19T13:22:44.138Z","0.0.4":"2024-03-20T08:12:44.565Z","0.0.5":"2024-03-20T09:08:14.267Z","0.0.6":"2024-07-02T08:03:01.385Z","0.0.7":"2024-08-26T11:12:23.184Z"},"bugs":{"url":"https://github.com/anywai/profanity-filter/issues"},"license":"ISC","homepage":"https://github.com/anywai/profanity-filter#readme","repository":{"type":"git","url":"git+https://github.com/anywai/profanity-filter.git"},"description":"This library provides a simple yet powerful profanity filtering mechanism for Node.js applications. It allows users to easily check for profane language in strings and manipulate the word lists used for filtering.","maintainers":[{"name":"anywai","email":"development@anywai.ch"}],"readme":"# Profanity Filter\n\nThis library provides a simple yet powerful profanity filtering mechanism for Node.js applications. It allows users to easily check for profane language in strings and manipulate the word lists used for filtering.\n\n## Installation\n\nFirst, generate a `.npmrc` with an access token for accessing the private library:\n\n```bash\nnpm config get userconfig\n```\n\nthan copy this .npmrc in to your project root (next to the package.json)\n\nYou can install the library via npm:\n\n```bash\nnpm install @anywai/profanity-filter\n```\n\nor yarn\n\n```bash\nyarn add @anywai/profanity-filter\n```\n\n## Usage\n\n### Importing the Library\n\n```js\nimport ProfanityFilter, { SupportedLanguage } from '@anywai/profanity-filter';\n```\n\n### Creating a Profanity Filter Instance\n\n```js\n\nconst profanityFilter = ProfanityFilter({ language: SupportedLanguage.EN });\n\n```\n\n### Checking for Profanity\n\n```js\nconst isProfane = profanityFilter.isProfane(\"how to kill\");\n// Output: true\n```\n\n### Adding Custom Words to the Filter\n\n\n```js\nprofanityFilter.addWords([\"foo\", \"bad-word\"]);\n```\n\n### Whitelisting Words\n\n```js\nprofanityFilter.addToWhiteList([\"safe_word\"]);\n```\n\n### Retrieving Word List\n\n```js\nconst wordList = profanityFilter.getWordList();\n\nconsole.log(wordList); // ['***','****',...]\n```\n\n### Changing Language\n\nWhen changing a language, don't forget to all the added words and white list will be cleared.\n\n```js\nconst profanityFilter = ProfanityFilter({ language: SupportedLanguage.EN});\n\nconst wordsEn = profanityFilter.getWordList();\n\nprofanityFilter.changeLanguage(\"es\");\n\nconst wordsEs = profanityFilter.getWordList();\n```\n\n### Supported Languages\n\nThe library supports the following languages:\n\n- Arabic (ar)\n- Danish (da)\n- German (de)\n- English (en)\n- Esperanto (eo)\n- Spanish (es)\n- Persian (fa)\n- Finnish (fi)\n- Filipino (fil)\n- French (fr)\n- Hindi (hi)\n- Hungarian (hu)\n- Italian (it)\n- Kabyle (kab)\n- Japanese (ja)\n- Korean (ko)\n- Dutch (nl)\n- Norwegian (no)\n- Polish (pl)\n- Portuguese (pt)\n- Russian (ru)\n- Swedish (sv)\n- Thai (th)\n- Klingon (tlh)\n- Turkish (tr)\n- Chinese (zh)\n\n### License\n\nThis library is licensed under the MIT License.\n","readmeFilename":"README.md"}