FLUTTER ECOSYSTEM

techniboogie-dart/recase

techniboogie-dart/recase open-source repository details.

Capa do projeto recase
Stars
104
Forks
15
Último push (UTC)
1 de abr. de 2024
Status do projeto
Ativo
techniboogie-dart GitHub avatar
GITHUB Organization

techniboogie-dart ↗

LinguagensDart

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 1 itens
  • testDesenvolvimento^1.16.8

README original

Texto original em inglês. Visite o GitHub para a versão atual.

Expandir / recolher 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