How to use the node-persist.clear function in node-persist

To help you get started, we’ve selected a few node-persist examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github OfficeDev / Office-Add-in-NodeJS-SSO / Before / src / server-storage.ts View on Github external
public static async clear() {
        await storage.init();
        await storage.clear();
    }
}
github nitrogenlabs / arkhamjs / packages / arkhamjs-storage-node / src / NodeStorage / NodeStorage.ts View on Github external
return new Promise((resolve) => {
        PersistStorage.clear()
          .then(() => resolve(true))
          .catch(() => resolve(false));
      });
    } catch(error) {