Package Exports
- express-snow-theme
- express-snow-theme/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (express-snow-theme) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
❄️ express-snow-theme
Beautiful snowfall effect middleware for Express.js websites
🚀 Installation
npm install express-snow-theme
🌨️ Basic Usage
const express = require('express');
const snowTheme = require('express-snow-theme')();
const app = express();
app.use('/', snowTheme.middleware());
app.use('/', snowTheme.inject());
app.get('/', (req, res) => {
res.send(`
<html>
<body>
<h1>Winter Page</h1>
</body>
</html>
`);
});
app.listen(3000);
⚙️ Custom Configuration
const snowTheme = require('express-snow-theme')({
snowflakes: ['❄', '❅', '❆'], // Custom characters
density: 100, // More snowflakes
interval: 200, // Creation interval (ms)
minSize: 0.8, // Min snowflake size
maxSize: 2, // Larger flakes
minDuration: 8, // Slower falling
maxDuration: 15, // Max fall duration
wind: 50, // Stronger wind effect
zIndex: 999999 // Stack order
});
🎨 Preset Examples
Light Snow
const snowTheme = require('express-snow-theme')({
density: 30,
minDuration: 8,
wind: 10
});
Blizzard
const snowTheme = require('express-snow-theme')({
density: 150,
interval: 100,
wind: 50,
maxSize: 2
});
Gentle Snow
const snowTheme = require('express-snow-theme')({
density: 40,
minDuration: 10,
maxSize: 1.2,
wind: 5
});
🎄 Features
- Zero dependencies
- Automatically injects snow effect into HTML responses
- Fully configurable appearance and behavior
- Responsive design
- Performance optimized with automatic cleanup
- Mobile-friendly
🔧 Browser Support
- Chrome
- Firefox
- Safari
- Edge
- Opera
📝 License
MIT © ddosnotification
🤝 Contributing
- Fork
- Create feature branch (
git checkout -b feature/amazing
) - Commit changes (
git commit -m 'Add amazing'
) - Push to branch (
git push origin feature/amazing
) - Open a Pull Request
Made with ❄️ for winter web magic