node-schedule 是 Node.js 上一个类似 crontab 的定时任务模块。
示例代码:
var schedule = require('node-schedule');
var date = new Date(2012, 11, 21, 5, 30, 0);
var j = schedule.scheduleJob(date, function(){
console.log('The world is going to end today.');
});
esnext 是一个 Javascr ipt 库,可以将 ES6 草案规范语法转成今天的 Javascr ipt 语法。
例如:
/*
On the left is code written with new Javascr ipt features,
and on the right is the console output, plus the same code
re-written so it can run in today's browsers.
Edits made to the