FLUTTER ECOSYSTEM

izolate/slugify

문자열을 슬러그로 변환하여 URL, 파일 이름, ID 등에 유용합니다

slugify 프로젝트 이미지
Stars
23
Forks
9
최근 푸시(UTC)
2024. 8. 15.
프로젝트 상태
활성
Yosh GitHub avatar
GITHUB User

Yosh ↗

Computer nerd who likes cold weather ❄️

@rittenlabsBuffalo NY
언어Dart

기술 주제

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 2 개
  • test개발 의존성^1.16.4
  • effective_dart개발 의존성^1.0.0

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

slugify

Converts any String to a slug. Useful for URLs, filenames, IDs, and more.

Features

  • Multi-language support
  • Removes unfriendly characters
  • Approximates replacements for characters not in the Latin alphabet
  • Configurable options
  • Null safe with Dart 2.12

Usage

import 'package:slugify/slugify.dart';

// Use with default options.
var slug = slugify('Hello, World! Foo Bar');
print(slug); // hello-world-foo-bar

// Use with custom options.
var slug2 = slugify('Hello, World! Foo Bar', lowercase: false, delimiter: '🙂');
print(slug2) // Hello🙂World🙂Foo🙂Bar
Options
Name Type Default Description
delimiter String "-" Separator between words
lowercase bool true Convert text to lowercase