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.
changelog2html
Advanced tools
A changelog generator which uses git tags to identify versions and dates for found changelog entry files.
Yet another changelog tool which uses git to build a html changelog.
The changelog will be generated using a set of changelog files. Each change will be documented in its own changelog file which has a unique filename:
The files can be added at any time during your development process but i suggest that you add them in combination with your changes.
The changelog2html tool will iterate over these files and determine which git tag effectively introduced each file. This way a release tag can automatically be linked to each file and thus a version can be assigned to each change. Using this information a swig template will be used to render the changelog. The changelog content must be markdown. A markdown parser will convert the content to html.
The main advantage is that you avoid having conflicts since each change has its own change file. Additionally the changelog is decoupled from the SCM log and thus a enduser friendly changelog can be maintained.
$ npm install changelog2html -g
$ changelog2html
Usage: changelog2html [options] [Changelog folder]
Options:
-h, --help output usage information
-V, --version output the version number
-t, --template [template] Filename of the custom swig template
-o, --output [output] HTML output file
$ changelog2html -t template.html -o build/changelog.html changes
changelog = require('changelog2html');
let templateFile = "template.html";
let pathToChangesFolder = "changes";
changelog(templateFile, pathToChangesFolder).then(function(result) {
console.log(result);
});
Example template:
<h1>{{ pagename|title }}</h1>
<ul>
{% for versionTag, version in versions %}
<li><h2>{{versionTag}} - {{version.date|date('F jS, Y') }}</h2>
<p>
<ul>
{% for change in version.changes %}
<li>
<h2>{{change.type}} - {{change.tag}} - {{change.date|date('F jS, Y') }}</h2>
<p>{{change.contentRendered|safe}}</p>
</li>
{% endfor %}
</ul>
</p>
</li>
{% endfor %}
</ul>
FAQs
A changelog generator which uses git tags to identify versions and dates for found changelog entry files.
The npm package changelog2html receives a total of 0 weekly downloads. As such, changelog2html popularity was classified as not popular.
We found that changelog2html demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.