Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: weavejester/coercer
base: 1417894855
...
head fork: weavejester/coercer
compare: d87d8dd312
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 28 additions and 6 deletions.
  1. +27 −5 README.md
  2. +1 −1  project.clj
View
32 README.md
@@ -1,15 +1,37 @@
-# coercer
+# Coercer
-I'm an app. Or maybe I'm a library? I haven't decided yet.
+A library for converting data of one type into another type.
-The choice is up to you!
+## Installation
+
+Add the following dependency to your `project.clj` file:
+
+ [coercer "0.1.0"]
## Usage
-FIXME
+Use the `coerce` multimethod to convert between types:
+
+```clojure
+(use 'coercer.core)
+
+(coerce 1 String) ; => "1"
+(coerce "5.5" Double) ; => 5.5
+(coerce "foo" Keyword) ; => :foo
+(coerce :abc String) ; => "abc"
+```
+
+Currently `coerce` supports the following types by default:
+
+* String
+* Integer
+* Float
+* Double
+* Keyword
+* Symbol
## License
-Copyright © 2012 FIXME
+Copyright © 2012 James Reeves
Distributed under the Eclipse Public License, the same as Clojure.
View
2  project.clj
@@ -1,4 +1,4 @@
-(defproject coercer "0.1.0-SNAPSHOT"
+(defproject coercer "0.1.0"
:description "Library to convert Clojure data into different types"
:url "https://github.com/weavejester/coercer"
:license {:name "Eclipse Public License"

No commit comments for this range

Something went wrong with that request. Please try again.