sercurer
v1.1.0
Published
Easily secure your HTTP servers!
Downloads
5
Maintainers
Readme
Sercurer
Sercurer is a quick and easy way to make your servers more secure. Secure your server's headers and easily add ratelimiting to your server.
Using Sercurer
// require Sercurer and store it in a variable
const sercurer = require("sercurer");
Add security headers to your server:
app.use(sercurer.headers());
Add ratelimiting to your server:
// limit each IP address to 10 requests every second (1000 milliseconds)
app.use(sercurer.ratelimit(/* requests */ 10, /* milliseconds */ 1000));