UNPKG

crude-docs

Version:

A sample docs generator and easy to use!!

16 lines (12 loc) 321 B
var StaticServer = require('static-server'); const chalk = require('chalk'); module.exports = function(port, root){ console.log(chalk.yellow(`静态服务根路径: ${root}`)); return new StaticServer({ rootPath: root, port: port, name: 'my-http-server', host: 'localhost', cors: '*', }); };