Package Exports
- chef-express
- chef-express/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (chef-express) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
chef-express
static files server designed for node written in typescript, with tests
expressfor routing
Running
$ [PORT=4200] [yarn|npx] chef-express folder [--debug] [--ssl] [--key example.key] [--cert example.crt]const startServer = require("chef-express");
// see https://github.com/chef-js/core#configuration
const config = {};
startServer(config).then((server: Express.Application) => {
// server router api is get, post, any
server.any("/*", (req: Express.Request, res: Express.Response) => {
res.end("200 OK");
});
});PORT=4200- choose server portfolder- folder you want to serve static files from--debug- show logs--ssl- start as https server, with self signed certificate--key example.key- path to real certificate key, use with--ssl--cert example.crt- path to real certificate, use with--ssl
Install
$ yarn add chef-expressLicense
MIT