cuttly

1.0.1 • Public • Published

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 :

Parameter Description
date date of shortening the link
shortLink shortened link
fullLink original link
title website title
see https://cutt.ly/api-documentation/cuttly-links-api

Error

Upon rejection, the error type is CuttlyError

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i cuttly

    Weekly Downloads

    7

    Version

    1.0.1

    License

    GPL-3.0-or-later

    Unpacked Size

    39.4 kB

    Total Files

    4

    Last publish

    Collaborators

    • tmalo