JSPM

@zxcvbn-ts/language-cs

4.0.0-beta.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1681
  • Score
    100M100P100Q118619F
  • License MIT

The Czech language package for zxcvbn-ts

Package Exports

  • @zxcvbn-ts/language-cs
  • @zxcvbn-ts/language-cs/dist/index.cjs
  • @zxcvbn-ts/language-cs/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-cs) 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-cs

The Czech dictionary and language package for zxcvbn-ts

Install

npm:

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

yarn:

yarn add @zxcvbn-ts/language-cs

Setup

import { ZxcvbnFactory } from '@zxcvbn-ts/core'
import * as zxcvbnCommonPackage from '@zxcvbn-ts/language-common'
import * as zxcvbnCsPackage from '@zxcvbn-ts/language-cs'

const password = 'somePassword'
const options = {
  translations: zxcvbnCsPackage.translations,
  graphs: zxcvbnCommonPackage.adjacencyGraphs,
  dictionary: {
    ...zxcvbnCommonPackage.dictionary,
    ...zxcvbnCsPackage.dictionary,
  },
}
const zxcvbn = new ZxcvbnFactory(options)
zxcvbn.check(password)