rev-file:获取文件的修订文件路径

时间:2021-05-26 07:59:08
【文件属性】:
文件名称:rev-file:获取文件的修订文件路径
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-26 07:59:08
JavaScript 转档 获取文件的修订文件路径 读取文件,MD5对其进行哈希处理,将哈希值截断为,将其附加到文件名中,然后返回修改后的路径。 安装 $ npm install rev-file 用法 const revFile = require ( 'rev-file' ) ; revFile ( 'src/unicorn.png' ) . then ( filepath => { console . log ( filepath ) ; //=> 'src/unicorn-bb9d8fe615.png' } ) ; 原料药 revFile(文件路径) 返回已修订文件路径的Promise 。 revFile.sync(文件路径) 返回修订的文件路径。 执照 麻省理工学院:copyright:
【文件预览】:
rev-file-main
----index.js(522B)
----test.js(186B)
----package.json(657B)
----readme.md(630B)
----.github()
--------workflows()
----license(1KB)
----.gitignore(23B)
----.npmrc(19B)
----.editorconfig(175B)
----.gitattributes(29B)

网友评论