Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xiaoyu2er/google-mirror-check
谷歌镜像搜集+检测
https://github.com/xiaoyu2er/google-mirror-check
Last synced: 3 months ago
JSON representation
谷歌镜像搜集+检测
- Host: GitHub
- URL: https://github.com/xiaoyu2er/google-mirror-check
- Owner: xiaoyu2er
- Created: 2016-03-24T01:34:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-06-11T15:25:03.000Z (over 8 years ago)
- Last Synced: 2024-07-25T10:43:49.550Z (4 months ago)
- Language: JavaScript
- Homepage: http://xiaoyu2er.github.io/2016/03/16/google-mirror/
- Size: 9.77 KB
- Stars: 119
- Watchers: 11
- Forks: 24
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 谷歌镜像搜集+检测
使用方法:
```
var google = require('google-mirror-check')
google.check()
.then(function(arr) {
arr.forEach(function(b) {
// b = {url: '', type: 'mirror': time: 1922, success: true};
var str = '- [' + b.url + '](' + b.url + ')' + ' (' + b.time + 'ms)';
console.log(str);
})
})
```如果你有更多的镜像请加入到 `./src/mirrors.js`,
如果你有更多的变种网页请加入到 `./src/variants.js`,
如果你有更好的检测方法, 请修改 `./index.js`愿每个人都可以自由的获取信息.