Socket
Socket
Sign inDemoInstall

@coffeekraken/s-static-builder

Package Overview
Dependencies
22
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @coffeekraken/s-static-builder

Simple builder that let you specify a sitemap.xml file as source, and generate a static version of the website by scraping each urls.


Version published
Weekly downloads
383
increased by6.98%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

{{#> layout-readme }}

SStaticBuilder

This package expose a simple SStaticBuilder class that lets you build a static version of your website. This package is not intended to be used with frameworks like nextjs, nuxt, etc...

Features

This builder class gives you some features like:

  • Take your sitemap.xml as source of truth
  • Scrap every url's and save the HTML file in nested folders
  • And more...

Usage

To make use of this builder, you have two choices:

Using the sugar CLI

Simply call this command:

sugar static.build [arguments]

For arguments documentation, simple use:

sugar static.build -h
Using the API

Here's a simple usage example

import __SStaticBuilder from '@coffeekraken/s-static-builder';
const builder = new __SStaticBuilder();
await builder.build({
    input: '/absolute/path/to/your/sitemap.xml',
    outDir: 'static',
});
Build parameters

{{> interface namespace='@coffeekraken.s-static-builder.node.interface.SStaticBuilderBuildParamsInterface' }}

Settings

{{> interface namespace='@coffeekraken.s-static-builder.node.interface.SStaticBuilderSettingsInterface' }}

API

For more information about the API, please check out the API documentation

{{/ layout-readme }}

FAQs

Last updated on 18 Aug 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc