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

3.0.4 • Public • Published

@josango/zxcvbn-ts-language-ar

The Arabic dictionary and language package for zxcvbn-ts

Installation

npm

# install zxcvbn core and common packages
npm i @zxcvbn-ts/core @zxcvbn-ts/language-common

# install the Arabic package
npm i @josango/zxcvbn-ts-language-ar --save

yarn

# install zxcvbn core and common packages
yarn add @zxcvbn-ts/core @zxcvbn-ts/language-common

# install the Arabic package
yarn add @josango/zxcvbn-ts-language-ar

Setup

import { zxcvbn, zxcvbnOptions } from '@zxcvbn-ts/core'
import * as zxcvbnCommonPackage from '@zxcvbn-ts/language-common'
import * as zxcvbnArPackage from '@josango/zxcvbn-ts-language-ar'

const password = 'somePassword'
const options = {
  translations: zxcvbnArPackage.translations,
  graphs: zxcvbnCommonPackage.adjacencyGraphs,
  dictionary: {
    ...zxcvbnCommonPackage.dictionary,
    ...zxcvbnArPackage.dictionary,
  },
}
zxcvbnOptions.setOptions(options)

zxcvbn(password)

Package Sidebar

Install

npm i @josango/zxcvbn-ts-language-ar

Weekly Downloads

1

Version

3.0.4

License

MIT

Unpacked Size

44.1 kB

Total Files

37

Last publish

Collaborators

  • josa-npm