Skip to content
/ word Public

A dependency free way to switch between plural, singular, kebab and snake case words

License

Notifications You must be signed in to change notification settings

swlkr/word

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

word

A zero dependency way to switch between plural, singular, snake and kebab case

Install

lein: [swlkr/word "0.1.0"]

deps: {swlkr/word {:mvn/version "0.1.0"}}

How Do I Use This?

(ns how-to-use
  (:require [word.core :as word]))

(word/plural "customer") ; => users
(word/singular "customers") ; => user

(word/kebab "hello_world") ; => hello-world
(word/snake "hello-world") ; => hello_world

; works on keywords too!

(word/kebab :hello_world) ; => :hello-world
(word/snake :hello-world) ; => :hello_world

About

A dependency free way to switch between plural, singular, kebab and snake case words

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published