document-pathname

2.0.0 • Public • Published

document-pathname Build Status

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

Package Sidebar

Install

npm i document-pathname

Weekly Downloads

3

Version

2.0.0

License

MIT

Last publish

Collaborators

  • bendrucker