From 91265d24c59ba0b58385e9d992dbf112cd946d75 Mon Sep 17 00:00:00 2001 From: andi pieper Date: Mon, 19 May 2014 15:40:00 +0200 Subject: [PATCH] added merge to readme --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 278a1e5..9f8a6b9 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,14 @@ require('docuri').stringify({ // 'mytype/myid/mysubtype/myversion/myindex' ``` +Change id string components: +```js +require('docuri').merge('mytype/myid/mysubtype/myversion/myindex', { + type: 'my_new_type', +}); +// 'my_new_type/myid/mysubtype/myversion/myindex' + + ## Browser support To use docid in your client-side application, browserify it like this: