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
- 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.
Image Uploading
// Import OwO.JS for use.
const owo = new (require("owo.js"))("YOUR-KEY-HERE");
// Upload the file to OwO.
owo.upload('./examples/file.png')
.then(data => console.log(data))
.catch(err => console.log(err));
URL Shortening
// Import OwO.JS for use.
const owo = new (require("owo.js"))("YOUR-KEY-HERE");
// Shorten the url to OwO.
owo.shorten("http://whats-th.is/")
.then(data => console.log(data))
.catch(err => console.log(err));
- Add JSON Parsing.
- Take over the world.
- Fork repo.
- Edit code.
- Make a PR.
- Submit said PR.
A copy of the MIT license can be found in LICENSE.md
.