xcvbnm 0.5.5

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 49

xcvbnm

This is a dart port of the great dropbox/zxcvbn library, a realistic password strength estimator.

This library is strong mode compliant.

Please note, that library did not port all functionality but is already used in production.

Usage

library xcvbnm.example.bin;

import 'package:xcvbnm/xcvbnm.dart';

main() {
  String password = "my_pwd_1";
  // Use the direct helper API
  Result result = new Xcvbnm().estimate(password);
  print(result.toMap());
}

Demo

Browser

Online demo dart code compiled with dart2js

Command line

$  dart bin/xcvbnm_demo.dart --help
  -h, --help     Usage help
  -m, --match    Max number max of match to display
                 (defaults to "4")
$ dart bin/xcvbnm_demo.dart
$ dart bin/xcvbnm_demo.dart 9IOksjdopwd
$ dart bin/xcvbnm_demo.dart "my password"
$ dart bin/xcvbnm_demo.dart pwd1 pwd2 -m 1

Development

Guidelines and format

Before each commit format at the root of the project

$ dartfmt -l 120 -w .

Test

Run all tests in multiple platforms

$ ./test/bin/run_tests.sh

0.5.5

  • Started Changelog
  • Made xcvbnm strong-mode compliant

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  xcvbnm: "^0.5.5"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:xcvbnm/xcvbnm.dart';
        
Version Uploaded Documentation Archive
0.5.5 Jul 5, 2017 Go to the documentation of xcvbnm 0.5.5 Download xcvbnm 0.5.5 archive
0.5.4 Sep 5, 2016 Go to the documentation of xcvbnm 0.5.4 Download xcvbnm 0.5.4 archive
0.5.3 Apr 26, 2016 Go to the documentation of xcvbnm 0.5.3 Download xcvbnm 0.5.3 archive
0.5.2 Apr 18, 2016 Go to the documentation of xcvbnm 0.5.2 Download xcvbnm 0.5.2 archive
0.5.1 Apr 18, 2016 Go to the documentation of xcvbnm 0.5.1 Download xcvbnm 0.5.1 archive
0.5.0 Nov 17, 2015 Go to the documentation of xcvbnm 0.5.0 Download xcvbnm 0.5.0 archive
0.4.0 Nov 17, 2015 Go to the documentation of xcvbnm 0.4.0 Download xcvbnm 0.4.0 archive
0.3.6 Nov 16, 2015 Go to the documentation of xcvbnm 0.3.6 Download xcvbnm 0.3.6 archive

Analysis

We analyzed this package on Apr 23, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.49.0
  • pana: 0.10.6

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
0 / 100
Health:
Code health derived from static analysis. [more]
98 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
99 / 100
Overall score:
Weighted score of the above. [more]
49
Learn more about scoring.

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:xcvbnm/xcvbnm.dart.

Suggestions

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 1 error 3 hints.

    Strong-mode analysis of lib/src/matching.dart failed with the following error:

    line: 164 col: 31
    The argument type '(dynamic, Map<String, int>) → Null' can't be assigned to the parameter type '(dynamic, dynamic) → void'.

    Run dartfmt to format lib/src/feedback.dart.

    Similar analysis of the following files failed:

    • lib/src/scoring.dart (hint)
  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use xcvbnm.dart.

  • Use analysis_options.yaml.

    Rename old .analysis_options file to analysis_options.yaml.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.9.0 <2.0.0
Dev dependencies
args any
browser any
test ^0.12.20