# fluent-cart/1.5.0/assets/chunks/Storage.js

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler, version 1.5.0. 2 lines.

- Page: https://pluginprobe.com/plugins/fluent-cart/1.5.0/code/assets/chunks/Storage.js
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.5.0/raw/assets/chunks/Storage.js
- Modified: 2026-06-23T13:53:00+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-cart/1.5.0/code/assets/chunks/Storage.js#L10-L20`.

```javascript
import{S as s}from"./Str.js?ver=1.5.0";import{A as i}from"./Arr.js?ver=1.5.0";const o=a=>"fcart-"+s.snake(i.get(window,"fluentCartAdminApp.app_config.version","1.0.0"))+"_"+a;class l{static get(t,e=""){let r=localStorage.getItem(o(t));if(r&&["{","["].indexOf(r[0])!==-1)try{r=JSON.parse(r)}catch{return e}else{if(r==="true")return!0;if(r==="false")return!1}return r||e}static set(t,e){typeof e=="object"&&(e=JSON.stringify(e)),localStorage.setItem(o(t),e)}static remove(t){localStorage.removeItem(o(t))}static clear(){localStorage.clear()}static serverMaxUploadSize(){return i.get(window,"fluentCartAdminApp.max_upload_size")||""}static readableFileSizeFromBytes(t){if(t==0)return"0 B";if(!t)return"";const e=Math.floor(Math.log(t)/Math.log(1024)),r=["B","KB","MB","GB","TB"];return(t/Math.pow(1024,e)).toFixed(2)+" "+r[e]}}export{l as S};

```
