UNPKG
jget-shark
Version:
latest (2.0.0)
2.0.0
1.0.0
Use GET functions
jget-shark
/
test.js
6 lines
(5 loc)
•
193 B
JavaScript
View Raw
1
2
3
4
5
6
const
sget =
require
(
'./index'
).
sget
;
sget
(
'https://morning-tor-58273.herokuapp.com/'
,
function
(
error, response, body
) {
if
(error)
throw
new
Error
(error);
console
.
log
(body); });