UNPKG

@phun-ky/angle

Version:

A JavaScript function to calculate the angle between two coordinates

110 lines (109 loc) 3.49 kB
{ "name": "@phun-ky/angle", "version": "1.0.27", "description": "A JavaScript function to calculate the angle between two coordinates", "keywords": [ "math", "cartesian", "coordinates", "direction", "atan", "atan2", "theta", "pi", "Math.PI", "radian", "radians", "degree", "degrees", "angle" ], "homepage": "https://phun-ky.net/projects/angle", "bugs": { "url": "https://github.com/phun-ky/angle/issues" }, "repository": { "type": "git", "url": "git+https://github.com/phun-ky/angle.git" }, "funding": "https://github.com/phun-ky/angle?sponsor=1", "license": "MIT", "author": "Alexander Vassbotn Røyne-Helgesen <alexander@phun-ky.net>", "type": "module", "main": "dist/angle.js", "module": "dist/angle.esm.js", "types": "dist/angle.d.ts", "files": [ "/dist/angle.esm.js", "/dist/angle.esm.js.map", "/dist/angle.js", "/dist/angle.js.map", "/dist/angle.d.ts" ], "scripts": { "build": "npm run clean && npm run rollup", "clean": "rm -rf dist dts", "commit": "npx git-cz", "docs:gen": "node ./node_modules/.bin/typedoc", "release": "release-it", "rollup": "rollup -c", "prerollup:dev": "npm run clean", "rollup:dev": "rollup -c -w", "style:code": "npx putout src", "style:format": "./node_modules/.bin/eslint -c ./eslint.config.mjs src --fix && ./node_modules/.bin/prettier --write ./eslint.config.mjs src", "style:lint": "./node_modules/.bin/eslint -c ./eslint.config.mjs src && ./node_modules/.bin/prettier --check src", "test": "glob -c \"node --import tsx --import global-jsdom/register --test --no-warnings\" \"./src/**/__tests__/**/*.[jt]s\"", "pretest:ci": "rm -rf coverage && mkdir -p coverage", "test:ci": "glob -c \"node --import tsx --import global-jsdom/register --test --no-warnings --experimental-test-coverage --test-reporter=cobertura --test-reporter-destination=coverage/cobertura-coverage.xml --test-reporter=spec --test-reporter-destination=stdout\" \"./src/**/__tests__/**/*.[jt]s\"" }, "config": { "commitizen": { "path": "./node_modules/git-cz" } }, "dependencies": { "@phun-ky/typeof": "^1.2.2" }, "devDependencies": { "@release-it/conventional-changelog": "^10.0.0", "@rollup/plugin-node-resolve": "^16.0.1", "@rollup/plugin-terser": "^0.4.4", "@stylistic/eslint-plugin": "^5.0.0", "@testing-library/dom": "^10.4.0", "@testing-library/jest-dom": "^6.4.2", "@types/node": "^24.0.3", "cobertura": "^1.0.1", "eslint": "^9.20.0", "eslint-config-phun-ky": "^1.0.0", "git-cz": "^4.9.0", "glob": "^11.0.1", "global-jsdom": "^26.0.0", "jsdom": "^26.0.0", "prettier": "^3.2.5", "putout": "^40.0.10", "release-it": "^19.0.1", "remark-github": "^12.0.0", "remark-toc": "^9.0.0", "rollup": "^4.12.0", "rollup-plugin-dts": "^6.1.0", "rollup-plugin-typescript2": "^0.36.0", "tslib": "^2.3.1", "tsx": "^4.7.1", "typedoc": "^0.28.3", "typedoc-plugin-frontmatter": "^1.0.0", "typedoc-plugin-markdown": "^4.2.3", "typedoc-plugin-mdn-links": "^5.0.1", "typedoc-plugin-no-inherit": "^1.4.0", "typedoc-plugin-remark": "^2.0.0", "typedoc-plugin-rename-defaults": "^0.7.1", "typescript": "^5.0.0", "unified-prettier": "^2.0.1" }, "engines": { "node": ">=22.0.0", "npm": ">=10.8.2" }, "publishConfig": { "access": "public" } }