Popularity
0.4
Growing
Activity
4.9
-
1
2
1

Description

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

$ npx chef-express folder [--debug]

Programming language: TypeScript
License: MIT
Tags: Nodejs     TypeScript     JavaScript     CLI    

chef-express alternatives and similar libraries

Based on the "NodeJS" category.
Alternatively, view chef-express alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of chef-express or a related project?

Add another 'NodeJS' Library

README

chef-express

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

  • express for serving files

Running

$ [PORT=4200] yarn chef-express folder [--debug]
const startServer = require("chef-express");

startServer({
  // this enables http/ws logs
  debug: process.argv.includes("--debug"),
  // port on which the server listens
  port: Number(process.env.PORT || 4200),
  // folder to static server files
  folder: process.argv[2],
}).then((server) => {
  // server api is get, post, any
  server.any("/*", (res, req) => {
    res.end("200 OK");
  });
});
  • PORT=4200 - choose server port
  • folder - folder you want to server static files from
  • --debug - show logs

Install

$ yarn add chef-express

License

MIT


*Note that all licence references and agreements mentioned in the chef-express README section above are relevant to that project's source code only.