Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

sphido

0.0.2 • 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 template/single.html)
    // from content ===> public directory
    await page.save(
        page.dir.replace('content', 'public')
    );
  }
  
})();

See example folder for more examples.

License

MIT

install

npm i sphido

Downloadsweekly downloads

3

version

0.0.2

license

MIT

homepage

sphido.org

last publish

collaborators

  • avatar
Report a vulnerability