summaryrefslogtreecommitdiff
path: root/js/make_temp_dir.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/make_temp_dir.ts')
-rw-r--r--js/make_temp_dir.ts18
1 files changed, 8 insertions, 10 deletions
diff --git a/js/make_temp_dir.ts b/js/make_temp_dir.ts
index 8eb878bd3..0f3d93e2f 100644
--- a/js/make_temp_dir.ts
+++ b/js/make_temp_dir.ts
@@ -10,19 +10,17 @@ export interface MakeTempDirOptions {
suffix?: string;
}
-/**
- * makeTempDirSync is the synchronous version of `makeTempDir`.
+/** makeTempDirSync is the synchronous version of `makeTempDir`.
*
- * import { makeTempDirSync } from "deno";
- * const tempDirName0 = makeTempDirSync();
- * const tempDirName1 = makeTempDirSync({ prefix: 'my_temp' });
+ * import { makeTempDirSync } from "deno";
+ * const tempDirName0 = makeTempDirSync();
+ * const tempDirName1 = makeTempDirSync({ prefix: 'my_temp' });
*/
export function makeTempDirSync(options: MakeTempDirOptions = {}): string {
return res(dispatch.sendSync(...req(options)));
}
-/**
- * makeTempDir creates a new temporary directory in the directory `dir`, its
+/** makeTempDir creates a new temporary directory in the directory `dir`, its
* name beginning with `prefix` and ending with `suffix`.
* It returns the full path to the newly created directory.
* If `dir` is unspecified, tempDir uses the default directory for temporary
@@ -30,9 +28,9 @@ export function makeTempDirSync(options: MakeTempDirOptions = {}): string {
* same directory. It is the caller's responsibility to remove the directory
* when no longer needed.
*
- * import { makeTempDir } from "deno";
- * const tempDirName0 = await makeTempDir();
- * const tempDirName1 = await makeTempDir({ prefix: 'my_temp' });
+ * import { makeTempDir } from "deno";
+ * const tempDirName0 = await makeTempDir();
+ * const tempDirName1 = await makeTempDir({ prefix: 'my_temp' });
*/
export async function makeTempDir(
options: MakeTempDirOptions = {}