Files
leafdoc/test.js
2020-04-25 17:23:45 +03:00

19 lines
455 B
JavaScript
Executable File

#!/usr/bin/env js
var LeafDoc = require('./src/leafdoc');
// var doc = new LeafDoc({templateDir: 'templates/yuml', leadingCharacter: '@'});
var doc = new LeafDoc({});
// doc.addFile('src/leafdoc.js');
doc.addDir('src');
// doc.addDir('../Leaflet/src/');
// console.log('calling outputStr');
var out = doc.outputStr();
var json = doc.outputJSON();
var fs = require('fs');
fs.writeFileSync('Leafdoc.html', out);
fs.writeFileSync('Leafdoc.json', json);