2.0.0 • Published 10 years ago
document-pathname v2.0.0
document-pathname 
Simple interface to
document.location.pathnamethat returns/in Node
Install
$ npm install --save document-pathnameUsage
var pathname = require('document-pathname')
pathname()
//=> '/the/path' in a browser
//=> '/' in nodeLicense
MIT © Ben Drucker