UNPKG

http-server-md

Version:

A configurable HTTP server that serves markdown files rendered to HTML with markdown-it

16 lines (12 loc) 283 B
const _isObject = require('lodash/isObject') /** * @todo full validation * @private */ const validateConfig = (config) => { if (!_isObject(config)) { throw new Error(`Config must be an object (got ${typeof config})`) } return config } module.exports = validateConfig