1.0.1 • Published 9 years ago

urlo v1.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
9 years ago

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'