midnight-js
v0.1.0
Published
Wraps midnight for use with node js
Readme
midnight-js
Simple node.js wrapper for bluefuton's midnight library for converting english to cron expressions.
##Setup:
- Install Ruby for your OS. [https://www.ruby-lang.org]
- 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;
}
});