UNPKG

@sports-alliance/sports-lib

Version:

A Library to for importing / exporting and processing GPX, TCX, FIT and JSON files from services such as Strava, Movescount, Garmin, Polar etc

97 lines 3.07 kB
{ "name": "@sports-alliance/sports-lib", "version": "17.2.1", "description": "A Library to for importing / exporting and processing GPX, TCX, FIT and JSON files from services such as Strava, Movescount, Garmin, Polar etc", "keywords": [ "gpx", "tcx", "fit", "activities", "json", "suunto", "garmin", "polar", "export", "import", "reader", "library", "utility", "parser" ], "publishConfig": { "access": "public" }, "main": "lib/cjs/index.js", "module": "lib/esm/index.js", "types": "lib/esm/index.d.ts", "exports": { ".": { "types": "./lib/esm/index.d.ts", "import": "./lib/esm/index.js", "require": "./lib/cjs/index.js" } }, "scripts": { "build": "npm run clean && tsc --emitDeclarationOnly --outDir lib/esm --project tsconfig.esm.json && tsc --project tsconfig.cjs.json && esbuild src/index.ts --bundle --format=esm --outfile=lib/esm/index.js --platform=node --packages=external && echo '{\"type\": \"commonjs\"}' > lib/cjs/package.json && echo '{\"type\": \"module\"}' > lib/esm/package.json", "watch": "npm run build -- --watch", "clean": "rimraf ./lib/", "generate:docs": "npm run build && typedoc --out docs --target es6 --theme minimal --mode file src", "lint": "eslint .", "lint:fix": "eslint . --fix", "test": "NODE_OPTIONS=--experimental-vm-modules jest --forceExit", "test-coverage": "NODE_OPTIONS=--experimental-vm-modules jest --coverage", "report:tss": "npx --yes tsx scripts/generate-tss-validation-report.ts", "prettier:fix": "prettier --write .", "prepare": "husky install" }, "repository": { "type": "git", "url": "git://github.com/sports-alliance/sports-lib.git" }, "bugs": { "url": "https://github.com/sports-alliance/sports-lib/issues" }, "homepage": "https://github.com/sports-alliance/sports-lib/", "author": "Sports-Alliance", "license": "SEE LICENSE IN LICENSE.md", "dependencies": { "@googlemaps/polyline-codec": "^1.0.28", "fast-xml-parser": "^5.3.3", "fit-file-parser": "^3.0.2", "geolib": "^3.3.4", "gpx-builder": "^3.7.8", "kalmanjs": "^1.1.0", "lowpassf": "^0.5.0", "moving-median": "^1.0.0" }, "devDependencies": { "@babel/core": "^7.28.5", "@babel/preset-env": "^7.28.5", "@garmin/fitsdk": "^21.188.0", "@types/jest": "^30.0.0", "@types/node": "^25.0.5", "@types/xmldom": "^0.1.34", "@typescript-eslint/eslint-plugin": "^8.52.0", "@typescript-eslint/parser": "^8.52.0", "@xmldom/xmldom": "^0.8.11", "babel-jest": "^30.2.0", "buffer": "^6.0.3", "esbuild": "^0.27.2", "eslint": "^9.39.2", "eslint-config-prettier": "^10.1.8", "eslint-plugin-prettier": "^5.5.4", "husky": "^9.1.7", "jest": "^30.2.0", "prettier": "^3.7.4", "pretty-quick": "^4.2.2", "rimraf": "^6.1.2", "ts-jest": "^29.4.6", "typedoc": "^0.28.15", "typescript": "^5.9.3" }, "husky": { "hooks": { "pre-commit": "pretty-quick --staged" } } }