1.0.3 • Published 3 years ago

smart404 v1.0.3

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
3 years ago

smart404

Make your error pages smart! Redirect users who made a typo automatically!

Usage:

const smart404 = require("smart404");
app.use(smart404(app, {
  distance: .8, //80% or more similar to an actual route.
  methods: ["GET"], //Methods to redirect
  status: 302, //Status to send
  ignoreRoutes: [], //Ignore these routes
}));//Must go BEFORE any other routes

It's that simple!

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago