UNPKG
airt.cf
Version:
latest (1.0.4)
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
URL Shortener
airt.cf
/
main.js
10 lines
•
242 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
const
axios =
require
(
'axios'
)
class
Shortener
{
async
short
(
link
) {
let
res =
await
axios.
post
(
'https://airt.cf/airt/short'
, {
link
: link })
return
res.
data
; }; };
module
.
exports
=
new
Shortener
();