A very simple helpers library.
npm i @toledorobia/helpers bootstrap lodash sweetalert2
If you want to use modals and toast, you need to add boostrap and sweetalert2 to your vue/react/angular project. You must also add the styles for the helpers.
import "bootstrap/dist/js/bootstrap.bundle.min";
@import "~bootstrap/scss/bootstrap";
@import "~sweetalert2/src/sweetalert2.css";
@import "~@toledorobia/helpers/dist/bundle.css";
If everything is ok, you are able to use all the methods
import { toastError } from "@toledorobia/helpers";