Skip to content

Instantly share code, notes, and snippets.

@yowcow
Created September 12, 2017 03:04
Show Gist options
  • Save yowcow/e186ce80a229c5df4211a24b17430ca6 to your computer and use it in GitHub Desktop.
Save yowcow/e186ce80a229c5df4211a24b17430ca6 to your computer and use it in GitHub Desktop.
Parse URI query on Node.js REPL
const url = require('url')
const qs = require('querystring')
const givenURL = 'http://hogefuga.com/?foo=bar&hoge=fuga'
qs.parse(url.parse(givneURL).query)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment