Skip to content

TotenDev/TDevShortener-LibNode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#TDevShortener - NodeJS Wrapper

NodeJS module to send a messages to TotenDev's URL Shortener

Build Status

Requirements

Installation

No installation is needed, just use TDevShortener.js file.

Configuration

Change on TDevShortener.jsfile, the server Domain and port (It should be at beginnig):

//CONFIG
var TDShortenerDomain = "xxs.com";
var TDShortenerPort = 80;

##Usage

var Shortener = require('./TDevShortener.js');
Shortener("http://foo.com",function (okay,resp) {
    if (okay) {
		console.log("My shortened URL is: " + resp);
	}
});

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

##License

GPL v3

About

NodeJS module to shorten urls using TDevShortener.

Resources

License

Stars

Watchers

Forks

Packages

No packages published