Skip to content

Instantly share code, notes, and snippets.

@tleen
Created August 2, 2013 01:01

Revisions

  1. tleen created this gist Aug 2, 2013.
    1 change: 1 addition & 0 deletions gistfile1.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    url.parse('http://some.long.hostname.here.com/andpages.html').hostname.split('.').reverse().slice(0,2).reverse().join('.');