UNPKG

detect-url-change

Version:

Easily detect changes in the browser URL. Works with any method that changes the URL without reloading the page, such as `history.pushState()`, `history.replaceState()`, `history.back()`, etc.

51 lines (50 loc) 1.1 kB
{ "name": "detect-url-change", "version": "1.0.2", "source": "src/index.ts", "main": "dist/index.js", "license": "MIT", "type": "module", "types": "dist/types.d.ts", "author": { "name": "Ayibatari Ibaba", "email": "tariibabadev@gmail.com", "url": "https://github.com/tariibaba" }, "repository": { "type": "git", "url": "https://github.com/tariibaba/detect-url-change-js" }, "homepage": "https://github.com/tariibaba/detect-url-change-js#readme", "keywords": [ "detect", "event", "url", "change", "link", "browser", "listen" ], "dependencies": { "events": "^3.3.0" }, "files": [ "dist/" ], "scripts": { "watch": "parcel watch", "build": "parcel build", "prepublish": "yarn build", "prebuild": "rimraf dist" }, "devDependencies": { "@parcel/packager-ts": "2.8.2", "@parcel/transformer-typescript-types": "2.8.2", "parcel": "^2.8.2", "rimraf": "^3.0.2", "typescript": ">=3.0.0" }, "np": { "2fa": false } }