Skip to content

zkochan/exists-link

Repository files navigation

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

About

Check if a link exists

Resources

License

Stars

Watchers

Forks

Packages

No packages published