filenamify-url:将URL转换为有效的文件名

时间:2021-05-26 07:55:38
【文件属性】:
文件名称:filenamify-url:将URL转换为有效的文件名
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-26 07:55:38
JavaScript filenamify-url 将URL转换为有效的文件名 安装 $ npm install filenamify-url 用法 const filenamifyUrl = require ( 'filenamify-url' ) ; filenamifyUrl ( 'http://sindresorhus.com/foo?bar=baz' ) ; //=> 'sindresorhus.com!foo!bar=baz' filenamifyUrl ( 'http://sindresorhus.com/foo' , { replacement : ':horse_face:' } ) ; //=> 'sindresorhus.com:horse_face:foo' 原料药 filenamifyUrl(URL,选项?) 接受URL并返回有效的文件名。 网址 类型: string 转换为有效文件名的URL。 选项 类型: obje
【文件预览】:
filenamify-url-main
----.gitignore(23B)
----package.json(735B)
----.npmrc(19B)
----index.js(424B)
----test.js(742B)
----.github()
--------workflows()
----license(1KB)
----readme.md(633B)
----index.test-d.ts(236B)
----.gitattributes(19B)
----.editorconfig(175B)
----index.d.ts(871B)

网友评论