UNPKG

trackswap

Version:

A powerful and flexible GPX parser and encoder library for Node.js and TypeScript. TrackSwap provides comprehensive support for GPX 1.1 format with advanced features like plugin system, middleware support, and optimized performance.

85 lines (84 loc) 2.68 kB
{ "name": "trackswap", "version": "0.0.25", "description": "A powerful and flexible GPX parser and encoder library for Node.js and TypeScript. TrackSwap provides comprehensive support for GPX 1.1 format with advanced features like plugin system, middleware support, and optimized performance.", "main": "dist/index.cjs", "module": "dist/index.js", "types": "dist/index.d.ts", "exports": { ".": { "import": "./dist/index.js", "require": "./dist/index.cjs", "types": "./dist/index.d.ts" } }, "files": [ "dist/index.js", "dist/index.cjs", "dist/index.d.ts", "dist/TrackSwap.d.ts", "dist/types.d.ts", "dist/**/*.d.ts", "README.md", "LICENSE" ], "scripts": { "dev": "ts-node src/index.ts", "clean": "rm -rf dist", "build": "npm run clean && npm run build:types && npm run build:esm && npm run build:cjs && npm run build:optimize", "build:types": "tsc --emitDeclarationOnly", "build:esm": "NODE_ENV=production node build.config.js", "build:cjs": "NODE_ENV=production FORMAT=cjs node build.config.js", "build:dev": "npm run clean && npm run build:types && NODE_ENV=development node build.config.js", "build:optimize": "node scripts/optimize-dist.js", "build:js": "esbuild src/index.ts --bundle --platform=node --target=node14 --format=esm --outfile=dist/index.js --minify --sourcemap", "build:tsc": "tsc && npm run minify", "minify": "terser dist/**/*.js --compress --mangle --output dist/index.min.js --source-map", "analyze": "NODE_ENV=production ANALYZE=true node build.config.js", "start": "node dist/index.js", "test:gpx": "cd example/gpx && rm -f output* *.json *_encoded.xml && node test.js", "test:fit": "cd example/FIT && rm -rf output && node test.js", "prepublishOnly": "npm run build" }, "keywords": [ "gpx", "gps", "parser", "encoder", "geolocation", "track", "waypoint", "route", "typescript", "node", "xml", "geospatial", "trackswap" ], "author": "berber1016", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/berber1016/trackswap.git" }, "homepage": "https://github.com/berber1016/trackswap#readme", "bugs": { "url": "https://github.com/berber1016/trackswap/issues" }, "engines": { "node": ">=14.0.0" }, "devDependencies": { "@types/node": "^22.15.24", "esbuild": "^0.19.12", "terser": "^5.27.0", "ts-node": "^10.9.2", "typescript": "^5.8.3" }, "dependencies": { "@garmin/fitsdk": "^21.171.0", "dayjs": "^1.11.13", "geolib": "^3.3.4", "htmlparser2": "^10.0.0" } }