UNPKG

webcapt

Version:

A simple cli to screen capture web pages and save them to disk as images or pdfs.

8 lines (7 loc) 204 B
import { existsSync } from 'fs'; export const nodeFs = { exists: (path) => existsSync(path), }; export const inMemoryFs = (existingPaths) => ({ exists: (path) => existingPaths.includes(path), });