UNPKG

@resk/core

Version:

An innovative TypeScript framework that empowers developers to build applications with a fully decorator-based architecture for efficient resource management. By combining the power of decorators with a resource-oriented design, DecorRes enhances code cla

1 lines 284 B
'use strict';function o(n,i=false){if(!n||typeof n!="string")return "";let t=n.trim();if(t==="")return "";let s=t.split("/").pop()||t.split("\\").pop()||t,e=s.lastIndexOf(".");if(e<=0||e===s.length-1)return "";let r=s.substring(e);return i?r.substring(1):r}exports.getFileExtension=o;