JSI[just,save,it] the most SUPER SUPREME storage wrapper
npm install jsi-just-save-itjs
npm i jsi-just-save-it // with npm
yarn add jsi-just-save-it // better on yarn
pnpm add jsi-just-save-it // even better on pnpm
`
Usage:
`js
import { useJSIStorage } from "jsi-just-save-it";
const data = {
films: ["Rogue One", "Skywalker Saga", "Solo"],
series: ["Bad Batch", "Mandalorian", "Rebels"],
games: ["Knights of the old republic", "Fallen Order", "Old Republic"],
};
const jsi = useJSIStorage();
jsi.set("sw", data); // saves it to the localStorage
jsi.set("sw - films"); // throws an error, so be sure to put some data
jsi.set(data); // also throws an error, the name needs to be a string type
const spit = jsi.get("sw"); // gets it from the localStorage and automatically parses it
console.log(spit); // logs out the return of the 'let' above
jsi.remove("sw"); // remove the key, throw an if theres no key with the given name
jsi.clear(); // clear the localStorage
``