Package Exports
- @zxcvbn-ts/language-de
- @zxcvbn-ts/language-de/dist/index.esm.js
- @zxcvbn-ts/language-de/dist/index.js
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-de) 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-de
The German dictionary and language package for zxcvbn-ts
Installation
npm:
npm install @zxcvbn-ts/language-de --save
yarn:
yarn add @zxcvbn-ts/language-de
Setup
import { ZxcvbnFactory } from '@zxcvbn-ts/core'
import * as zxcvbnCommonPackage from '@zxcvbn-ts/language-common'
import * as zxcvbnDePackage from '@zxcvbn-ts/language-de'
const password = 'somePassword'
const options = {
translations: zxcvbnDePackage.translations,
graphs: zxcvbnCommonPackage.adjacencyGraphs,
dictionary: {
...zxcvbnCommonPackage.dictionary,
...zxcvbnDePackage.dictionary,
},
}
const zxcvbn = new ZxcvbnFactory(options)
zxcvbn.check(password)