Socket
Book a DemoInstallSign in
Socket

nanolocation

Package Overview
Dependencies
Maintainers
26
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nanolocation

Small window.location library

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
29
383.33%
Maintainers
26
Weekly downloads
 
Created
Source

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

Keywords

location

FAQs

Package last updated on 11 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts