dart_stringprep 0.1.0+4-dev

Dart String- Prep #

Implementation of String prep function for dart. This source was created using Arachnid's stringprep-js. It is suppose to be implementation of RFC3454

0.1.0+4-dev #

  • Minor Changes

0.1.0+2-dev #

  • Added ChangeLog Document
  • Adding Example
  • Made sure Package was Working

0.1.0+1-dev #

  • Initial version, created by Ronit BK


import 'package:dart_stringprep/string_prep.dart';

var nameprep = preps["nameprep"];

void main() {
  String username = "NonStandardUserName";
  print(nameprep(username)); // nonstandardusername

Use this package as a library

1. Depend on it

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

  dart_stringprep: ^0.1.0+4-dev

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

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

3. Import it

Now in your Dart code, you can use:

import 'package:dart_stringprep/profiles.dart';
import 'package:dart_stringprep/string_prep.dart';
import 'package:dart_stringprep/tables.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Feb 13, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.5

Health issues and suggestions

Document public APIs. (-1 points)

9 out of 9 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Fix lib/string_prep.dart. (-0.50 points)

Analysis of lib/string_prep.dart reported 1 hint:

line 45 col 7: Don't explicitly initialize variables to null.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.2.2<3.0.0
Dev dependencies
test ^1.3.0