Sphido Logo

A rocket 🚀 fast, lightweight, static site generator

Installation

$ npm i sphido

🥕 Quick Start

const globby = require('globby');
const Sphido = require('sphido');

(async () => {

  // 1. get list of pages    
  const pages = await Sphido.getPages(
    await globby('content/**/*.{md,html}'),
    ...Sphido.extenders
  );

  // 2. save them (with default template)
  for await (const page of pages) {
    await page.save(
        page.dir.replace('content', 'public')
    );
  }

})();

⭐️ Source codes

https://github.com/sphido/sphido

🌵 License

MIT