Skip to content

Simple node.js wrapper for bluefuton's midnight library.

License

Notifications You must be signed in to change notification settings

SleepyStrix/midnight-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 my fork of midnight for this 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;
	}
});

About

Simple node.js wrapper for bluefuton's midnight library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published