Skip to content

Latest commit

 

History

History
38 lines (31 loc) · 552 Bytes

README.md

File metadata and controls

38 lines (31 loc) · 552 Bytes

Lafzi.js

Setup

yarn add lafzi.js
# OR npm install lafzi.js

Options

{
  query: 'kunfayakun',
  mode: 'v', // "v", "nv"
  threshold: 0.95, // 0.3 - 0.95
  isHilight: true, // Boolean
  multipleHighlightPos: false, // Boolean
}

Usage

import Lafzi from 'lafzi.js' // commonjs
// import Lafzi from 'lafzi.js/dist/index.esm' // es module
const opt = {
    query: 'kunfayakun'
}
Lafzi(opt).then((res) => {
    console.log(res)
})

Example

https://repl.it/@sprabowo/lafzijs-demo

License

MIT