exists-link

2.0.0 • Public • Published

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

/exists-link/

    Package Sidebar

    Install

    npm i exists-link

    Weekly Downloads

    490

    Version

    2.0.0

    License

    MIT

    Last publish

    Collaborators

    • zkochan