Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Flachpack pipes a directory of HTML files through EJS, Minifier and Terser, resulting in a flat directory of HTML files. Use it to build tiny websites!
I built it for my tiny personal website.
npm i flachpack -g
flachpack -o dist src
# -o / --out: The output directory
# -w / --watch: Enable watch mode and serve over BrowserSync
# last argument: The folder containing the HTML files
An example src/index.html
:
<html>
<head>
<style type="text/css">
/* inline Sass, SCSS or plain SCSS */
<%- includeSass('main.scss') %>
</style>
<script>
// inline JavaScript
<%- include('./script.js') %>
</script>
</head>
<body>
<!-- reuse some parts! -->
<%- include('./parts/header.html') %>
<h1>Hello World!</h1>
</body>
</html>
Look at the repo for danieldiekmeier.de for a bigger example.
FAQs
Transform some HTML files into a tiny website!
The npm package flachpack receives a total of 0 weekly downloads. As such, flachpack popularity was classified as not popular.
We found that flachpack demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.