Skip to content

alltherooms/tools

Repository files navigation

#Usage

Require the tools module and access to any tools.

var tools = require('tools');
var miles = tools.geo.getDistanceInMiles([lng1, lat1], [lng2, lat2]);
console.log(miles);

Or simply require the tool you need.

var geo = require('tools/geo');
var miles = geo.getDistanceInMiles([lng1, lat1], [lng2, lat2]);
console.dir(miles);

#Available tools

##utils Set of useful functions.
Available at: tools.utils
See: utils.js for available functions and documentation.

##geo Set of useful functions to perform geographical calculations.
Available at: tools.geo
See: geo.js for available functions and documentation.

##FTPDownloader Connects to a specific ftp server and downloads the indicated files.
Available at: tools.FTPDownloader
See: ftp-downloader.js for usage and documentation.

##CSVParser Get's a csv file path and a mapping object, then emits an object for each line of the file with the format specified in the mapping.
Available at: tools.CSVParser
See: csv-parser.js for usage and documentation.

##Throttler Throttles the execution of a set of given functions based on concurrency and exectutions/time restrictions.
Available at: tools.Throttler
See: throttler.js for usage and documentation.

##SocketDataParser Reads the socket input (buffer), and outputs javascript objects.
Available at: tools.SocketDataParser
See: socket-data-parser.js for usage and documentation.

About

Useful set of tools to use in application development

Resources

Stars

Watchers

Forks

Packages

No packages published