1.0.2 • Published 5 years ago

occurence_zuoqin v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Occurence

1. what is it?

Occurence is a library to find the occurence of all the words in a given text.

  • it will ignore words whose length is less than 3.
  • it will filter away punctuations like #,«,»,’,? etc.

2. intallation?

npm install occurence_zuoqin --save

3. how to use it?

import Occurence from "occurence_zuoqin";
let text = `Hello, hello HEllo ? 
  {hello} "hello \hello" -hello *hello
  `;
let result = Occurence(text); // output: { hello: 8 }