UNPKG
globalping-ts
Version:
latest (1.0.5)
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Typescript library for the Globalping API
github.com/eyepokes/globalping-ts
eyepokes/globalping-ts
globalping-ts
/
examples
/
get_probes.ts
15 lines
(10 loc)
•
310 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import
{
Globalping
}
from
"globalping-ts"
; (
async
() => {
const
api =
new
Globalping
();
let
response =
await
api.
probes
();
if
(!response.
success
) {
console
.
log
(
JSON
.
stringify
(response.
error
,
null
,
4
));
return
; }
console
.
log
(
JSON
.
stringify
(response.
data
,
null
,
4
)); })();