Skip to content

a client library for Qwa.la, the open-source link shortener

License

Notifications You must be signed in to change notification settings

qwamber/qwala-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Qwala JS Library

NPM Download

The Qwala JS Library is a quick and easy way to interact with the Qwala API.

Installation

You can install the JS Library from NPM:

npm install --save qwala

Usage

Using the library is as easy as using require('qwala') and calling its methods.

let qwala = require('qwala');

let short = await qwala.shorten('https://example.com');
console.log('https://qwa.la/' + short); // https://qwa.la/y7e6j6

let long = await qwala.lengthen('y7e6j6');
console.log(long); // https://example.com

let views = await qwala.statistics('y7e6j6');
console.log(views) // [{ ipAddress: '123.456.789', viewed: January 5, 2019 } . . . ]

To learn more about the Qwala JS Library, please see the full documentation.

About

a client library for Qwa.la, the open-source link shortener

Resources

License

Stars

Watchers

Forks

Packages

No packages published