@zxcvbn-ts/language-th
v4.0.0-beta.3
Published
The Thai language package for zxcvbn-ts
Downloads
81
Maintainers
Readme
@zxcvbn-ts/language-th
The Thai dictionary and language package for zxcvbn-ts
Install
npm:
npm install @zxcvbn-ts/language-th --save
yarn:
yarn add @zxcvbn-ts/language-th
Setup
import { ZxcvbnFactory } from '@zxcvbn-ts/core'
import * as zxcvbnCommonPackage from '@zxcvbn-ts/language-common'
import * as zxcvbnThPackage from '@zxcvbn-ts/language-th'
const password = 'somePassword'
const options = {
translations: zxcvbnThPackage.translations,
graphs: zxcvbnCommonPackage.adjacencyGraphs,
dictionary: {
...zxcvbnCommonPackage.dictionary,
...zxcvbnThPackage.dictionary,
},
}
const zxcvbn = new ZxcvbnFactory(options)
zxcvbn.check(password)s
