nanolocation

1.0.1 • Public • Published

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

Dependents (4)

Package Sidebar

Install

npm i nanolocation

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

3.5 kB

Total Files

5

Last publish

Collaborators

  • mreinstein
  • benlyn
  • s3ththompson
  • yoshuawuyts
  • bret
  • lrlna
  • yerkopalma
  • juliangruber
  • timwis
  • ahdinosaur
  • toddself
  • sethvincent
  • maxogden
  • shama
  • freeman-lab
  • feross
  • emilbayes
  • colingourlay
  • jameskyburz
  • almost
  • slaskis
  • ungoldman
  • graforlock
  • tornqvist
  • amongiants
  • goto-bus-stop
  • mafintosh