nanolocation

Small window.location library

MIT 2 个版本
安装
npm install nanolocation
yarn add nanolocation
pnpm add nanolocation
bun add nanolocation
README

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

版本列表
1.0.1 2018-04-11
1.0.0 2017-07-01