shorten-repo-url:缩短GitHub之类的GitHub链接可缩短Issues和Commit链接

时间:2021-05-01 10:50:43
【文件属性】:
文件名称:shorten-repo-url:缩短GitHub之类的GitHub链接可缩短Issues和Commit链接
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-01 10:50:43
JavaScript 缩短回复网址 缩短GitHub链接,例如GitHub可以缩短“问题”和“提交”链接。 用于 查看以了解每个URL的缩写。 GitLab URL大多数是兼容的,但没有官方支持。 它适用于任何域,因此也支持GitHub Enterprise。 安装 $ npm install shorten-repo-url 用法 const shortenRepoUrl = require ( 'shorten-repo-url' ) ; const HTML = shortenRepoUrl ( 'https://github.com/nodejs/node/tree/v0.12/doc' , 'https://github.com/nodejs/node' // same repo ) ; //=> 'v0.12' // repo-less URL const HTML
【文件预览】:
shorten-repo-url-main
----.gitignore(97B)
----tsconfig.json(41B)
----.github()
--------workflows()
----.gitattributes(12B)
----package.json(874B)
----index.test-d.ts(191B)
----readme.md(2KB)
----index.js(5KB)
----index.d.ts(683B)
----test.js(11KB)
----.editorconfig(231B)
----license(1KB)
----.npmrc(19B)

网友评论