@thi.ng/distance
Version:
N-dimensional distance metrics & K-nearest neighborhoods for point queries
133 lines (132 loc) • 2.76 kB
JSON
{
"name": "@thi.ng/distance",
"version": "3.0.28",
"description": "N-dimensional distance metrics & K-nearest neighborhoods for point queries",
"type": "module",
"module": "./index.js",
"typings": "./index.d.ts",
"sideEffects": false,
"repository": {
"type": "git",
"url": "https://github.com/thi-ng/umbrella.git"
},
"homepage": "https://thi.ng/distance",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/postspectacular"
},
{
"type": "patreon",
"url": "https://patreon.com/thing_umbrella"
},
{
"type": "liberapay",
"url": "https://liberapay.com/thi.ng"
}
],
"author": "Karsten Schmidt (https://thi.ng)",
"license": "Apache-2.0",
"scripts": {
"build": "yarn build:esbuild && yarn build:decl",
"build:decl": "tsc --declaration --emitDeclarationOnly",
"build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
"clean": "bun ../../tools/src/clean-package.ts",
"doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
"pub": "npm publish --access public",
"test": "bun test",
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
},
"dependencies": {
"@thi.ng/api": "^8.12.12",
"@thi.ng/checks": "^3.8.2",
"@thi.ng/errors": "^2.6.1",
"@thi.ng/heaps": "^2.1.118",
"@thi.ng/math": "^5.15.1",
"@thi.ng/vectors": "^8.6.18"
},
"devDependencies": {
"esbuild": "^0.27.0",
"typedoc": "^0.28.14",
"typescript": "^5.9.3"
},
"keywords": [
"2d",
"3d",
"4d",
"distance",
"eucledian",
"haversine",
"jaccard",
"k-nearest",
"manhattan",
"metric",
"nd",
"neighborhood",
"points",
"query",
"region",
"spatial",
"typescript",
"vector"
],
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=18"
},
"files": [
"./*.js",
"./*.d.ts"
],
"exports": {
".": {
"default": "./index.js"
},
"./api": {
"default": "./api.js"
},
"./argmin": {
"default": "./argmin.js"
},
"./eucledian": {
"default": "./eucledian.js"
},
"./haversine": {
"default": "./haversine.js"
},
"./jaccard": {
"default": "./jaccard.js"
},
"./knearest": {
"default": "./knearest.js"
},
"./manhattan": {
"default": "./manhattan.js"
},
"./nearest": {
"default": "./nearest.js"
},
"./radial": {
"default": "./radial.js"
},
"./squared": {
"default": "./squared.js"
},
"./untransformed": {
"default": "./untransformed.js"
}
},
"thi.ng": {
"alias": "dist",
"related": [
"geom-accel",
"k-means",
"vectors"
],
"year": 2021
},
"gitHead": "deb511294f7a120091b654af0ff7e8a399a465b3\n"
}