tempy:获取随机的临时文件或目录路径

时间:2021-05-04 05:30:56
【文件属性】:
文件名称:tempy:获取随机的临时文件或目录路径
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-04 05:30:56
JavaScript 脾气暴躁 获取随机的临时文件或目录路径 安装 $ npm install tempy 用法 const tempy = require ( 'tempy' ) ; tempy . file ( ) ; //=> '/private/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T/4f504b9edb5ba0e89451617bf9f971dd' tempy . file ( { extension : 'png' } ) ; //=> '/private/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T/a9fb0decd08179eb6cf4691568aa2018.png' tempy . file ( { name : 'unicorn.png' } ) ; //=> '/private/v
【文件预览】:
tempy-main
----.gitignore(23B)
----.github()
--------workflows()
--------funding.yml(91B)
----.gitattributes(19B)
----package.json(990B)
----index.test-d.ts(1KB)
----readme.md(3KB)
----index.js(2KB)
----index.d.ts(5KB)
----test.js(4KB)
----.editorconfig(175B)
----license(1KB)
----.npmrc(19B)

网友评论