Skip to content

Its0xyToan/profanity-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Profanity-Api Wrapper

This little project is a wrapper for joschan21's profanity.dev API

Download

With npm or the package manager of your choice.

npm i profanity.dev

Documentation

This package is very easy to use:

const profanity = require("profanity.dev")
// or 
import * as profanity from "profanity.dev"

// To check if one string has profanity in it, just do
profanity.checkOne("Hello world").then((result) => {
    console.log(result.isProfanity) // false
})

// To check if multiple strings have profanity in them, just do
profanity.checkMultiple(["mom", "hello world everyone", "fuck you"]).then((result) => {
    console.log(result.isProfanity) // true
})

And voilà !

Author

Its0xyToan

Contributing

If you would like to contribute, just do a pull request (I don't know why you would want to contribute in that but ok)

About

A wrapper for joschan21's vector profanity API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published