Created
June 3, 2011 16:58
-
-
Save jeremys/1006680 to your computer and use it in GitHub Desktop.
Unicode URL parsing in Node
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
var url = require('url'), | |
assert = require('assert'); | |
var test = 'http://➡.ws/pageloads'; | |
var parsed = url.parse(test); | |
assert.equal(parsed.host, '➡.ws'); | |
console.log('URL parsed correctly.'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment