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

3.0.2 • Public • Published

@zxcvbn-ts/language-en

The English dictionary and language package for zxcvbn-ts

Install

npm:

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

yarn:

yarn add @zxcvbn-ts/language-en

Setup

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

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

zxcvbnOptions.setOptions(options)

zxcvbn(password)

Package Sidebar

Install

npm i @zxcvbn-ts/language-en

Weekly Downloads

77,604

Version

3.0.2

License

MIT

Unpacked Size

6.41 MB

Total Files

39

Last publish

Collaborators

  • mrwook