1.0.2 • Published 1 year ago

smart-variables v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Smart Variables

Helper functions for better data managment & cleaner code.

Installation

npm install smart-variables

API

createStorageVariable

Simply synchronizes any operations with localStorage or sessionStorage.

View usage here.

createElementVariable

When the variable is referenced, if the internal reference is undefined, then a new call will be made via document.querySelector. This way, the element is always ready when your code runs.

View usage here.