cleanup some code

This commit is contained in:
Mats van Reenen 2020-07-28 15:31:39 +02:00
parent 62f3c08aad
commit 928dc48011
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,8 @@
const fs = require('fs')
module.exports = function compile(page, fn){
module.exports = compile
function compile(page, fn){
switch(page.type){
case 'md':
compileMD(page.file, fn)

View File

@ -4,7 +4,7 @@
"description": "",
"main": "compile.js",
"scripts": {
"test": "nodemon compile.js"
"test": "nodemon app.js"
},
"author": "Mats van Reenen",
"license": "GPL-3.0",