checklink:通过nodejs检查死链接

时间:2021-05-01 06:11:12
【文件属性】:
文件名称:checklink:通过nodejs检查死链接
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-01 06:11:12
JavaScript 检查链接 通过nodejs检查死链接。 安装 npm install --save checklink 例子 var checklink = require ( 'checklink' ) ; checklink ( 'https://taobao.com' ) . then ( function ( results ) { // {isPassed: true, count: 1, deadlinks: []} console . log ( results ) ; } ) ; checklink ( [ 'https://taobao.com' , 'http://xxxhhhhhh.com' ] ) . then ( function ( results ) { // {isPassed: false, count: 4, deadlinks:[
【文件预览】:
checklink-master
----.gitignore(46B)
----README.md(870B)
----index.test.js(985B)
----LICENSE(1KB)
----package.json(691B)
----index.js(3KB)
----.travis.yml(156B)
----.editorconfig(227B)

网友评论