JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3925
  • Score
    100M100P100Q141379F
  • License MIT

The Japanese language package for zxcvbn-ts

Package Exports

  • @zxcvbn-ts/language-ja
  • @zxcvbn-ts/language-ja/dist/index.cjs
  • @zxcvbn-ts/language-ja/dist/index.mjs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@zxcvbn-ts/language-ja) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@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 { ZxcvbnFactory } 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,
  },
}

const zxcvbn = new ZxcvbnFactory(options)
zxcvbn.check(password)