0.1.2 • Published 5 years ago

sphido v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

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

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago