Skip to main content
Module

x/lume/core/writer.ts>FSWriter

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
class FSWriter
implements Writer
import { FSWriter } from "https://deno.land/x/lume@v2.1.3/core/writer.ts";

Class to write the generated pages and static files in the dest folder.

Constructors

new
FSWriter(options: Options)

Properties

dest: string

Methods

Empty the dest folder

copyFile(file: StaticFile): Promise<boolean>

Copy a static file in the dest folder Returns a boolean indicating if the file has saved

copyFiles(files: StaticFile[]): Promise<StaticFile[]>

Copy the static files in the dest folder

removeFiles(files: string[])
savePage(page: Page): Promise<boolean>

Save a page in the dest folder Returns a boolean indicating if the page has saved

savePages(pages: Page[]): Promise<Page[]>

Save the pages in the dest folder Returns an array of pages that have been saved