Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/doomsower/react-native-zxcvbn
react-native zxcvbn bridge
https://github.com/doomsower/react-native-zxcvbn
Last synced: about 2 months ago
JSON representation
react-native zxcvbn bridge
- Host: GitHub
- URL: https://github.com/doomsower/react-native-zxcvbn
- Owner: doomsower
- License: mit
- Created: 2019-10-04T18:04:55.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-14T06:46:24.000Z (almost 5 years ago)
- Last Synced: 2024-11-11T21:37:09.607Z (about 2 months ago)
- Language: Objective-C
- Size: 611 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-native-zxcvbn
This module is a wrapper around [zxcvbn4j](https://github.com/nulab/zxcvbn4j) and [zxcvbn-ios](https://github.com/dropbox/zxcvbn-ios).
Why? Because js module huge.
## Getting started
`$ yarn add react-native-zxcvbn`
### Mostly automatic installation
This module supports autolinking so if you use RN 0.60+ then no additional action is required.
Otherwise, run
`$ react-native link react-native-zxcvbn`
## Usage
```jsx
import { score } from 'react-native-zxcvbn';const strength = await score(password);
console.log(strength); // 0-4```