universal-localstorage

localstorage that works in node and the browser

Usage no npm install needed!

<script type="module">
  import universalLocalstorage from 'https://cdn.skypack.dev/universal-localstorage';
</script>

README

universal-localstorage

localstorage that works in node and the browser

Build Status Dependency Status Dev Dependency Status Code Coverage

On node it will use node-localstorage. On web if localstorage is available it will use the browsers version of localstorage. If the browser doesn't have localstorage it will use Remy Sharp's pollyfill

Testing

npm test