3.0.2 • Published 1 year ago

@zxcvbn-ts/language-it v3.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@zxcvbn-ts/language-it

The Italian dictionary and language package for zxcvbn-ts

Install

npm:

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

yarn:

yarn add @zxcvbn-ts/language-it

Setup

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

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

zxcvbnOptions.setOptions(options)

zxcvbn(password)