Skip to content

A node package to generate url from a string and params

Notifications You must be signed in to change notification settings

desmondhume/urlo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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(myUrl, { authorId: 1, postId: 2, otherParam: "awesome" })
=> 'http://my-awesome-site.com/author/1/posts/2?otherParam=awesome'

About

A node package to generate url from a string and params

Resources

Stars

Watchers

Forks

Packages

No packages published