From 8f0a6d785fcc6f3feb3e501752722d79dd7bef06 Mon Sep 17 00:00:00 2001 From: Gregorio Setti Date: Tue, 8 Sep 2015 12:37:25 +0200 Subject: [PATCH] Create README.md --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..0c23814 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +### Urlo + +A node package to generate url from a string and params + +Urlo does just one thing: + +``` +var urlo = require("urlo"); +var myUrl = "http://my-awesome-site.com/author/:authorId/posts/:postId"; + +urlo(url, { authorId: 1, postId: 2, otherParam: "awesome" }) +=> 'http://my-awesome-site.com/author/1/posts/2?otherParam=awesome' +```