decamelize 0.1.1

  • Readme
  • Changelog
  • Example
  • Installing
  • new50

decamelize 🎯 #

A simple Dart package to decamelize string and add a custom delimiter

Ιnspiration by the homonymous npm package decamelize

usage #

print(decamelize('justATest', '-'));    //just-a-test

todo #

  • [ ] Check for acronyms

0.1.1 #

  • Added a simple example
  • Updated description

0.1.0 #

  • Better code quality
  • Added CHANGELOG

0.0.1 #

  • Support one-letter words (a, I)
  • Use delimiters without letters or numbers
  • Acronyms are not recognised

example/example.dart

import 'package:decamelize/decamelize.dart';

main() {
  print(decamelize('justATest', '-'));    //just-a-test
}

Use this package as a library

1. Depend on it

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


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

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

  • Dart: 2.7.1
  • pana: 0.13.6

Health issues and suggestions

Document public APIs. (-1 points)

2 out of 2 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.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.6.0 <3.0.0