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