1.0.0 • Published 5 years ago

ekeywordsd v1.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

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

  1. 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.
  2. Make sure the keywords are lowercase, and It doesn't matter if the string is uppercase or lowercase.

Maintainer