Skip to content

whats-this/owo.js

Repository files navigation

owo.js Build Status

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

  1. Gain a API key in order to be actually able to use the service.
  2. Run the command npm install owo.js
  3. Check the usage below to find some basic examples of how to use the script.

Usage

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));

Todo

  • Add JSON Parsing.
  • Take over the world.

Contribute

  1. Fork repo.
  2. Edit code.
  3. Make a PR.
  4. Submit said PR.

License

A copy of the MIT license can be found in LICENSE.md.