ejs-server
v0.2.11
Published
A PHP-like EJS server. Basically using JS like PHP.
Downloads
7
Readme
ejs-server
A PHP-like EJS server. Basically using JS like PHP.
Usage
Usage: ejs-server [options]
-h Help
-p, --port <port> Specify Port Number (default: 3000)
-v, --verbose Verbose Errors (default: false)
-e, --ejsExt <extension> Specify EJS File Extension (default: "ejs")
-r, --root <directory> Directory Root of Public Files (default: Current Working Dir)
-q, --quiet Do Not Log Info (default: false)
Cli
Windows: npm i ejs-server -g
+ npx ejs-server [-options]
Linux: npm i ejs-server -g
+ npx ejs-server [-options]
or npm i -g ejs-server
+ ejs-server [-options]
Build Binaries
git clone https://github.com/uAliFurkanY/ejs-server.git && cd ejs-server && npx -p pkg pkg package.json
NPM Package
npm i ejs-server
const server = require("ejs-server");
const options = {
quiet: true,
port: 80,
root: process.cwd()
};
server(options); // Starts the server
Advantages
- A good way to migrate from PHP.
- Not hard to learn.
- You can modify it for your needs.
Disadvantages
- Security, I made this package myself so expect some security issues. I will fix them if you report them in the "Issues" tab in GitHub.
- No job offerings.