GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — angular/file2modulename.js at master · biggu0/angular Expand file tree/ Copy pathfile2modulename.jsMore file actions 14 lines (14 loc) · 457 Bytes / Copy pathfile2modulename.jsFile metadata and controls14 lines (14 loc) · 457 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 function file2moduleName(filePath) { return filePath // module name should be relative to `modules` and `tools` folder .replace(/.*\/modules\//, '') .replace(/.*\/tools\//, '') // module name should not include `src`, `test`, `lib` .replace(/\/src\//, '/') .replace(/\/lib\//, '/') // module name should not have a suffix .replace(/\.\w*$/, ''); } if (typeof module !== 'undefined') { module.exports = file2moduleName; } |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |