Liking cljdoc? Tell your friends :D

lettercase

The aim is to create a declarative, simple API for manipulating the case convention of keywords, symbols, and strings.

This solves the problem of manipulating case when communicating between different technologies. For example, converting your lisp-cased keywords into lowercase strings separated by underscores for your relational database.

This project is similar to camel-snake-kebab. It differs in two primary areas:

  • It does not enable or allow implicit conversion between named types.
  • It has aspirations of much wider scope.

Supported Clojure Versions

lettercase is tested on Clojure 1.5.1 only. It may work on other Clojure versions.

Maturity

This is beta quality software.

Installation

lettercase is available as a Maven artifact from Clojars:

[org.tobereplaced/lettercase "1.0.0"]

lettercase follows Semantic Versioning. Please note that this means the public API for this library is considered stable, and any breaking changes must occur after a 2.0.0 release.

Documentation

The Codox API Documentation is extensive and is the best way of understanding the library. If you are looking for a quick example:

(ns lettercase-usage
    (:require [org.tobereplaced.lettercase :refer [lower-hyphen-keyword]]))

(lower-hyphen-keyword "Foo the BAR")
;; :foo-the-bar

Support

Please post any comments, concerns, or issues to the Github issues page. I welcome any and all feedback. If you have a use-case that is not currently supported, but that you believe belongs in this library, let me know!

License

Copyright © 2013 ToBeReplaced

Distributed under the Eclipse Public License, the same as Clojure. The license can be found at epl-v10.html in the root of this distribution.

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close