i8.ae
Table of contents
About
- NPM package that makes your link shorter using i8.ae API
- Lots of advantages
- No ads
- Free
- Make your short link secure with password
Installation
npm i i8.ae
Example Usage
(Using .then function)
const api = require('i8.ae')
const i8 = new api("Your_i8.ae_API_Key") // You can get it from (https://i8.ae/user/tools/api)
// Short link
i8.short('https://www.google.com/').then(res => {
console.log(res) // https://i8.ae/Kz1oi
})
// Short link with password
i8.secure('https://www.google.com/','test').then(res => {
console.log(res) // https://i8.ae/c5ibj With password "test"
})
(Using async function)
const api = require('i8.ae')
const i8 = new api("Your_i8.ae_API_Key") // You can get it from (https://i8.ae/user/tools/api)
// Short link
async function shorter() {
const res = await i8.short('https://www.google.com/')
console.log(res) // https://i8.ae/Kz1oi
};
shorter();
// Short link with password
async function secure_shorter() {
const res = await i8.secure('https://www.google.com/', 'test')
console.log(res) // https://i8.ae/c5ibj With password "test"
};
secure_shorter();
Links
Contributing
© - Copyright (c) 2021 abdooo9.dev@gmail.com (abdooo9)