1.0.1 • Published 6 years ago

nanolocation v1.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

nanolocation stability

npm version build status downloads js-standard-style

Small window.location library

Usage

var nanolocation = require('nanolocation')
var location = nanolocation()
console.log(location)

API

location = nanolocation()

Get the current window.location.pathname + window.location.hash as a single path. E.g. a pathname of /foo/bar/ and hash of #baz becomes /foo/bar/baz.

License

MIT