Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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/findlinks

Find 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)