UNPKG

@alwatr/nitrobase-helper

Version:

Extremely fast and compact JSON-based database that operates in memory, includes a JSON file backup, and serve over the highly accelerated Nginx.

6 lines (4 loc) 521 B
/* 📦 @alwatr/nitrobase-helper v9.38.2 */ import{flatString as z}from"@alwatr/flat-string";import{StoreFileExtension as A}from"@alwatr/nitrobase-types";function D(k){let q=k.region+"/"+k.name;if(k.ownerId!==void 0)q+="/"+k.ownerId;return z(q)}function G(k){let q=k.region;if(k.ownerId!==void 0)q+="/"+k.ownerId.slice(0,3)+"/"+k.ownerId;return q+=`/${k.name}.${k.type}.${k.extension??A.Json}`,z(q)}export{G as getStorePath,D as getStoreId}; //# debugId=7C6900C1F66DBC5764756E2164756E21 //# sourceMappingURL=main.js.map