MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / tmpFile

Function tmpFile

javascript/selenium-webdriver/io/index.js:190–199  ·  view source on GitHub ↗

* @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)

Source from the content-addressed store, hash-verified

188 * @see https://www.npmjs.org/package/tmp
189 */
190function 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.

Callers

nothing calls this directly

Calls 2

checkedCallFunction · 0.85
fileMethod · 0.80

Tested by

no test coverage detected