UNPKG

@statezero/statezero-tunnel

Version:

Tunnelmole client for StateZero users to create secure tunnels to their local services.

15 lines 421 B
import fs from 'fs'; import { LocalStorage } from 'node-localstorage'; import os from 'os'; let storage; const initStorage = async () => { const homedir = os.homedir(); const dir = homedir + '/' + '.tmole.sh'; if (!fs.existsSync(dir)) { fs.mkdirSync(dir); } storage = new LocalStorage(dir + '/local-storage'); return; }; export { initStorage, storage }; //# sourceMappingURL=storage.js.map