UNPKG

upath

Version:

A drop-in replacement / proxy to Node.js path, replacing \\ with / for all results & adding file extension functions.

99 lines (98 loc) 2.32 kB
{ "name": "upath", "description": "A drop-in replacement / proxy to Node.js path, replacing \\\\ with / for all results & adding file extension functions.", "version": "3.0.6", "homepage": "https://github.com/anodynos/upath/", "author": { "name": "Angelos Pikoulas", "email": "agelos.pikoulas@gmail.com" }, "license": "MIT", "funding": [ { "type": "github", "url": "https://github.com/sponsors/anodynos" }, { "type": "polar", "url": "https://polar.sh/anodynos" }, { "type": "tidelift", "url": "https://tidelift.com/subscription/pkg/npm-upath" } ], "keywords": [ "path", "unix", "windows", "cross-platform", "extension", "file extension", "replace extension", "change extension", "trim extension", "add extension", "default extension", "UNC paths", "typescript", "esm", "forward-slash" ], "repository": { "type": "git", "url": "git+https://github.com/anodynos/upath.git" }, "bugs": { "url": "https://github.com/anodynos/upath/issues" }, "type": "module", "main": "./dist/index.cjs", "module": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { ".": { "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }, "require": { "types": "./dist/index.d.cts", "default": "./dist/index.cjs" } } }, "files": [ "dist", "LICENSE", "CHANGELOG.md" ], "engines": { "node": ">=20" }, "scripts": { "dev": "npx tsup --watch", "build": "npx tsup", "test": "npx jest", "test:coverage": "npx jest --coverage", "lint": "npx tsc --noEmit", "prepublishOnly": "npm run build", "test:integration": "npm run build && node test/integration/cjs-test.cjs && node test/integration/esm-test.mjs", "prepare": "husky" }, "lint-staged": { "*.{ts,tsx,js,jsx,mjs,cjs,json,md,mdx,css,scss,yaml,yml,html}": "prettier --write" }, "devDependencies": { "@types/jest": "^29.5.0", "@types/node": "^20.0.0", "husky": "^9.1.7", "jest": "^29.7.0", "lint-staged": "^16.4.0", "prettier": "^3.8.1", "ts-jest": "^29.2.0", "ts-node": "^10.9.2", "tsup": "^8.0.0", "typescript": "^5.5.0" } }