Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

kisshan13/exhancer.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

15 Commits

Repository files navigation

Exhancer

An enhancer for express js with built-in file system routing, error handlers and plugins (middlewares).

See Official Documentation

It's simply what you need in top of express js.

{ console.log("Hello") })">import exhancer, { zodError, mongoError } from "exhancer";
import * as path from "path";
import * as url from "url";

const __filename = url.fileURLToPath(import.meta.url);
const __dirname = url.fileURLToPath(new URL('.', import.meta.url));

const exhapp = new exhancer.Exhancer({ fsRouting: true, directory: path.resolve(__dirname, "src") })

exhapp.onError([zodError, mongoError]);

exhapp.run(4000, () => {
console.log("Hello")
})

About

An enhancer for express js which includes file system routing, better error handling and much more !!!

Topics

Resources

Readme

License

MIT license

Stars

Watchers

Forks

Packages

Contributors