From 7da0b38e4889a6156a22a69e55e1e343fd39af36 Mon Sep 17 00:00:00 2001 From: chee Date: Fri, 5 May 2017 02:29:10 +0100 Subject: [PATCH] add using example to readme --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 81900e0..0e6a367 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,16 @@ the code is a messy state machine based on douglas crockford's thanks everybody +## using +```js +const plist = `{ + "~f" = "moveWordForward:", + "~b" = "moveWordBackward:" +}` +const {parse} = require('nextstep-plist') +parse(plist) // {'~f': 'moveWordForward:', '~b': 'moveWordBackward:'} +``` + ## todo * clean up this code * support `` syntax