function getIdBySrc(src) {
    const isStr = itype.string(src);
    
    if (!isStr)
        return;
    
    if (src.includes(':'))
        src += '-join';
    
    const num = src.lastIndexOf('/') + 1;
    const sub = src.substr(src, num);
    
    const id = src
        .replace(sub, '')
        .replace(/\./g, '-');
    
    return id;
}
Function gets id by src
@param src

Example: http://domain.com/1.js -> 1_js