chef-express
TypeScript icon, indicating that this package has built-in type declarations

3.2.1 • Public • Published

chef-express

kisscc0

npm version build status

static files server designed for node written in typescript, with tests

  • express for routing

Serve folder CLI

$ npx chef-express folder

Serve folder node.js

const { cook } = require("chef-express");

cook({ folder: "folder" }).then((server: Express.Application) => {
  // server api is get, post, any
  server.any("/*", (req: Express.Request, res: Express.Response) => {
    res.end("200 OK");
  });
});
  • minimal configuration is zero configuration, all values have defaults
  • if folder param is omitted default index.html is read from folder = '.'
  • serves from http://localhost:3000 unless port specified

Configuration

For more information about config parameters read:

License

MIT

Package Sidebar

Install

npm i chef-express

Weekly Downloads

466

Version

3.2.1

License

MIT

Unpacked Size

7.06 kB

Total Files

9

Last publish

Collaborators

  • jacekpietal
  • pietal.dev