document-pathname
v2.0.0
Published
Simple interface to document.location.pathname that returns / in Node
Downloads
10
Readme
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