FLUTTER ECOSYSTEM

izolate/slugify

एक स्ट्रिंग को स्लग में बदलता है, जो URL, फ़ाइल नाम, ID आदि के लिए उपयोगी है

slugify प्रोजेक्ट कवर
Stars
23
Forks
9
अंतिम पुश (UTC)
15 अग॰ 2024
प्रोजेक्ट स्थिति
सक्रिय
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