From f7da47825f3f496e1b439c08aca16e183bf5a98a Mon Sep 17 00:00:00 2001 From: Sakthipriyan Vairamani Date: Tue, 23 Feb 2016 19:26:00 +0530 Subject: [PATCH] replace mkstemps with mkstemp, as signature resembles the later --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index db4f22e..d75826b 100644 --- a/README.md +++ b/README.md @@ -201,7 +201,7 @@ console.log("Dir: ", tmpobj.name); ``` -### mkstemps like, asynchronously +### mkstemp like, asynchronously Creates a new temporary directory with mode `0700` and filename like `/tmp/tmp-nk2J1u`. @@ -211,7 +211,7 @@ tmp.dir({ template: '/tmp/tmp-XXXXXX' }).then(console.log); ``` -### mkstemps like, synchronously +### mkstemp like, synchronously This will behave similarly to the asynchronous version. @@ -263,7 +263,7 @@ All options are optional :) * `mode`: the file mode to create with, it fallbacks to `0600` on file creation and `0700` on directory creation * `prefix`: the optional prefix, fallbacks to `tmp-` if not provided * `postfix`: the optional postfix, fallbacks to `.tmp` on file creation - * `template`: [`mkstemps`][3] like filename template, no default + * `template`: [`mkstemp`][3] like filename template, no default * `dir`: the optional temporary directory, fallbacks to system default (guesses from environment) * `tries`: how many times should the function try to get a unique filename before giving up, default `3` * `keep`: signals that the temporary file or directory should not be deleted on exit, default is `false`, means delete