Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
A very simple markdown blog module
301 Redirect
example
folder).npm install bumble
var Hapi = require('hapi');
var config = require('./bumbleConfig.json');
var server = new Hapi.Server('0.0.0.0', 3000 || process.env.PORT);
server.views({
engines: { jade: 'jade' },
path: 'views',
});
server.route({
method: 'get',
path: '/css/{path*}',
handler: { directory: { path: 'public/css' } }
});
server.route({
method: 'get',
path: '/js/{path*}',
handler: { directory: { path: 'public/js' } }
});
server.pack.require({ 'bumble': config }, function (err) {
if (err) throw err;
server.start(function () {
console.log('bumble running on the port ' + server.info.port);
});
});
The above should enable you to quickly run bumble from a docker instance.
Check out the full example for some simple default templates and styles.
bumbleConfig.json
{
"blogTitle": "Name of blog",
"blogSubtitle": "Here's a tag line",
"blogAuthor": "Blog Author",
"blogAuthorEmail": "author@example.com",
"blogBio": "One day, I decided to write a blog. This is the story of that blog.",
"siteUrl": "http://example.com",
"rssUrl": "http://example.com/feed/rss",
"postDir": "posts",
"blogHome": "/",
"maxPosts": 10,
"introPostWords": 100,
"maxRelated": 5,
"randomRelated": true,
"browserCache": 3600000,
"labels": ["blog", "http"]
}
maxPosts
will set the maximum number of posts available on the main page and RSS feed.
introPostWords
will truncate the opening paragraphs at 100 words, including at least the opening paragraph, and never cutting off a line mid-sentence.
maxRelated
limits the number of related posts shown in a single post view.
randomRelated
determines whether related posts should be shuffled or not. (If false, this will instead list your maximum of related posts in order of recency.)
blogHome
will accept routes like /
or /blog
or /somethingelse
.
labels
can be a string or an array, or not provided at all. Please see Hapi API docs for more info on labels
Put markdown files in the blog
directory (or whichever you've chosen in postDir
)
If you add to the metadata (1) a proper timestamp to the date
field in metadata, and/or (2) a hyphenated version of the url name to the slug
field, then (respectively of which you add) it doesn't matter what you name the markdown files.
Alternatively, to automatically date and slugify your urls, name your files in this format:
YYYY-MM-DD-this-is-the-name-of-the-post.md
Just include a simple section of YAML at the header of each post, fenced in with three dashes and using these keys:
---
date: 2013-06-02 22:04:39 GMT
slug: well-yep-another-post
tags: sample, example
title: Well, yep, another post!
---
If you're using bumble, submit a pull request and add yourself to this list. :)
FAQs
A very simple blog
The npm package bumble receives a total of 311 weekly downloads. As such, bumble popularity was classified as not popular.
We found that bumble demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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 uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.