Hello, so i included the module and use it like:
<script src="node_modules/local-storage/dist/local-storage.js"></script>
<script>ls.set('foo','bar'); console.log(ls.get('foo'));</script>
But nothing happens instead of an error which is: Uncaught ReferenceError: ls is not defined;
I installed it like that npm install local-storage --save
So how can i use it into my own javascript?
Hello, so i included the module and use it like:
<script src="node_modules/local-storage/dist/local-storage.js"></script> <script>ls.set('foo','bar'); console.log(ls.get('foo'));</script>
But nothing happens instead of an error which is:
Uncaught ReferenceError: ls is not defined;
I installed it like thatnpm install local-storage --save
So how can i use it into my own javascript?