UNPKG

svg-path-properties

Version:

Calculate the length for an SVG path, to use it with node or a Canvas element

89 lines (88 loc) 2.25 kB
{ "name": "svg-path-properties", "version": "2.0.0", "description": "Calculate the length for an SVG path, to use it with node or a Canvas element", "types": "dist/main.d.ts", "type": "module", "exports": { ".": { "import": { "types": "./dist/main.d.ts", "default": "./dist/main.mjs" }, "require": { "types": "./dist/main.d.cts", "default": "./dist/main.cjs" }, "default": "./dist/main.mjs" }, "./dist/*": { "types": "./dist/*.d.ts", "import": "./dist/*.mjs", "require": "./dist/*.cjs" } }, "engines": { "node": ">=22.0.0" }, "packageManager": "npm@8.4.0", "files": [ "dist", "src", "bin" ], "scripts": { "build": "tsc && tsup --minify terser", "lint": "eslint . && npm run lint:lockfile", "lint:fix": "eslint . --fix", "lint:lockfile": "lockfile-lint --path package-lock.json --validate-https --allowed-hosts npm yarn", "test": "c8 node --import tsx --test test/*.test.ts", "test:watch": "c8 node --import tsx --test --watch test/**/*.test.ts", "coverage:view": "open coverage/lcov-report/index.html", "version": "changeset version", "release": "changeset publish" }, "author": { "name": "Roger Veciana i Rovira", "url": "https://geoexamples.com" }, "publishConfig": { "provenance": true, "access": "public" }, "license": "ISC", "keywords": [ "path", "getPointAtLength", "length", "canvas", "svg" ], "homepage": "http://geoexamples.com/path-properties/", "repository": { "type": "git", "url": "https://github.com/rveciana/svg-path-properties.git" }, "devDependencies": { "@changesets/changelog-github": "^0.5.0", "@changesets/cli": "^2.27.7", "@types/node": "24.0.15", "c8": "^10.1.2", "eslint": "^9.6.0", "eslint-plugin-security": "^3.0.1", "husky": "^9.0.11", "lint-staged": "16.1.2", "lockfile-lint": "^4.14.0", "neostandard": "0.12.2", "terser": "^5.43.1", "tsup": "^8.1.0", "tsx": "^4.19.4", "typescript": "^5.5.3", "validate-conventional-commit": "^1.0.4" }, "lint-staged": { "**/*.{js,json}": [ "npm run lint:fix" ] } }