1.0.0 • Published 5 years ago
ekeywordsd v1.0.0
Installation
Git:
git clone https://github.com/VerviumStrike/EKeywordsD.git
Npm:
npm i ekeywordsd
Usage
<script type="module">
import { EKeywordsD } from "../index.js" //EKeywordsD Path
EKeywordsD("Ummmm hello alex", ["hello", "alex"], function(result){
if(result == "helloalex"){
console.log("success[1]")
}else if(result == "hialex"){
console.log("success[2]")
}
})
</script>
API
EKeywordsD:
EKeywordsD(string, keywords, callback)
Note
- EKeywordsD is used to get if the keywords exist on the string then returns the result without space. You can use the result to identify which function of code to run, you can use it to make advance voice recognition, etc.
- Make sure the keywords are lowercase, and It doesn't matter if the string is uppercase or lowercase.
Maintainer
1.0.0
5 years ago