* @returns {string}
()
| 179 | * @returns {string} |
| 180 | */ |
| 181 | function tmpdir() { |
| 182 | if (isWindows) { |
| 183 | const path = process.env.TEMP || |
| 184 | process.env.TMP || |
| 185 | (process.env.SystemRoot || process.env.windir) + '\\temp'; |
| 186 | |
| 187 | if (path.length > 1 && path[path.length - 1] === '\\' && path[path.length - 2] !== ':') { |
| 188 | return StringPrototypeSlice(path, 0, -1); |
| 189 | } |
| 190 | |
| 191 | return path; |
| 192 | } |
| 193 | |
| 194 | return getTempDir() || '/tmp'; |
| 195 | } |
| 196 | tmpdir[SymbolToPrimitive] = () => tmpdir(); |
| 197 | |
| 198 | /** |
no outgoing calls
no test coverage detected
searching dependent graphs…