Socket
Socket
Sign inDemoInstall

csurl

Package Overview
Dependencies
52
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    csurl

ChakSoft URL Shortener API Access module


Version published
Weekly downloads
17
decreased by-75.71%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 30 Jan 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc