【文件属性】:
文件名称:tempfile:获取随机的临时文件路径
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-26 07:53:36
JavaScript
临时文件
获取随机的临时文件路径
签出 ,可以更好地使用此模块。
安装
$ npm install tempfile
用法
const tempfile = require ( 'tempfile' ) ;
tempfile ( '.png' ) ;
//=> '/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T/4049f192-43e7-43b2-98d9-094e6760861b.png'
tempfile ( ) ;
//=> '/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T/6271e235-13b9-4138-8b9b-ee2f26c09ce3'
原料药
tempfile([扩展名])
扩大
类型: string
扩展名追加到路径。
有关的
获取随机的临时文件或目录路径
wr
【文件预览】:
tempfile-main
----index.test-d.ts(135B)
----.gitattributes(19B)
----.github()
--------funding.yml(91B)
--------workflows()
----test.js(186B)
----license(1KB)
----index.d.ts(448B)
----.npmrc(19B)
----.editorconfig(175B)
----.gitignore(23B)
----index.js(204B)
----readme.md(866B)
----package.json(638B)