Nihilist Pocket Monsters
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

sphido

0.0.7 • Public • Published

A rocket 🚀 fast, lightweight, static site generator.

Installation

$ npm i sphido

Quick Start

const globby = require('globby');
const Sphido = require('sphido');
 
(async () => {
 
  // get list of pages...
  const pages = await Sphido.getPages(
   await globby('content/**/*.{md,html}'), ...Sphido.extenders
    );
 
  for await (const page of pages) {
    // save page to HTML (with default theme/page.html)
    // from content ===> public directory
    await page.save(
        page.dir.replace('content', 'public')
    );
  }
  
})();

Examples

License

MIT

install

npm i sphido

Downloadsweekly downloads

27

version

0.0.7

license

MIT

homepage

sphido.org

last publish

collaborators

  • avatar
Report a vulnerability