truncate-url:将URL截断为特定长度

时间:2021-05-14 05:04:40
【文件属性】:
文件名称:truncate-url:将URL截断为特定长度
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-14 05:04:40
JavaScript 截断网址 将URL截断为特定长度 安装 $ npm install truncate-url 用法 import truncateUrl from 'truncate-url' ; truncateUrl ( 'https://sindresorhus.com/foo/bar/baz/faz' , 30 ) ; //=> 'https://sindresorhus.com/…/faz'
【文件预览】:
truncate-url-main
----index.test-d.ts(152B)
----.gitattributes(19B)
----.github()
--------workflows()
----test.js(698B)
----license(1KB)
----index.d.ts(408B)
----.npmrc(19B)
----.editorconfig(175B)
----.gitignore(23B)
----index.js(924B)
----readme.md(265B)
----package.json(704B)

网友评论