exists-link
Version:
Check if a link exists
43 lines (27 loc) • 990 B
Markdown
# exists-link

[](https://travis-ci.org/zkochan/exists-link)
[](https://coveralls.io/github/zkochan/exists-link)
> Check if a link exists
This is a copy of [exists-file](https://github.com/Kikobeats/exists-file) by @Kikobeats just for links not files.
## Install
```bash
npm install exists-link --save
```
## Usage
```js
var existsLink = require('.')
// async with a promise
existsLink('./node_modules/nyc').then(console.log).catch(console.error)
// sync
var exists = existsLink.sync('./node_modules/nyc')
console.log(exists)
```
## API
### existsLink(link): Promise<boolean>
### existsLink.sync(link)
#### link
*Required*
Type: `string`
## License
MIT © [Zoltan Kochan](https://www.kochan.io)