UNPKG

vuex-persistfile

Version:

Persist Vuex state in the filesystem for Electron

14 lines (10 loc) 200 B
const fs = require('fs') class FsDriver { write(path, data) { fs.writeFileSync(path, data, 'utf8') } read(path) { return fs.readFileSync(path, 'utf8') } } module.exports = FsDriver