{"_id":"globalping","_rev":"10-1f9a2ffebaa2021b9537d6b98acd9d83","name":"globalping","dist-tags":{"latest":"0.4.0"},"versions":{"0.0.0":{"name":"globalping","version":"0.0.0","keywords":[],"author":{"name":"Sukka","email":"npm@skk.moe"},"license":"ISC","_id":"globalping@0.0.0","maintainers":[{"name":"sukkaw","email":"isukkaw@gmail.com"}],"dist":{"shasum":"c10a8842c5a76142f936da399cf88c98b47c7180","tarball":"https://registry.npmjs.org/globalping/-/globalping-0.0.0.tgz","fileCount":1,"integrity":"sha512-wAtZZ6zBZllGEVZ9cgecCs4ATo7HXgCI0jFhYfIcDvIufYDBrbEuGl4ew79kyYqAc38xtL/lmXDI/JPruqmDdg==","signatures":[{"sig":"MEUCIAX3EPA/8Eaff3cXBhhJDIZiOnEik/J8ykMVQMs7GRkjAiEA/iB17N39DFsot6jNBZ+HsidfdIZDyd0wO4frOO8CAQA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":265},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sukkaw","email":"isukkaw@gmail.com"},"_npmVersion":"9.8.1","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/globalping_0.0.0_1690614125115_0.9365502772051264","host":"s3://npm-registry-packages"}},"0.1.0":{"name":"globalping","version":"0.1.0","keywords":["globalping","ping","traceroute","dns","mtr","http"],"license":"MIT","_id":"globalping@0.1.0","maintainers":[{"name":"martin-kolarik","email":"martin@kolarik.sk"},{"name":"jimaek","email":"dakulovgr@gmail.com"}],"dist":{"shasum":"c4b629b48b15d7466d93ac974ce21ef7bd2d3eb4","tarball":"https://registry.npmjs.org/globalping/-/globalping-0.1.0.tgz","fileCount":27,"integrity":"sha512-N3J5U3CDzhMV8l5mCRdcimVLXwHo2m+v7SHNyWwjGX4+dFi0QnwieeD56/q8nnj5gEn48Z0nwxx77ITivvuUEA==","signatures":[{"sig":"MEUCIQDX4NryLtIhWLfF2UEfSR4UzkOZNv+54AvGkR6uFGaP3QIgVGLu3PKwzT7cCp8ApsasBGnJ3guNeFt8IFfRMYMIEgM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":84029},"type":"module","exports":{"types":"./dist/esm/index.d.ts","import":"./dist/esm/index.js","default":"./dist/umd/bundle.js","require":"./dist/cjs/bundle.cjs"},"gitHead":"6dfe867497d037457dd5f6b2346bd304706e37df","scripts":{"lint":"eslint --cache .","test":"npm run lint && npm run test:integration","build":"rm -rf dist && npm run build:esm && npm run build:umd","lint:fix":"eslint --cache --fix .","test:e2e":"TS_NODE_TRANSPILE_ONLY=true mocha --config .mocharc.e2e.cjs","build:esm":"tspc --declaration","build:umd":"rollup -c && terser dist/umd/bundle.js -o dist/umd/bundle.min.js --source-map 'content=dist/umd/bundle.js.map,url=bundle.min.js.map'","test:dist":"node test/dist.js","openapi:generate":"openapi-ts && eslint src/openapi-ts --fix","test:integration":"TS_NODE_TRANSPILE_ONLY=true mocha"},"_npmUser":{"name":"martin-kolarik","email":"martin@kolarik.sk"},"jsdelivr":"./dist/umd/bundle.min.js","_npmVersion":"10.8.2","description":"The official TS/JS client for the Globalping API","directories":{},"_nodeVersion":"20.19.0","dependencies":{"@hey-api/client-fetch":"^0.10.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^5.2.0","jsdom":"^26.1.0","mocha":"^11.2.2","eslint":"^8.57.1","rollup":"^4.40.2","terser":"^5.39.0","ts-node":"^10.9.2","ts-patch":"^3.3.0","fetch-mock":"^12.5.2","typescript":"^5.8.3","@types/chai":"^5.2.2","@types/node":"^22.15.15","@types/jsdom":"^21.1.7","@types/mocha":"^10.0.10","@hey-api/openapi-ts":"^0.67.2","@rollup/plugin-json":"^6.1.0","@tsconfig/strictest":"^2.0.5","typescript-transform-paths":"^3.5.5","@rollup/plugin-node-resolve":"^16.0.1","@martin-kolarik/eslint-config":"^7.3.2","@typescript-eslint/eslint-plugin":"^8.32.0"},"_npmOperationalInternal":{"tmp":"tmp/globalping_0.1.0_1746647308453_0.05459720902662113","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"globalping","version":"0.1.1","keywords":["globalping","ping","traceroute","dns","mtr","http"],"license":"MIT","_id":"globalping@0.1.1","maintainers":[{"name":"martin-kolarik","email":"martin@kolarik.sk"},{"name":"jimaek","email":"dakulovgr@gmail.com"}],"dist":{"shasum":"c880b5feaacc8fb041c3758318001c10c3c7eac0","tarball":"https://registry.npmjs.org/globalping/-/globalping-0.1.1.tgz","fileCount":48,"integrity":"sha512-7d3LhGRrl9QJgiGaJQ4+9yjzDvAPNMEM6gdD+jdVwUD5s/4bKL0BANmrfz+3KdGcL322GLTltJArJ5aOd7IBrQ==","signatures":[{"sig":"MEYCIQC2pY45w8Drvdmc3Pe0AzfWup5NvxBiGAI2px9t1hENgAIhAJrTpX4RuZUrSFZI0msN4pXBgtGgosSlyZ3/e7I7AqK4","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":305444},"type":"module","types":"./dist/esm/index.d.ts","exports":{"types":"./dist/esm/index.d.ts","import":"./dist/esm/index.js","default":"./dist/umd/bundle.js","require":"./dist/cjs/bundle.cjs"},"gitHead":"e1c7ae11f661becc10497ea5f8fba9c82768496d","scripts":{"lint":"eslint --cache .","test":"npm run lint && npm run test:integration","build":"rm -rf dist && npm run build:esm && npm run build:umd","lint:fix":"eslint --cache --fix .","test:e2e":"TS_NODE_TRANSPILE_ONLY=true mocha --config .mocharc.e2e.cjs","build:esm":"tspc --declaration","build:umd":"rollup -c && terser dist/umd/bundle.js -o dist/umd/bundle.min.js --source-map 'content=dist/umd/bundle.js.map,url=bundle.min.js.map'","test:dist":"node test/dist.js","openapi:generate":"openapi-ts && eslint src/openapi-ts --fix","test:integration":"TS_NODE_TRANSPILE_ONLY=true mocha"},"_npmUser":{"name":"martin-kolarik","email":"martin@kolarik.sk"},"jsdelivr":"./dist/umd/bundle.min.js","_npmVersion":"10.8.2","description":"The official TS/JS client for the Globalping API","directories":{},"_nodeVersion":"20.19.0","dependencies":{"@hey-api/client-fetch":"^0.10.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^5.2.0","jsdom":"^26.1.0","mocha":"^11.2.2","eslint":"^8.57.1","rollup":"^4.40.2","terser":"^5.39.0","ts-node":"^10.9.2","ts-patch":"^3.3.0","fetch-mock":"^12.5.2","typescript":"^5.8.3","@types/chai":"^5.2.2","@types/node":"^22.15.15","@types/jsdom":"^21.1.7","@types/mocha":"^10.0.10","@hey-api/openapi-ts":"^0.67.2","@rollup/plugin-json":"^6.1.0","@tsconfig/strictest":"^2.0.5","typescript-transform-paths":"^3.5.5","@rollup/plugin-node-resolve":"^16.0.1","@martin-kolarik/eslint-config":"^7.3.2","@typescript-eslint/eslint-plugin":"^8.32.0"},"_npmOperationalInternal":{"tmp":"tmp/globalping_0.1.1_1746649058512_0.5978331266863208","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"globalping","version":"0.1.2","keywords":["globalping","ping","traceroute","dns","mtr","http"],"license":"MIT","_id":"globalping@0.1.2","maintainers":[{"name":"martin-kolarik","email":"martin@kolarik.sk"},{"name":"jimaek","email":"dakulovgr@gmail.com"}],"homepage":"https://github.com/jsdelivr/globalping-typescript#readme","bugs":{"url":"https://github.com/jsdelivr/globalping-typescript/issues"},"dist":{"shasum":"4517a95cfad133c76b446d631018249146db567a","tarball":"https://registry.npmjs.org/globalping/-/globalping-0.1.2.tgz","fileCount":48,"integrity":"sha512-JnoySeiDHMhav2v29Iv1LMk/BRHu3uWJC2A9vCWIZgt9G7ubQrGz+q8hswq8hl3yrpVcTBTpsvxD3x7BTZes7A==","signatures":[{"sig":"MEUCIQDZeQVblx3LoxnrOu9/15B3/sEYudG46VqHOnqL7QmT8AIgAJJ5jBY646yNB4j1mC9TL98ud/CTcYrPZou73daR4oc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":307825},"type":"module","types":"./dist/esm/index.d.ts","exports":{"types":"./dist/esm/index.d.ts","import":"./dist/esm/index.js","default":"./dist/umd/bundle.js","require":"./dist/cjs/bundle.cjs"},"gitHead":"d9a4a91ddbfa9dd712bb4fed13c23b4fa3fb626d","scripts":{"lint":"eslint --cache .","test":"npm run lint && npm run test:integration","build":"rm -rf dist && npm run build:esm && npm run build:umd","lint:fix":"eslint --cache --fix .","test:e2e":"TS_NODE_TRANSPILE_ONLY=true mocha --config .mocharc.e2e.cjs","build:esm":"tspc --declaration","build:umd":"rollup -c && terser dist/umd/bundle.js -o dist/umd/bundle.min.js --source-map 'content=dist/umd/bundle.js.map,url=bundle.min.js.map'","test:dist":"node test/dist.js","openapi:generate":"openapi-ts && eslint src/openapi-ts --fix","test:integration":"TS_NODE_TRANSPILE_ONLY=true mocha"},"_npmUser":{"name":"martin-kolarik","email":"martin@kolarik.sk"},"jsdelivr":"./dist/umd/bundle.min.js","repository":{"url":"git+https://github.com/jsdelivr/globalping-typescript.git","type":"git"},"_npmVersion":"10.8.2","description":"The official TS/JS client for the Globalping API","directories":{},"_nodeVersion":"20.19.0","dependencies":{"@hey-api/client-fetch":"^0.10.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^5.2.0","jsdom":"^26.1.0","mocha":"^11.2.2","eslint":"^8.57.1","rollup":"^4.40.2","terser":"^5.39.0","ts-node":"^10.9.2","ts-patch":"^3.3.0","fetch-mock":"^12.5.2","typescript":"^5.8.3","@types/chai":"^5.2.2","@types/node":"^22.15.15","@types/jsdom":"^21.1.7","@types/mocha":"^10.0.10","@hey-api/openapi-ts":"^0.67.2","@rollup/plugin-json":"^6.1.0","@tsconfig/strictest":"^2.0.5","typescript-transform-paths":"^3.5.5","@rollup/plugin-node-resolve":"^16.0.1","@martin-kolarik/eslint-config":"^7.3.2","@typescript-eslint/eslint-plugin":"^8.32.0"},"_npmOperationalInternal":{"tmp":"tmp/globalping_0.1.2_1746999488846_0.7126392243981936","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"globalping","version":"0.2.0","keywords":["globalping","ping","traceroute","dns","mtr","http"],"license":"MIT","_id":"globalping@0.2.0","maintainers":[{"name":"martin-kolarik","email":"martin@kolarik.sk"},{"name":"jimaek","email":"dakulovgr@gmail.com"}],"homepage":"https://github.com/jsdelivr/globalping-typescript#readme","bugs":{"url":"https://github.com/jsdelivr/globalping-typescript/issues"},"dist":{"shasum":"67f75308d209bf647b996a29965989b88028ea96","tarball":"https://registry.npmjs.org/globalping/-/globalping-0.2.0.tgz","fileCount":48,"integrity":"sha512-rxyvqXF/oz5yBGJHR58TEsCkcbc4WQVmdKC+uZ8LXfIt4KwTdTvbzkfwhhjuyUmuQr8U/b8m/ZicdrA8ZIroKw==","signatures":[{"sig":"MEQCICPcAjGi7RqFCGBRNH3ApWxaH0ZYCwfTv/R2xcM1dnaAAiBiXO6APgvP0CquqJLNlV9PuHA5cftt55mt+Ndfe7wf8A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":308168},"type":"module","types":"./dist/esm/index.d.ts","exports":{"types":"./dist/esm/index.d.ts","import":"./dist/esm/index.js","default":"./dist/umd/bundle.js","require":"./dist/cjs/bundle.cjs"},"gitHead":"2f912ce3b760d31e1cdc3b82f0c7892b1368d58f","scripts":{"lint":"eslint --cache .","test":"npm run lint && npm run test:integration","build":"rm -rf dist && npm run build:esm && npm run build:umd","lint:fix":"eslint --cache --fix .","test:e2e":"TS_NODE_TRANSPILE_ONLY=true mocha --config .mocharc.e2e.cjs","build:esm":"tspc --declaration","build:umd":"rollup -c && terser dist/umd/bundle.js -o dist/umd/bundle.min.js --source-map 'content=dist/umd/bundle.js.map,url=bundle.min.js.map'","test:dist":"node test/dist.js","openapi:generate":"openapi-ts && eslint src/openapi-ts --fix","test:integration":"TS_NODE_TRANSPILE_ONLY=true mocha"},"_npmUser":{"name":"martin-kolarik","actor":{"name":"martin-kolarik","type":"user","email":"martin@kolarik.sk"},"email":"martin@kolarik.sk"},"jsdelivr":"./dist/umd/bundle.min.js","repository":{"url":"git+https://github.com/jsdelivr/globalping-typescript.git","type":"git"},"_npmVersion":"11.3.0","description":"The official TS/JS client for the Globalping API","directories":{},"_nodeVersion":"24.1.0","dependencies":{"@hey-api/client-fetch":"^0.10.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^5.2.0","jsdom":"^26.1.0","mocha":"^11.7.0","eslint":"^9.29.0","rollup":"^4.43.0","terser":"^5.43.0","ts-node":"^10.9.2","ts-patch":"^3.3.0","fetch-mock":"^12.5.3","typescript":"^5.8.3","@types/chai":"^5.2.2","@types/node":"^24.0.3","@types/jsdom":"^21.1.7","@types/mocha":"^10.0.10","@hey-api/openapi-ts":"^0.67.2","@rollup/plugin-json":"^6.1.0","@tsconfig/strictest":"^2.0.5","typescript-transform-paths":"^3.5.5","@rollup/plugin-node-resolve":"^16.0.1","@martin-kolarik/eslint-config":"^8.0.0","@typescript-eslint/eslint-plugin":"^8.34.1"},"_npmOperationalInternal":{"tmp":"tmp/globalping_0.2.0_1750254728959_0.5636004551054286","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"globalping","version":"0.3.0","keywords":["globalping","ping","traceroute","dns","mtr","http"],"license":"MIT","_id":"globalping@0.3.0","maintainers":[{"name":"martin-kolarik","email":"martin@kolarik.sk"},{"name":"jimaek","email":"dakulovgr@gmail.com"}],"homepage":"https://github.com/jsdelivr/globalping-typescript#readme","bugs":{"url":"https://github.com/jsdelivr/globalping-typescript/issues"},"dist":{"shasum":"b7b5292e1d64c8beab3c2ceb81c361bcf40dd699","tarball":"https://registry.npmjs.org/globalping/-/globalping-0.3.0.tgz","fileCount":98,"integrity":"sha512-jxOIxFrdondeIawXIbjTuLbbucLS8c0tUdriqvZ+3owwdP4KIvmXEp8rvQ3ujESlPj3CmTSB1yTqwFMrsOMZcA==","signatures":[{"sig":"MEYCIQDekbuXC7eNm/Bn0GQ6OMzXJN0Ng/l+NotqzaNTSScwLAIhAIynMNG9sIk/P82ABjBK8ZsAZUaljPtQt0GzljAYLaYq","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":713169},"type":"module","types":"./dist/umd/bundle.d.ts","engines":{"node":">=22.22.2"},"exports":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"default":"./dist/umd/bundle.js","require":{"types":"./dist/cjs/bundle.d.cts","default":"./dist/cjs/bundle.cjs"}},"gitHead":"0eeb00db973089ef5d5d025ff1f6b30014fa586e","scripts":{"lint":"eslint --cache .","test":"npm run lint && npm run test:integration","build":"rm -rf dist && npm run build:esm && npm run build:cjs-umd","lint:fix":"eslint --cache --fix .","test:e2e":"TS_NODE_TRANSPILE_ONLY=true mocha --config .mocharc.e2e.cjs","build:esm":"tspc --declaration","test:dist":"node test/dist.js","build:cjs-umd":"rollup -c && terser dist/umd/bundle.js -o dist/umd/bundle.min.js --source-map 'content=dist/umd/bundle.js.map,url=bundle.min.js.map'","openapi:generate":"openapi-ts && prettier --config openapi-ts.prettier.config.js --write src/openapi-ts && (eslint --no-ignore --fix src/openapi-ts > /dev/null || exit 0)","test:integration":"TS_NODE_TRANSPILE_ONLY=true mocha"},"_npmUser":{"name":"martin-kolarik","email":"martin@kolarik.sk"},"jsdelivr":"./dist/umd/bundle.min.js","overrides":{"js-yaml":"4.3.0"},"repository":{"url":"git+https://github.com/jsdelivr/globalping-typescript.git","type":"git"},"_npmVersion":"11.17.0","description":"The official TS/JS client for the Globalping API","directories":{},"_nodeVersion":"26.5.0","_hasShrinkwrap":false,"devDependencies":{"chai":"^6.2.2","jsdom":"^30.0.0","mocha":"^11.7.6","eslint":"^10.8.0","rollup":"^4.62.3","terser":"^5.49.0","ts-node":"^10.9.2","prettier":"^3.9.6","ts-patch":"^4.0.1","fetch-mock":"^12.6.0","typescript":"^6.0.3","@types/chai":"^5.2.3","@types/node":"^26.1.2","@types/jsdom":"^28.0.3","@types/mocha":"^10.0.10","rollup-plugin-dts":"^6.4.1","@hey-api/openapi-ts":"0.99.0","@rollup/plugin-json":"^6.1.0","@tsconfig/strictest":"^2.0.8","typescript-transform-paths":"^4.0.0","@rollup/plugin-node-resolve":"^16.0.3","@martin-kolarik/eslint-config":"^9.0.1","@typescript-eslint/eslint-plugin":"^8.65.0"},"_npmOperationalInternal":{"tmp":"tmp/globalping_0.3.0_1785267602217_0.996422561636795","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"globalping","version":"0.4.0","license":"MIT","description":"The official TS/JS client for the Globalping API","keywords":["globalping","ping","traceroute","dns","mtr","http"],"type":"module","sideEffects":false,"exports":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/cjs/bundle.d.cts","default":"./dist/cjs/bundle.cjs"},"default":"./dist/umd/bundle.js"},"jsdelivr":"./dist/umd/bundle.min.js","types":"./dist/umd/bundle.d.ts","repository":{"type":"git","url":"git+https://github.com/jsdelivr/globalping-typescript.git"},"bugs":{"url":"https://github.com/jsdelivr/globalping-typescript/issues"},"devDependencies":{"@commitlint/cli":"^21.2.1","@commitlint/config-conventional":"^21.2.0","@hey-api/openapi-ts":"0.99.0","@martin-kolarik/eslint-config":"^9.0.1","@rollup/plugin-json":"^6.1.0","@rollup/plugin-node-resolve":"^16.0.3","@semantic-release/exec":"^7.1.0","@semantic-release/git":"^11.0.1","@tsconfig/strictest":"^2.0.8","@types/chai":"^5.2.3","@types/jsdom":"^28.0.3","@types/mocha":"^10.0.10","@types/node":"^26.1.2","@typescript-eslint/eslint-plugin":"^8.65.0","chai":"^6.2.2","conventional-changelog-conventionalcommits":"^9.3.1","eslint":"^10.8.0","fetch-mock":"^12.6.0","husky":"^9.1.7","jsdom":"^30.0.1","mocha":"^11.7.6","prettier":"^3.9.6","rollup":"^4.62.3","rollup-plugin-dts":"^6.4.1","semantic-release":"^25.0.8","terser":"^5.49.0","ts-node":"^10.9.2","ts-patch":"^4.0.1","typescript":"^6.0.3","typescript-transform-paths":"^4.0.0"},"overrides":{"js-yaml":"4.3.0"},"scripts":{"build":"rm -rf dist && npm run build:esm && npm run build:cjs-umd","build:esm":"tspc --declaration","build:cjs-umd":"rollup -c && terser dist/umd/bundle.js -o dist/umd/bundle.min.js --source-map 'content=dist/umd/bundle.js.map,url=bundle.min.js.map'","lint":"eslint --cache .","lint:fix":"eslint --cache --fix .","openapi:generate":"openapi-ts && prettier --config openapi-ts.prettier.config.js --write src/openapi-ts && (eslint --no-ignore --fix src/openapi-ts > /dev/null || exit 0)","prepare":"husky || echo 'Failed to install husky'","test:dist":"node test/dist.js","test:e2e":"TS_NODE_TRANSPILE_ONLY=true mocha --config .mocharc.e2e.cjs","test:integration":"TS_NODE_TRANSPILE_ONLY=true mocha","test":"npm run lint && npm run test:integration"},"engines":{"node":">=22.22.2"},"gitHead":"876a047328cc92629384d6f465f5682ce84371b1","_id":"globalping@0.4.0","homepage":"https://github.com/jsdelivr/globalping-typescript#readme","_nodeVersion":"22.23.1","_npmVersion":"11.18.0","dist":{"integrity":"sha512-NOAVqqyHRsFVkFvwdpyUXmNWdVkhJdx7htEbXO4TzXOeyos3mKYd9raU1o7BaMw5B/aR4I+r53Xf84O5fS0SQQ==","shasum":"8d7daa17200b5df09d40de1adb0db9d09457e0da","tarball":"https://registry.npmjs.org/globalping/-/globalping-0.4.0.tgz","fileCount":99,"unpackedSize":723871,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/globalping@0.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIF+nFCwHwnsqyp624uj7yWRarxSg2LrbeuMbbL7QGJYrAiB8Kpb6sCagLx/FJ/nSYCQeA4+hVlOJjeKgWIGAYXJfNw=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:107398dc-6f16-4266-904a-bef8133c1514"}},"directories":{},"maintainers":[{"name":"martin-kolarik","email":"martin@kolarik.sk"},{"name":"jimaek","email":"dakulovgr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/globalping_0.4.0_1785338853765_0.10415108709169196"},"_hasShrinkwrap":false}},"time":{"created":"2023-07-29T07:02:05.107Z","modified":"2026-07-29T15:27:34.249Z","0.0.0":"2023-07-29T07:02:05.255Z","0.1.0":"2025-05-07T19:48:28.671Z","0.1.1":"2025-05-07T20:17:38.761Z","0.1.2":"2025-05-11T21:38:09.042Z","0.2.0":"2025-06-18T13:52:09.164Z","0.3.0":"2026-07-28T19:40:02.473Z","0.4.0":"2026-07-29T15:27:33.957Z"},"bugs":{"url":"https://github.com/jsdelivr/globalping-typescript/issues"},"license":"MIT","homepage":"https://github.com/jsdelivr/globalping-typescript#readme","keywords":["globalping","ping","traceroute","dns","mtr","http"],"repository":{"type":"git","url":"git+https://github.com/jsdelivr/globalping-typescript.git"},"description":"The official TS/JS client for the Globalping API","maintainers":[{"name":"martin-kolarik","email":"martin@kolarik.sk"},{"name":"jimaek","email":"dakulovgr@gmail.com"}],"readme":"# Globalping Typescript API Client\n\nThe official TypeScript client for the [Globalping API](https://globalping.io/docs/api.globalping.io).\nWorks both in the browser and in node.js.\n\nIf you are not familiar with Globalping yet, check out the main [Globalping repository](https://github.com/jsdelivr/globalping) first.\n\n## Installation\n\n```sh\nnpm i globalping\n```\n\nIn client-side applications, you can also import the library directly via [jsDelivr CDN](https://www.jsdelivr.com/package/npm/globalping).\n\n## Usage\n\nThe library provides methods for all API operations, as well as types for all parameters.\nIt also exports values for all `enum` parameters as JS objects, which can be used for client-side validation.\n\n### Quick start\n\nUsing the package in ESM/CJS applications:\n\n```ts\nimport { Globalping } from 'globalping';\n\nconst globalping = new Globalping({\n    auth: 'your-globalping-api-token', // Optional.\n    // See the Advanced configuration section below for more options.\n});\n```\n\nUsing the UMD build:\n\n```ts\nconst { Globalping } = window.globalping;\nconst globalping = new Globalping(/* options */);\n```\n\n### Create a measurement\n\nCreates a new measurement with the set parameters. The measurement runs asynchronously, and you can retrieve its current state using `getMeasurement()` or wait for its final state using `awaitMeasurement()`.\n\n```ts\nconst result = await globalping.createMeasurement({\n    type: 'ping',\n    target: 'example.com',\n});\n\nif (!result.ok) {\n    // See the Error handling section below.\n}\n\nconsole.log(result); // => { data: { id: string, probesCount: number }, ... }\n```\n\n### Get a measurement\n\nReturns the current state of the measurement.\n\n```ts\nconst result = await globalping.getMeasurement(id);\nconsole.log(result); // => { data: { id: string, status: string, ... }, ... }\n```\n\n### Await a measurement\n\nSimilar to `getMeasurement()`, but keeps polling the API until the measurement is finished, and returns its final state.\n\n```ts\nconst result = await globalping.awaitMeasurement(id);\nconsole.log(result); // => { data: { id: string, status: 'finished', ... }, ... }\n```\n\nAn optional `signal` option can be used to abort the waiting at any time:\n\n```ts\nconst result = await globalping.awaitMeasurement(id, { signal });\n```\n\n### List probes\n\nReturns a list of all probes currently online and their metadata, such as location and assigned tags.\n\n```ts\nconst result = await globalping.listProbes();\nconsole.log(result); // => { data: [ { version: string, ... }, ... ], ... }\n```\n\n### Get rate limits\n\nReturns rate limits for the current user (if authenticated) or IP address (if not authenticated).\n\n```ts\nconst result = await globalping.getLimits();\nconsole.log(result); // => { data: { rateLimit: { ... }, ... }, ... }\n```\n\n### TypeScript convenience methods\n\nThere are a few convenience methods for determining more specific response types.\n\n#### `assertHttpStatus()` / `isHttpStatus()`\n\n```ts\nconst result = await globalping.createMeasurement({ type: 'ping', target: 'example.com' });\n\nif (Globalping.isHttpStatus(400, result)) {\n    // You can now access parameter validation error details.\n}\n```\n\n#### `assertMeasurementType()` / `isMeasurementType()`\n\n```ts\nconst result = await globalping.awaitMeasurement(id);\nGlobalping.assertMeasurementType('ping', result.data); // You can now access ping-specific properties on result.data\n```\n\n### Error handling\n\nThe library offers two ways of handling errors.\n\n#### `throwApiErrors: false` (default)\n\nKnown API errors, such as parameter validation errors, rate limit errors, etc., are not thrown as exceptions. This allows the library to return precise error types for each method, which means you can access all error details in a type-safe way. You need to check each `result` before accessing its data.\n\n```ts\nconst result = await globalping.createMeasurement({ type: 'ping', target: 'example.com' });\n\n// This is sufficient if you only care about success/failure.\nif (result.ok) {\n    // result.data is the success response, e.g., { id: string, probesCount: number }\n} else {\n    // result.data can be any of the possible error responses\n\n    if (Globalping.isHttpStatus(400, result)) {\n        // You can also access result.data.error.params here which is specific to this status code.\n    }\n}\n```\n\nAny unexpected errors, such as timeouts, networking errors, etc., are still thrown as exceptions.\n\n#### `throwApiErrors: true`\n\nAll errors, including known API errors, are thrown as exceptions. You don't have to check `result.ok` before accessing the data, but the thrown errors only have generic types.\n\n```ts\nimport { ApiError, HttpError } from 'globalping';\n\ntry {\n    const result = await globalping.createMeasurement({ type: 'ping', target: 'example.com' });\n    console.log(result.data) // => { id: string, probesCount: number }\n} catch (e) {\n    if (e instanceof ApiError) {\n        // Any error with a valid JSON response body.\n    } else if (e instanceof HttpError) {\n        // Any HTTP error with an invalid response body.\n    } else {\n        // Any other error.\n    }\n}\n```\n\n### Advanced configuration\n\nThere are a few config options available, but all of them are optional:\n\n`auth: string`\n\nA user authentication token obtained from https://dash.globalping.io or via OAuth (currently available only to official Globalping apps).\n\n`userAgent: string`\n\nRefers to this library by default. If you build another open-source project based on this library, you should override this value to point to your project instead.\n\n`throwApiErrors: boolean`\n\nIf `false` (default), known API errors are not thrown as exceptions. See the Error handling section.\n\n`timeout: number`\n\nA transport-level timeout in ms for every HTTP request made by the library. The default value is 30 seconds, and you shouldn't need to change this.\n\n## Development\nPlease refer to [CONTRIBUTING.md](CONTRIBUTING.md) for more information.\n","readmeFilename":"README.md"}