Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dsheets/ocaml-osx-plutil

The OS X plutil plist command as an OCaml library
https://github.com/dsheets/ocaml-osx-plutil

Last synced: 3 months ago
JSON representation

The OS X plutil plist command as an OCaml library

Awesome Lists containing this project

README

        

## The OS X plutil plist command as an OCaml library

```ocaml
# Plutil.to_human "k";;
- : (bytes, bytes) Result.result = Result.Ok "{\n \"k\" => 1\n}"
# Plutil.to_json "k";;
- : (bytes, bytes) Result.result = Result.Ok "{\"k\":true}"
```

Includes conversion *to* and *from* plist **xml1**, **binary1**, and
**json** formats as well as JSON pretty-printing and a human-readable
format.