From cdeea1fb4d6bf75999e7dfccf8f9217117bd5320 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20J=C3=B6rg=20Schmidt?= Date: Wed, 28 May 2014 20:10:24 +0200 Subject: [PATCH] README <3 --- README.md | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 94b33d2..aa03199 100644 --- a/README.md +++ b/README.md @@ -54,20 +54,16 @@ docuri.merge('mytype/myid/mysubtype/myindex/myversion', { Use custom definition: ```js -docuri(['id', 'meta']).parse('42/answer'); -// { -// id: '42', -// meta: 'answer' -// } -``` - -Access current definition: -```js docuri(); // ['type', 'id', 'subtype', 'index', 'version'] docuri(['id', 'meta']); docuri(); // ['id', 'meta'] +docuri.parse('42/answer'); +// { +// id: '42', +// meta: 'answer' +// } ``` ## Browser support