1.0.1 • Published 4 years ago

cuttly v1.0.1

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
4 years ago

cuttly

Unofficial promise based Cuttly API wrapper for node.js

Installing

Using npm:

$ npm install cuttly

Using yarn:

$ yarn add cuttly

Usage

cuttly.shortenUrl(
    <CUTTLY_KEY>,
  <url_to_shorten>
).then(
  (response) => console.log(response),
  (error) => console.log(error)
)

Documentation

Response

The response object provided has the following attributes :

ParameterDescription
datedate of shortening the link
shortLinkshortened link
fullLinkoriginal link
titlewebsite title
see https://cutt.ly/api-documentation/cuttly-links-api

Error

Upon rejection, the error type is CuttlyError