@donbler/ng-checker
v1.0.2
Published
ng words checker
Downloads
3
Readme
ng-checker
npm: ng-checker
Usage
Install
npm i @donbler/ng-checker
import
import ngchecker from '@donbler/ng-checker';
You can use ngchecker()
const ngText = "badword"
const okText = "happyword"
const = ngList [
'ngword',
'tabooword',
'badword',
];
ngchecker(ngText, ngList); // false
ngchecker(okText, ngList); // true
Test (Jest)
npm run test