p-hatan/ mirror

pub repository

mirror.p-hatan.com

recase

4.1.0

Changes the case of the input text to the desire case convention.

Download archive

Readme

ReCase

Changes the case of the input text to the desire case convention.

import 'package:recase/recase.dart';

void main() {
  ReCase rc = new ReCase('Just_someSample-text');

  print(rc.camelCase); // Prints 'justSomeSampleText'
  print(rc.constantCase); // Prints 'JUST_SOME_SAMPLE_TEXT'
}

String extensions are also available.

import 'package:recase/recase.dart';

void main() {
  String sample = 'Just_someSample-text';

  print(sample.camelCase); // Prints 'justSomeSampleText'
  print(sample.constantCase); // Prints 'JUST_SOME_SAMPLE_TEXT'
}

This feature is available in version 3.0.0, and requires at least Dart 2.6

Supports:

  • snake_case
  • dot.case
  • path/case
  • param-case
  • PascalCase
  • Header-Case
  • Title Case
  • camelCase
  • Sentence case
  • CONSTANT_CASE
Changelog

4.1.0

  • Updates default param value syntax

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add recase
pubspec.yaml
name: recase
version: 4.1.0
description: Changes the case of the input text to the desire case convention.
homepage: https://github.com/techniboogie-dart/recase
environment:
  sdk: '>=2.12.0 <3.0.0'
dev_dependencies:
  test: '^1.16.8'

Version history

VersionPublishedArchiveSHA-256
1.0.02017-01-07T06:04:13.306ZDownload49e4b8718f6fa0623d9eb7d46d9c188d471b2c015c656180930ef03be9a8bbe9
1.0.0+12017-01-28T04:36:30.026ZDownloadc12adff6511afd5e3926389eb71c786786e9aa666ef3dbbbd74836ab33d84279
2.0.02018-08-11T03:25:11.775704ZDownloada46ab753c7c7218ce854b09eb4357b24c40fabe3554ccea55ef64ba6366a7797
2.0.0+12018-08-11T03:41:38.922410ZDownload30944783feff5bf3731a4f67707e29b5b7e6efe681d72285c1079a6042434ed3
2.0.12019-01-18T06:36:58.417052ZDownload71a9e299b20ecda7e6bda76ba3755fd184ef204c32678cc8940ff40a1c9b43a7
3.0.02020-01-03T06:27:21.275113ZDownload94294b9bd9bac3075918e2c48d9adaa7aeda26c88c032c362a01aa95573aae4f
3.0.12020-11-09T03:58:38.622368ZDownloadd18e5f9cb089cbf535cf4b772c83ca967b77b62dd9570bcd14d762cfb7590586
4.0.0-nullsafety.02020-12-05T03:36:40.280192ZDownload5f4694bbc5e3ae427260d53c04280ba3ed4ca26b6e5974c825dbd5c368bc1304
4.0.02021-04-20T04:21:06.617514ZDownload7aec9b9f498cba65ed969eda51ea3d86a77bbd633d876b57d9db7d9f94fc6ca5
4.1.02022-09-26T18:51:03.275187ZDownloade4eb4ec2dcdee52dcf99cb4ceabaffc631d7424ee55e56f280bc039737f89213

Dependencies

No direct dependencies declared.