package
Small window.location library
npm install nanolocationGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 2 packages.
8.6 kB
Includes dependencies.
Small window.location library
var nanolocation = require('nanolocation')
var location = nanolocation()
console.log(location)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.
Registry package owners.