https://github.com/vhidvz/naming-conventions
Simple and Fast naming convention library.
https://github.com/vhidvz/naming-conventions
naming-conventions rust rust-lib
Last synced: 1 day ago
JSON representation
Simple and Fast naming convention library.
- Host: GitHub
- URL: https://github.com/vhidvz/naming-conventions
- Owner: vhidvz
- License: mit
- Created: 2023-07-17T09:12:07.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-06T17:06:57.000Z (almost 2 years ago)
- Last Synced: 2024-10-31T11:56:31.040Z (8 months ago)
- Topics: naming-conventions, rust, rust-lib
- Language: Rust
- Homepage: https://docs.rs/naming-conventions
- Size: 3.96 MB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Naming Conventions
[![crates.io][crate-image]][crate-link]
![MSRV][msrv-image]
[![Documentation][doc-image]][doc-link]
[![LICENSE][license-image]][license-link]
[![codecov][codecov-image]][codecov-link]
[![Build Status][build-image]][build-link]
[![dependency status][deps-image]][deps-link]
![downloads][downloads-image]Simple and Fast naming convention library.
## Quick Start Guide
```rust
use naming_conventions::{get_convention, CaseName};fn main() {
let snake_case = get_convention(CaseName::SnakeCase);let string = "camelCase";
println!("to snake_case: {}", snake_case.to(string).unwrap());
println!("is snake_case: {}", snake_case.is(string).unwrap());
}
``````rust
use naming_conventions::{to_snake_case, is_snake_case};fn main() {
let string = "camelCase";println!("to snake_case: {}", to_snake_case(string).unwrap());
println!("is snake_case: {}", is_snake_case(string).unwrap());
}
```## License
[MIT](https://github.com/vhidvz/naming-conventions/blob/main/LICENSE)
[//]: # "badges"
[crate-image]: https://img.shields.io/crates/v/naming-conventions?label=latest
[crate-link]: https://crates.io/crates/naming-conventions
[doc-image]: https://img.shields.io/docsrs/naming-conventions
[doc-link]: https://docs.rs/naming-conventions
[msrv-image]: https://img.shields.io/badge/rustc-1.68+-blue.svg
[build-image]: https://github.com/vhidvz/naming-conventions/actions/workflows/ci.yml/badge.svg
[build-link]: https://github.com/vhidvz/naming-conventions/actions/workflows/ci.yml
[license-image]: https://img.shields.io/github/license/vhidvz/workflow-js?style=flat
[license-link]: https://github.com/vhidvz/workflow-js/blob/master/LICENSE
[codecov-image]: https://raw.githubusercontent.com/vhidvz/naming-conventions/main/docs/coverage/badges/flat.svg
[codecov-link]: https://htmlpreview.github.io/?https://github.com/vhidvz/naming-conventions/blob/main/docs/coverage/index.html
[deps-image]: https://deps.rs/repo/github/vhidvz/naming-conventions/status.svg
[deps-link]: https://deps.rs/repo/github/vhidvz/naming-conventions
[downloads-image]: https://img.shields.io/crates/d/naming-conventions.svg