#conventions #naming #validation #sanitization #camel-case #convert #word

sanename

sanename.org compatible validation and sanitization library

3 releases

0.1.2 Jan 27, 2020
0.1.1 Jan 25, 2020
0.1.0 Jan 15, 2020

#9 in #sanitization


Used in 2 crates

GPL-3.0-only

15KB
304 lines

sanename-rs

S

sanename provides sensible naming rules to avoid escaping and conversion issues.

This is a Rust package to validate input and convert between the naming conventions supported by sanename.

  • sanename - the default sanename package naming convention
  • ClassCase - JavaClassName naming convention
  • camelCase - camelCase with lowercase first word naming convention
  • CONSTANT_CASE - naming convention for constants and environment variables
  • snake_case - aka kernel_case naming conventions

Also provides a method to sanitize input.

No runtime deps