Neat Paraskavedekatriaphobia's Meaning

    spa-ssg

    0.1.1 • Public • Published

    Single page application static site generator (spa-ssg)

    npm install -D spa-ssg

    Ths is a wrapper around Playwright Firefox.

    It takes the url of your live SPA dev server instance, and returns the DOM of the generated app as an html string.

    const spassg = require('spa-ssg');
    
    const url = 'http://localhost:1234/';
    
    spassg(url).then((html) => {
      console.log(html);
    });

    ⚠️ Currently only supports a single route (ie: the url above).


    MIT

    By Brian Zelip

    Install

    npm i spa-ssg

    DownloadsWeekly Downloads

    0

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    2.77 kB

    Total Files

    4

    Last publish

    Collaborators

    • bzelip