
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
Disclaimer: One, this documentation is out of date, two, I've made this for my own purposes so it's very suited to that, it likely won't work, out of the box, just like you want it to, or be very adaptable. But! Have a look if ya want, fork and change it all up!

A static site generator with these goals:
|_BlogFolder
|_partials (optional)
-pagination.html (optional)
-header.html
-footer.html
|_templates
-page.html
-blog.html
-feed.html
|_content (required)
|_assets (optional)
|_css
|_js
|_img
|_blog
-blog-post.md
-moar-post.md
|_about.md
opts = {
source: "./content",
output: "./site",
templateDir: "./templates",
partialsDir: "./partials",
pagination: 4,
templates: {
blog: 'blog/*',
about: 'about.md',
feed: 'page/*'
},
feed: {
postsDir: './content/blog',
urlPrefix: 'blog',
site: {
url: 'http://example.org',
title: 'My Site',
description: 'A site for stuff, ya know?',
imageUrl: 'http://example.org/image.png',
author: 'meauthor',
}
}
}
source, output, templateDir are the locations for the starting content, templates and your build.partialsDir is optional and is for Handlebars template partialstemplates is an object designating what templates to use on what pages. You can list directories or individual files in an array.pagination is how many posts per page to show on post feed pages. If you don't include this, it defaults to 5.feed is not optional, you must provide this information for generating the RSSbalrog module globally, then run it from the command line within a directory set up in the style diagramed above.npm install -g balrog
config.JSONWhen creating a blog feed page template (the one that shows x (pagination number) of posts per page), your template must look like this:
{{#posts}}
{{{content.content}}}
{{/posts}}
{{> pagination}}
The "Previous/Next" links are added to the bottom of blog feeds via a Handlebars Partial template:
<div class="turn-page">
<a class="turn-previous" href="{{previous}}">Previous</a>
<a class="turn-next" href="{{next}}">Next</a>
</div>
Additionally, the class end-of-pages is applied when there is not a previous or next page. If you do not include a partials directory, it will default to generating 1 blog post feed page with all posts.
Meta data is generated through the first 4 lines of each blog post. It doesn't matter how you style them, so long as your first 4 lines are in this order:
# Title
### Author
#### Date
##### Tags, tags, tags
Hi this is a post. So pancake.
From within your soon-to-be Balrog'd directory, run:
balrogServe up the site locally on a random port and watch for changes:
balrog -serve -wCreate a new repository on GitHub and place all the contents of your Balrog generated /site directory on a branch named gh-pages. Bam, website! You can find it at: yourgithubname.github.io/reponame
FAQs
static site generator
The npm package balrog receives a total of 2 weekly downloads. As such, balrog popularity was classified as not popular.
We found that balrog 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.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.