* @param {{postfix: string}=} opt_options Temporary file options. * @return {!Promise } A promise for the path to a temporary file. * @see https://www.npmjs.org/package/tmp
(opt_options)
| 188 | * @see https://www.npmjs.org/package/tmp |
| 189 | */ |
| 190 | function tmpFile(opt_options) { |
| 191 | return checkedCall((callback) => { |
| 192 | /** check fixed in v > 0.2.1 if |
| 193 | * (typeof options === 'function') { |
| 194 | * return [{}, options]; |
| 195 | * } |
| 196 | */ |
| 197 | tmp.file(opt_options, callback) |
| 198 | }) |
| 199 | } |
| 200 | |
| 201 | /** |
| 202 | * Searches the {@code PATH} environment variable for the given file. |
nothing calls this directly
no test coverage detected