【文件属性】:
文件名称:github-url-analyzer:将字符串转为 repo url, https, ssh, git 格式的 url (for github)
文件大小:5KB
文件格式:ZIP
更新时间:2021-06-09 11:10:24
JavaScript
github-url-分析器
分析 srting 到正常的 github 项目 url
安装
$ npm install github-url-analyzer
用法
var analyzer = require ( 'github-url-analyzer' ) ;
console . log ( analyzer ( str ) ) ;
// str can be one of these:
// 'user/project',
// 'git://github.com/user/project#commit-ish',
// 'git://github.com/user/project.git#commit-ish',
// 'https://github.com/user/project#commit-ish',
// 'https://github.com/user/proj
【文件预览】:
github-url-analyzer-master
----.jshintrc(241B)
----.npmignore(61B)
----.travis.yml(149B)
----LICENSE(1KB)
----test()
--------test.js(295B)
----README.md(1KB)
----Makefile(574B)
----.editorconfig(224B)
----.gitignore(859B)
----index.js(2KB)
----package.json(698B)