smallurl

Node.js client for SmallURL

Usage no npm install needed!

<script type="module">
  import smallurl from 'https://cdn.skypack.dev/smallurl';
</script>

README

node-smallurl

Node.js library for SmallURL

Usage

var SmallURL = require("smallurl");

var shortener = new SmallURL();  // Accepts key as arg

shortener.shorten("http://google.com", function(err, url) {
    console.log(url);
});

Installation

To install, just use npm.

npm install smallurl