(fullpath)
| 96 | * @return {string} |
| 97 | */ |
| 98 | export function pathBasename (fullpath) { |
| 99 | let bname = '' |
| 100 | if (fullpath) { |
| 101 | bname = (fullpath.lastIndexOf('/') === fullpath.length - 1) |
| 102 | ? '' |
| 103 | : path.basename(fullpath) |
| 104 | } |
| 105 | return bname |
| 106 | } |
| 107 | |
| 108 | /** |
| 109 | * Checks to see whether a string has the given suffix. |
no outgoing calls
no test coverage detected