quartet 0.1.1

  • Readme
  • Changelog
  • Installing
  • 74

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:


dependencies:
  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';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
55
Health:
Code health derived from static analysis. [more]
94
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
74
Learn more about scoring.

We analyzed this package on Oct 16, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21

Platforms

Detected platforms: Flutter, web, other

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

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

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.

Dependencies

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