Skip to content

legokichi/WMURLShortener.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WMURLShortener.js Build Status

npm

URL Shortener using goo.gl.

Document

How to use

Browser

<script src="lib/WMURLShortener.js"></script>
<script>
new WMURLShortener().shorten(longUrl, function(err, shortUrl){
  console.log(shortUrl);
});
</script>

WebWorkers

importScripts("lib/WMURLShortener.js");

new WMURLShortener().shorten(longUrl, function(err, shortUrl){
  console.log(shortUrl);
});

Node.js

var WMURLShortener = require("lib/duxca.wmurlshortener.js");

new WMURLShortener().shorten(longUrl, function(err, shortUrl){
  console.log(shortUrl);
});

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published