Created
January 18, 2017 22:19
-
-
Save apaleslimghost/0e1eee58f382823ce85b8795aeaf8b3f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const url = require('url'); | |
const merge = require('merge'); | |
module.exports = (base, query) => url.format(merge(url.parse(base), {query})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment