UNPKG

boardgame.io

Version:
13 lines (10 loc) 276 B
import { InMemory } from './inmemory'; import { FlatFile } from './flatfile'; const DBFromEnv = () => { return process.env.FLATFILE_DIR ? new FlatFile({ dir: process.env.FLATFILE_DIR, }) : new InMemory(); }; export { InMemory, FlatFile, DBFromEnv };