All Projects → vad3x → case-extensions

vad3x / case-extensions

Licence: MIT license
Change any string case to PascalCase/camelCase/kebab-case/snake_case

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to case-extensions

github-wc-polyfill
Ensure that all GitHub and GitLab scripts required for UXP and SeaMonkey are loaded correctly
Stars: ✭ 87 (+180.65%)
Mutual labels:  extension
stack-exchange-notifications
Add-ons for Stack Exchange sites, like: askdifferent, askubuntu, serverfault, stackoverflow and superuser
Stars: ✭ 21 (-32.26%)
Mutual labels:  extension
prototyped.js
Some common Typescript prototypes
Stars: ✭ 22 (-29.03%)
Mutual labels:  string
EPPlus.DataExtractor
EPPlus extension that make easier to extract POCO from excel tables
Stars: ✭ 65 (+109.68%)
Mutual labels:  extension
code-tours-github
A browser extension to allow to play Code Tours directly from the Browser.
Stars: ✭ 52 (+67.74%)
Mutual labels:  extension
ormsgpack
Msgpack serialization/deserialization library for Python, written in Rust using PyO3 and rust-msgpack. Reboot of orjson. msgpack.org[Python]
Stars: ✭ 88 (+183.87%)
Mutual labels:  extension
prependers
Easily and cleanly extend third-party code.
Stars: ✭ 24 (-22.58%)
Mutual labels:  extension
myleetcode
♨️ Detailed Java & Python solution of LeetCode.
Stars: ✭ 34 (+9.68%)
Mutual labels:  string
youtube-audio
Disable videos on Youtube saves resource usage (Youtube becomes audio only)
Stars: ✭ 13 (-58.06%)
Mutual labels:  extension
vs-code-kirby-snippets
Kirby Cheatsheet for Visual Studio Code
Stars: ✭ 23 (-25.81%)
Mutual labels:  extension
dist
🗺️ Python/C API extension module that computes distance between two coordinates on the world map
Stars: ✭ 13 (-58.06%)
Mutual labels:  extension
SwitchCaseGenerator
An Xcode Source Editor Extension that generates a swift switch case statement based on selected enum cases
Stars: ✭ 63 (+103.23%)
Mutual labels:  extension
normalize-text
📝 Provides a simple API to normalize texts, whitespaces, paragraphs & diacritics.
Stars: ✭ 54 (+74.19%)
Mutual labels:  string
guillotine
Guillotine is a gnome extension designed for efficiently carrying out executions of commands from a customizable menu. Simply speaking: it is a highly customizable menu that enables you to launch commands and toggle services.
Stars: ✭ 28 (-9.68%)
Mutual labels:  extension
home-assistant-extension
📌 Home Assistant browser extension
Stars: ✭ 143 (+361.29%)
Mutual labels:  extension
pharext
Distribute your PHP extension as self-installing phar executable
Stars: ✭ 57 (+83.87%)
Mutual labels:  extension
PSStringScanner
Provides lexical scanning operations on a String
Stars: ✭ 45 (+45.16%)
Mutual labels:  string
couplet
Unicode code points support for Clojure
Stars: ✭ 21 (-32.26%)
Mutual labels:  string
NotionX
A Browser extension that enhances Notion Web App experience.一个增强 Notion Web端体验的浏览器插件。
Stars: ✭ 94 (+203.23%)
Mutual labels:  extension
browser-extensions
我的一些 userjs & usercss
Stars: ✭ 63 (+103.23%)
Mutual labels:  extension

.NET CaseExtensions

codecov

The library that allows to change any string case to PascalCase/camelCase/kebab-case/snake_case/Train-Case.

Usage

using CaseExtensions;

    ...

    var source = "The Quick Brown Fox";
    var result = source.ToKebabCase(); // the-quick-brown-fox

More Examples

Inter-style case translations are supported just like translations from plain English.

Here are a few demo expressions. Each of these expression evaluates to true.

// from plain English
"The Quick Brown Fox".ToCamelCase() == "theQuickBrownFox"
"The Quick Brown Fox".ToKebabCase() == "the-quick-brown-fox"
"The Quick Brown Fox".ToPascalCase() == "TheQuickBrownFox"
"The Quick Brown Fox".ToSnakeCase() == "the_quick_brown_fox"
"The Quick Brown Fox".ToTrainCase() == "The-Quick-Brown-Fox"

// from camelCase
"theQuickBrownFox".ToCamelCase() == "theQuickBrownFox"
"theQuickBrownFox".ToKebabCase() == "the-quick-brown-fox"
"theQuickBrownFox".ToPascalCase() == "TheQuickBrownFox"
"theQuickBrownFox".ToSnakeCase() == "the_quick_brown_fox"
"theQuickBrownFox".ToTrainCase() == "The-Quick-Brown-Fox"

// from kebab-case
"the-quick-brown-fox".ToCamelCase() == "theQuickBrownFox"
"the-quick-brown-fox".ToKebabCase() == "the-quick-brown-fox"
"the-quick-brown-fox".ToPascalCase() == "TheQuickBrownFox"
"the-quick-brown-fox".ToSnakeCase() == "the_quick_brown_fox"
"the-quick-brown-fox".ToTrainCase() == "The-Quick-Brown-Fox"

// from PascalCase
"TheQuickBrownFox".ToCamelCase() == "theQuickBrownFox"
"TheQuickBrownFox".ToKebabCase() == "the-quick-brown-fox"
"TheQuickBrownFox".ToPascalCase() == "TheQuickBrownFox"
"TheQuickBrownFox".ToSnakeCase() == "the_quick_brown_fox"
"TheQuickBrownFox".ToTrainCase() == "The-Quick-Brown-Fox"

// from snake_case
"the_quick_brown_fox".ToCamelCase() == "theQuickBrownFox"
"the_quick_brown_fox".ToKebabCase() == "the-quick-brown-fox"
"the_quick_brown_fox".ToPascalCase() == "TheQuickBrownFox"
"the_quick_brown_fox".ToSnakeCase() == "the_quick_brown_fox"
"the_quick_brown_fox".ToTrainCase() == "The-Quick-Brown-Fox"

// from Train-Case
"The-Quick-Brown-Fox".ToCamelCase() == "theQuickBrownFox"
"The-Quick-Brown-Fox".ToKebabCase() == "the-quick-brown-fox"
"The-Quick-Brown-Fox".ToPascalCase() == "TheQuickBrownFox"
"The-Quick-Brown-Fox".ToSnakeCase() == "the_quick_brown_fox"
"The-Quick-Brown-Fox".ToTrainCase() == "The-Quick-Brown-Fox"

Tests

To run tests:

dotnet test test/CaseExtensions.Tests/project.json

License

The MIT License (MIT)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].