0.1.0 • Published 9 years ago
midnight-js
Licence
MIT
Version
0.1.0
Deps
0
Vulns
0
Weekly
0
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;
}
});