Skip to content

StyleSniffer is a Java library designed to help you effortlessly detect and analyze the case style of any given string. Whether you’re dealing with camelCase, snake_case, PascalCase, or any other naming convention.

License

Notifications You must be signed in to change notification settings

sebastienvermeille/StyleSniffer

Repository files navigation

StyleSniffer: The Ultimate Case Style Detective

Maven Central License: MIT join discord

Quality Gate Status Coverage Lines of Code code style OpenSSF Best Practices

StyleSniffer Logo

StyleSniffer is a Java library crafted to simplify the detection and analysis of case styles in strings.

Whether you're dealing with camelCase, snake_case, PascalCase, or any other naming convention, StyleSniffer provides a straightforward and efficient way to understand and manage these styles.

Features:

  • Detect Case Styles: Automatically identify common case styles such as camelCase, snake_case, PascalCase, and more.
  • Flexible Integration: Easily integrate StyleSniffer into your Java applications
  • Simple API: Enjoy a user-friendly API designed for seamless detection.

Why StyleSniffer?

StyleSniffer excels at uncovering the subtle nuances of string case styles.

  • Playful Precision: Experience the blend of technical accuracy with a hint of fun.
  • Easy to Use: Whether you're a seasoned developer or just starting out, StyleSniffer's intuitive interface makes case style detection straightforward.
  • Reliable: Depend on StyleSniffer for consistent and accurate results.

Get Started

Import the dependency: pom.xml

<dependency>
    <groupId>dev.cookiecode</groupId>
    <artifactId>stylesniffer-impl</artifactId>
    <version>0.0.1</version>
</dependency>

Sample.java

StyleSniffer styleSniffer = StyleSnifferFactory.createStyleSniffer();

Optional<CaseStyle> caseStyle = styleSniffer.getCaseStyle("myVariableName");
caseStyle.ifPresent(style -> System.out.println("Matched style: " + style.getName()));

Set<String> supportedStyles = styleSniffer.getSupportedCaseStyles();
System.out.println("Supported styles: " + supportedStyles);

Visit the online documentation: https://stylesniffer.cookiecode.dev/

About

StyleSniffer is a Java library designed to help you effortlessly detect and analyze the case style of any given string. Whether you’re dealing with camelCase, snake_case, PascalCase, or any other naming convention.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages