Skip to content

Instantly share code, notes, and snippets.

@apaleslimghost
Created January 18, 2017 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apaleslimghost/0e1eee58f382823ce85b8795aeaf8b3f to your computer and use it in GitHub Desktop.
Save apaleslimghost/0e1eee58f382823ce85b8795aeaf8b3f to your computer and use it in GitHub Desktop.
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