0.1.0 • Published 7 years ago

midnight-js v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

midnight-js

Simple node.js wrapper for bluefuton's midnight library for converting english to cron expressions.

##Setup: 1. Install Ruby for your OS. https://www.ruby-lang.org 2. Install Midnight so that the folder 'midnight' is in the same directory as the file 'midnight-cli.rb' You can get it at the original repo here: https://github.com/bluefuton/midnight or my fork here: https://github.com/sleepystrix/midnight

##Usage:

let midnight_js = require('midnight-js');
midnight_js.parse('every 10 minutes', function (err, result) {
	if (err) {
		console.log(err);
	} else {
		console.log("cron expression: " + result;
	}
});