marlun / nanolocation

πŸ“- Small window.location library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.pathname + window.hash as a single path. E.g. a pathname of /foo/bar/ and hash of #baz becomes /foo/bar/baz.

License

MIT

About

πŸ“- Small window.location library

License:MIT License


Languages

Language:JavaScript 100.0%