UNPKG

@2toad/profanity

Version:

A multi-language profanity filter with full TypeScript support

92 lines (91 loc) 2.58 kB
{ "name": "@2toad/profanity", "version": "3.1.1", "description": "A multi-language profanity filter with full TypeScript support", "homepage": "https://github.com/2Toad/Profanity", "author": "2Toad", "license": "MIT", "engines": { "node": ">=12" }, "main": "dist/index.js", "types": "dist/index.d.ts", "scripts": { "clean": "npx rimraf dist", "build": "npm run clean && npx tsc", "local": "npm run clean && nodemon src/index.ts", "pretest": "npm run build", "test": "mocha -r ts-node/register tests/**/*.spec.ts", "test:watch": "npm run test -- --watch", "lint": "eslint . --cache", "lint:fix": "eslint . --fix", "format": "prettier . --write", "prepublishOnly": "npm run lint && npm test", "prepare": "husky", "translate": "docker-compose -f ./src/tools/translate/docker-compose.yml up -d && ts-node ./src/tools/translate/translate.ts && docker-compose -f ./src/tools/translate/docker-compose.yml down", "benchmark": "docker-compose -f ./src/tools/benchmark/docker-compose.yml up --build" }, "repository": { "type": "git", "url": "git+ssh://git@github.com/2Toad/Profanity.git" }, "keywords": [ "profanity", "profane", "obscenity", "obscene", "cussing", "curse", "cursing", "swearing", "swearwords", "swear-words", "vulgarity", "badwords", "bad-words", "badlanguage", "bad-language", "dirtywords", "dirty-words", "censor", "filter" ], "devDependencies": { "@eslint/js": "^9.9.1", "@types/benchmark": "^2.1.5", "@types/chai": "^4.3.19", "@types/eslint__js": "^8.42.3", "@types/eslint-config-prettier": "^6.11.3", "@types/eslint-plugin-security": "^3.0.0", "@types/mocha": "^10.0.7", "@types/node": "^22.5.2", "@typescript-eslint/eslint-plugin": "^8.4.0", "@typescript-eslint/parser": "^8.4.0", "axios": "^1.7.9", "benchmark": "^2.1.4", "chai": "^4.5.0", "eslint": "^9.9.1", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-security": "^3.0.1", "globals": "^15.9.0", "husky": "^9.1.5", "lint-staged": "^15.2.10", "mocha": "^10.7.3", "nodemon": "^3.1.4", "prettier": "^3.3.3", "rimraf": "^6.0.1", "ts-node": "^10.9.2", "typescript": "^5.5.4", "typescript-eslint": "^8.4.0" }, "overrides": { "inflight": "^2.0.0", "glob": "^9.0.0", "rimraf": "^6.0.1" }, "lint-staged": { "*.ts": "eslint --cache --fix", "*": "prettier --write" } }