New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

sausage

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sausage

Static site generator

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

Sausage

Static site generator

What?

It’s a static site generator. An SSG. Sausage. Get it? Ha ha. Moving on.

No really, what?

Sausage is a really simple tool with zero dependencies for building static sites with vanilla JavaScript.

The build process revolves around pages and templates.

Pages live in the content folder and are .js files that export things.

Templates live in the templates folder and are .js files that export a function. This function returns a string for a given page.

## How?

Here’s an absurdly simple hello world example.

Imagine this is your page content.

// pages/index.js
export const title = 'Hello, world!';
export const template = 'home';

And this is your template.

// templates/home.js
export default ({ title }) => `<p>${title}</p>`;

Run Sausage to build this to a build directory.

$ npx sausage
Building... done!
$ cat build/index.html
<p>Hello, world!</p>

Hurrah!

FAQs

Package last updated on 14 Nov 2019

Did you know?

Socket

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.

Install

Related posts