quartet 0.1.1

This library is still largely WIP, new features are constantly being added! :) #

Quartet.dart #

Your ultimate string instruments in Dart.

Introduction #

Quartet is a huge collection of useful string manipulation functions written in the Dart language.

Features #

Case conversion, slicing and chopping, escaping, querying and more.

0.1.1 #

  • Improve doc strings for all functions.

0.1.0 #

  • Complete chop functions.
  • Fix exports.

0.0.1 #

  • Initial release.
  • Complete case functions.

Use this package as a library

1. Depend on it

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

  quartet: ^0.1.1

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:quartet/quartet.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 suggestions

Fix lib/src/case/title_case.dart. (-1 points)

Analysis of lib/src/case/title_case.dart reported 2 hints:

line 17 col 29: Use isEmpty instead of length

line 30 col 9: Use contains instead of indexOf

Fix lib/src/case/camel_case.dart. (-0.50 points)

Analysis of lib/src/case/camel_case.dart reported 1 hint:

line 15 col 7: Use isEmpty instead of length

Fix lib/src/case/capitalize.dart. (-0.50 points)

Analysis of lib/src/case/capitalize.dart reported 1 hint:

line 12 col 29: Use isEmpty instead of length

Fix additional 11 files with analysis or formatting issues. (-4 points)

Additional issues in the following files:

  • lib/src/case/decapitalize.dart (1 hint)
  • lib/src/case/kebab_case.dart (1 hint)
  • lib/src/case/lower_case.dart (1 hint)
  • lib/src/case/snake_case.dart (1 hint)
  • lib/src/case/swap_case.dart (1 hint)
  • lib/src/case/upper_case.dart (1 hint)
  • lib/src/chop/code_point_at.dart (1 hint)
  • lib/src/split/words.dart (1 hint)
  • lib/src/chop/first.dart (Run dartfmt to format lib/src/chop/first.dart.)
  • lib/src/chop/runes_at.dart (Run dartfmt to format lib/src/chop/runes_at.dart.)
  • lib/src/chop/truncate.dart (Run dartfmt to format lib/src/chop/truncate.dart.)

Maintenance suggestions

Package is getting outdated. (-14.79 points)

The package was last published 59 weeks ago.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and quartet.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
Dev dependencies
test ^1.0.0