@zxcvbn-ts/language-ja
TypeScript icon, indicating that this package has built-in type declarations

3.0.2 • Public • Published

@zxcvbn-ts/language-ja

The Japanese dictionary and language package for zxcvbn-ts

Install

npm:

npm install @zxcvbn-ts/language-ja --save

yarn:

yarn add @zxcvbn-ts/language-ja

Setup

import { zxcvbn, zxcvbnOptions } from '@zxcvbn-ts/core'
import * as zxcvbnCommonPackage from '@zxcvbn-ts/language-common'
import * as zxcvbnJaPackage from '@zxcvbn-ts/language-ja'

const password = 'somePassword'
const options = {
  translations: zxcvbnEnPackage.translations,
  graphs: zxcvbnCommonPackage.adjacencyGraphs,
  dictionary: {
    ...zxcvbnCommonPackage.dictionary,
    ...zxcvbnJaPackage.dictionary,
  },
}

zxcvbnOptions.setOptions(options)

zxcvbn(password)

Package Sidebar

Install

npm i @zxcvbn-ts/language-ja

Weekly Downloads

1,380

Version

3.0.2

License

MIT

Unpacked Size

1.17 MB

Total Files

39

Last publish

Collaborators

  • mrwook