UNPKG

url-normalize

Version:

Normalize URLs to a standardized form. HTTPS by default, flexible configuration, custom protocols, domain extraction, humazing URL, and punycode support. Both CJS & ESM modules available.

61 lines (60 loc) 1.59 kB
{ "type": "module", "name": "url-normalize", "version": "2.1.1", "license": "MIT", "scripts": { "build": "rm -rf dist && pkgroll --minify && ls -lah dist", "test": "uvu -r tsm tests/", "test-cov": "c8 --include=src yarn test", "test-watch": "watchexec -e ts 'clear && yarn test'", "bench": "node --loader tsm --no-warnings benchmark.ts", "format": "prettier --write .", "lint": "tsc --noEmit && prettier --check .", "ci": "yarn lint && yarn test-cov && yarn build" }, "dependencies": { "@types/punycode": "2.1.4", "punycode": "2.3.1" }, "devDependencies": { "c8": "10.1.2", "pkgroll": "2.5.0", "prettier": "3.3.3", "prettier-plugin-organize-imports": "4.1.0", "tsm": "2.3.0", "typescript": "5.6.3", "uvu": "0.5.6" }, "author": "Vlad Pronsky <v.pronsky@gmail.com>", "repository": "vladkens/url-normalize", "description": "Normalize URLs to a standardized form. HTTPS by default, flexible configuration, custom protocols, domain extraction, humazing URL, and punycode support. Both CJS & ESM modules available.", "keywords": [ "canonical", "domain", "extract", "humanization", "humanize", "normalization", "normalize", "punycode", "querystrings", "unicode", "uri", "url" ], "files": [ "dist" ], "types": "./dist/main.d.cts", "exports": { "require": { "types": "./dist/main.d.cts", "default": "./dist/main.cjs" }, "import": { "types": "./dist/main.d.mts", "default": "./dist/main.mjs" } } }