Code Monkey home page Code Monkey logo

anti-key-wrods's Introduction

anti-key-words

To Anti any Dirty Words(zh/en).

在线demo点击这里查看

version 1.0.4

  • 修复打包过程中抛出的异常.

version 1.0.3

  • 修复一些已知问题.

version 1.0.0

  • 支持多达33个脏词、25个独立脏字的过滤筛选

How to start

$ npm install anti-key-words --save

or

$ npm i --save anti-key-words

Usage

ES6 import

import AntiKeyWords from "anti-key-words";
let inputValue = ""; // .. any string (include dirty words)

// initialize antikeywords class.
let antiKeyWords = new AntiKeyWords(inputValue);

antiKeyWords.filterKeyWords();

console.log(antiKeyWords.outputString); // Hi, **

CMD

const AntiKeyWords = require("anti-key-words");

// usage like ES6..

How to contribute

修改ts文件后集成js请执行:

$ npm run prepublishOnly

删除集成js文件

$ npm run clean

发布

$ npm publish

Todo

  • 替换符号自定义功能
  • 关键词json文件自定义功能
  • 优化过滤流程

LICENSE

MIT © TimRChen

anti-key-wrods's People

Contributors

timrchen avatar

Watchers

 avatar

anti-key-wrods's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.