web-secure
v0.1.1
Published
A comprehensive security middleware for Node.js applications that helps secure connections between web servers and devices, with built-in protection against XSS, CSRF, and other common web vulnerabilities.
Downloads
29
Readme
WebSecure
A comprehensive security middleware for Node.js applications that helps secure connections between web servers and devices, with built-in protection against XSS, CSRF, and other common web vulnerabilities.
Features
- 🔒 Encryption Utilities: AES-256-GCM encryption/decryption for sensitive data
- 🛡️ XSS Protection: Content Security Policy implementation and HTML sanitization
- 🔐 CSRF Protection: Token generation and validation for forms and AJAX requests
- 📡 Security Headers: Comprehensive HTTP security headers (HSTS, X-Frame-Options, etc.)
- 🔍 Input Sanitization: Utilities to sanitize user input and prevent injection attacks
- 🌐 HTTPS Enforcement: Automatic redirection to HTTPS in production environments
- 📝 TypeScript Support: Full type safety with comprehensive interfaces
Installation
npm install web-secure