UNPKG
tea-triplble
Version:
latest (2.5.0)
2.5.0
2.0.0
1.1.5
1.1.4
Updated version (almost finished)
github.com/Havelor/Tea-Triplble
Havelor/Tea-Triplble
tea-triplble
/
index.js
11 lines
(9 loc)
•
239 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
const
axios =
require
(
'axios'
);
// Example GET request using axios
axios.
get
(
'https://api.github.com'
) .
then
(
response
=>
{
console
.
log
(response.
data
); }) .
catch
(
error
=>
{
console
.
error
(
'Error fetching data:'
, error); });