2.0.0 • Published 7 years ago

exists-link v2.0.0

Weekly downloads
571
License
MIT
Repository
github
Last release
7 years ago

exists-link

Last version Build Status Coverage Status

Check if a link exists

This is a copy of exists-file by @Kikobeats just for links not files.

Install

npm install exists-link --save

Usage

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

existsLink.sync(link)

link

Required Type: string

License

MIT © Zoltan Kochan