Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/popomore/findlinks
Find the broken links
https://github.com/popomore/findlinks
Last synced: 3 months ago
JSON representation
Find the broken links
- Host: GitHub
- URL: https://github.com/popomore/findlinks
- Owner: popomore
- Created: 2016-12-09T17:16:09.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-06-06T08:24:02.000Z (over 1 year ago)
- Last Synced: 2024-10-05T01:01:35.775Z (3 months ago)
- Language: JavaScript
- Size: 1.42 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: History.md
Awesome Lists containing this project
README
# Findlinks
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][codecov-image]][codecov-url]
[![David deps][david-image]][david-url]
[![Known Vulnerabilities][snyk-image]][snyk-url]
[![npm download][download-image]][download-url][npm-image]: https://img.shields.io/npm/v/findlinks.svg?style=flat-square
[npm-url]: https://npmjs.org/package/findlinks
[travis-image]: https://img.shields.io/travis/popomore/findlinks.svg?style=flat-square
[travis-url]: https://travis-ci.org/popomore/findlinks
[codecov-image]: https://codecov.io/gh/popomore/findlinks/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/popomore/findlinks
[david-image]: https://img.shields.io/david/popomore/findlinks.svg?style=flat-square
[david-url]: https://david-dm.org/popomore/findlinks
[snyk-image]: https://snyk.io/test/npm/findlinks/badge.svg?style=flat-square
[snyk-url]: https://snyk.io/test/npm/findlinks
[download-image]: https://img.shields.io/npm/dm/findlinks.svg?style=flat-square
[download-url]: https://npmjs.org/package/findlinksFind the broken links
## Installation
```
npm install findlinks -g
```## Usage
```
findlinks https://eggjs.org/
```Thanks https://cn.vuejs.org for test fixtures
## API
If you require this module, it will return a function.
```js
const findlinks = require('findlinks');
findlinks({ src: 'https://eggjs.org/' })
.then(result => console.log(result))
.catch(err => console.error(err));
// { count: xx, success: xx, fail: xx }
```## License
(The MIT License)