FLUTTER ECOSYSTEM

techniboogie-dart/recase

techniboogie-dart/recase open-source repository details.

recase のプロジェクト画像
Stars
104
Forks
15
最終プッシュ(UTC)
2024/04/01
プロジェクト状態
公開中
techniboogie-dart GitHub avatar
GITHUB Organization

techniboogie-dart ↗

言語Dart

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 1 件
  • test開発用^1.16.8

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

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