This is a platform-agnostic storage utility class.
Supported environments: * Node * Browser
import {Storage} from "@justinmusti/storage"
// Browser
const storage = new Storage()
// Node
const storage = new Storage({path: "path-to-file-to-write-to"})
storage.set("test", "hello")
// Browser: localStorage now has `test` entry with value 'hello'
// Node: file at provided path now has `test` entry with value 'hello'
storage.has('uploadURL') // returns true or false
storage.removeitem('test')
storage.has('test') // Now this returns false.
storage.clear()
// All entries are removed.