@zxcvbn-ts/language-id
v4.1.1
Published
The Indonesia language package for zxcvbn-ts
Maintainers
Readme
@zxcvbn-ts/language-id
The Indonesia dictionary and language package for zxcvbn-ts
Sources
- commonWords.json is generated from the OpenSubtitles 2024 dataset provided via OPUS (https://opus.nlpl.eu/datasets/OpenSubtitles). The dataset is licensed under ODC-BY (Open Data Commons Attribution License) and requires attribution when redistributed.
names.jsonsource is based on this gist and currently is fetched from Wikitionary. The list will be updated later from several articles or blogs.wikipedia.jsonis generated from Indonesia Wikipedia dump.
Install
npm:
npm install @zxcvbn-ts/language-id --save
yarn:
yarn add @zxcvbn-ts/language-id
Setup
import { ZxcvbnFactory } from '@zxcvbn-ts/core'
import * as zxcvbnCommonPackage from '@zxcvbn-ts/language-common'
import * as zxcvbnIdPackage from '@zxcvbn-ts/language-id'
const password = 'somePassword'
const options = {
translations: zxcvbnIdPackage.translations,
graphs: zxcvbnCommonPackage.adjacidcyGraphs,
dictionary: {
...zxcvbnCommonPackage.dictionary,
...zxcvbnIdPackage.dictionary,
},
}
const zxcvbn = new ZxcvbnFactory(options)
zxcvbn.check(password)