csurl

1.0.1 • Public • Published

CSUrl

ChakSoft URL shortener API Access module. Relying on Bluebird

Prerequisities

  • Node 6.9

Usage

Shorten an URL

const CSUrl = require('csurl')

CSUrl.shorten('https://www.google.com/')
    .then((shortLink) => {
        console.log(shortLink)
        // >>> https://www.csurl.fr/#/Ex10aD
    })

Get the URL from a shortened one

const CSUrl = require('csurl')

CSUrl.get('Ex10aD')
    .then((fullUrl) => {
        console.log(fullUrl)
        // >>> https://www.google.com/
    })

Run the tests

Be sure jasmine is installed as a global package :

$ npm install -g jasmine

Then just run the test suite :

$ jasmine
Started
...


3 specs, 0 failures
Finished in 0.015 seconds

Readme

Keywords

none

Package Sidebar

Install

npm i csurl

Weekly Downloads

4

Version

1.0.1

License

GPL-3.0

Last publish

Collaborators

  • chaksoft