vulgarism-disposer
v1.0.0
Published
Library to disposing unwanted phrases from strings.
Downloads
2
Readme
VulgarismDisposer
Library to disposing unwanted phrases from strings.
Usage
import { default as VulgarismDisposer } from 'vulgarism-disposer';
const disposar = new VulgarismDisposer(['some unwanted phrase']);
disposar.encode('blabla some unwanted phrase').then(console.log); // 'blabla [vulgarism#0]'
disposar.decode('blabla [vulgarism#0]'.then(console.log)); // 'blabla some unwanted phrase'