PageSourceSearch

https://thisabled.co.kr/_/fo-shopping/assets/format-currency-vS79YReB.js

js thisabled.co.kr collected 2026-09-26 07:04:39 UTC 1,166 bytes, 1 lines download raw bytes

1const s={KRW:{charStr:"원",charPosition:"right",decimalCount:0,decimalChar:".",thousandChar:","},JPY:{charStr:"円",charPosition:"right",decimalCount:0,decimalChar:".",thousandChar:","},USD:{charStr:"$",charPosition:"left",decimalCount:2,decimalChar:".",thousandChar:","},EUR:{charStr:"€",charPosition:"right",decimalCount:2,decimalChar:",",thousandChar:"."}},l="KRW";function m(n,a={}){const h=a.currency??l,o=a.format??"default",t=s[h]??s[l],r={charStr:t.charStr,charPosition:t.charPosition,decimalCount:a.decimalCount??t.decimalCount,decimalChar:a.decimalChar??t.decimalChar,thousandChar:a.thousandChar??t.thousandChar},i=n<0,c=u(Math.abs(n),r);if(a.formatTemplate&&a.formatTemplate.includes("%s")){const d=a.formatTemplate.replace("%s",c);return i?`-${d}`:d}let e;switch(o){case"none":e=c;break;case"code-left":e=`${h} ${c}`;break;case"code-right":e=`${c} ${h}`;break;case"char":case"default":default:e=r.charPosition==="left"?`${r.charStr}${c}`:`${c}${r.charStr}`}return i?`-${e}`:e}function u(n,a){const h=n.toFixed(a.decimalCount),[o,t]=h.split("."),r=o.replace(/\B(?=(\d{3})+(?!\d))/g,a.thousandChar);return t?`${r}${a.decimalChar}${t}`:r}export{m as f};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.