Skip to content

YAML encoding and decoding for Clojure via SnakeYAML

License

Notifications You must be signed in to change notification settings

elliot42/clj-yaml

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clj-yaml provides YAML encoding and decoding for Clojure via the SnakeYAML Java library.

Usage

(require '[clj-yaml.core :as yaml])

(yaml/generate-string
  [{:name "John Smith", :age 33}
   {:name "Mary Smith", :age 27}])
"- {name: John Smith, age: 33}\n- {name: Mary Smith, age: 27}\n"

(yaml/parse-string "
- {name: John Smith, age: 33}
- name: Mary Smith
  age: 27
")
=> ({:name "John Smith", :age 33}
    {:name "Mary Smith", :age 27})

Installation

clj-yaml is available as a Maven artifact from Clojars:

:dependencies
  [["org.clojars.elliot42/clj-yaml" "0.4.1"]
   ...]

Development

$ git clone git://github.com/lancepantz/clj-yaml.git
$ lein deps
$ lein test
$ lein install

About

YAML encoding and decoding for Clojure via SnakeYAML

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Clojure 100.0%