1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-30 13:29:56 +00:00
TiddlyWiki5/cook.js

19 lines
441 B
JavaScript
Raw Normal View History

2011-11-22 14:29:29 +00:00
// 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");
2011-11-22 14:29:29 +00:00
var filename = process.argv[2];
var store = new TiddlyWiki();
2011-11-22 14:29:29 +00:00
var theRecipe = new Recipe(store,filename,function() {
process.stdout.write(theRecipe.cook());
});