mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
19 lines
441 B
JavaScript
19 lines
441 B
JavaScript
// Cook a TiddlyWiki recipe and send it to STDOUT
|
|
//
|
|
// Usage: node cook.js <recipefile>
|
|
|
|
/*global require: false, exports: false */
|
|
"use strict";
|
|
|
|
var TiddlyWiki = require("./js/TiddlyWiki.js").TiddlyWiki,
|
|
Recipe = require("./js/Recipe.js").Recipe,
|
|
util = require("util");
|
|
|
|
var filename = process.argv[2];
|
|
|
|
var store = new TiddlyWiki();
|
|
|
|
var theRecipe = new Recipe(store,filename,function() {
|
|
process.stdout.write(theRecipe.cook());
|
|
});
|