owo.js 
A wrapper that was written inside of Javascript that allows for you to upload images to the owo.whats-th.is and shorten URLs through uwu.whats-th.is. This package can also be found on the NPM service if you run the command npm install owo.js
Instructions
- Gain a API key in order to be actually able to use the service.
- Run the command
npm install owo.js
- Check the usage below to find some basic examples of how to use the script.
Usage
Image Uploading
const owo = new (require("owo.js"))("YOUR-KEY-HERE");
owo.upload('./examples/file.png')
.then(data => console.log(data))
.catch(err => console.log(err));
URL Shortening
const owo = new (require("owo.js"))("YOUR-KEY-HERE");
owo.shorten("http://whats-th.is/")
.then(data => console.log(data))
.catch(err => console.log(err));
Todo
- Add JSON Parsing.
- Take over the world.
Contribute
- Fork repo.
- Edit code.
- Make a PR.
- Submit said PR.
License
A copy of the MIT license can be found in LICENSE.md
.