Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Bundles multiple css or js files into one to reduce worker load for development server (flask) or webserver (nginx) connections
from flask import Flask
from static_bundle import register_extension
app = Flask(__name__, static_folder='static')
register_extension(app)
{% bundler 'cache/vendor.css' %}
<link rel="stylesheet" type="text/css"
href="{{ file_path_for('static', filename = 'fontawesome-free-5.7.1-web/css/fontawesome.min.css') }}">
<link rel="stylesheet" type="text/css"
href="{{ file_path_for('static', filename = 'css/bootstrap_table_1.18.3/bootstrap-table.css') }}">
<link rel="stylesheet" type="text/css"
href="{{ file_path_for('static', filename = 'css/bootstrap_table_1.18.3/extensions/filter-control/bootstrap-table-filter-control.css') }}">
<link rel="stylesheet" type="text/css" href="{{ file_path_for('static', filename = 'css/datetime_picker_css.css') }}">
{% endbundler %}
This will generate cache/vendor.css
inside static folder and generate final output like below
<link rel="stylesheet" type="text/css" href="/static/cache/vendor.css">
Please create github issue if you encounter any problem.
FAQs
Bundles multiple css/js files into one and reduce request time
We found that static-bundler demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.