bevacqua / local-storage

:left_luggage: A simplified localStorage API that just works
https://ponyfoo.com
MIT License
523 stars 62 forks source link

I can't use any functionalities into my javascript #3

Closed nanastasov closed 9 years ago

nanastasov commented 9 years ago

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?

bevacqua commented 9 years ago

This currently depends on using a module loader like Browserify or AMD