shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
writeTmpFileSync
Type:Function
Status:stable
Since:1.0.0
Platform:node
@blackbyte.sugar.node.fs
Create a temporary file on the disk with the passed content and returns the path to it.
Params
- data*-Any
The data to write in the file
- settings{}TWriteTmpFileSyncSettings
Some settings to customize your temp file creation
Return
- -string
The path to the created temporary file
Example
import { writeTmpFileSync } from '@blackbyte/sugar/fs';
const path = writeTmpFileSync('Hello World');Settings
- path-String
A path relative to the temp folder to store your file
Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space