Détail du package

exists-link

zkochan5.4kMIT2.0.0

Check if a link exists

directory, exists, file, file system

readme

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<boolean>

existsLink.sync(link)

link

Required Type: string

License

MIT © Zoltan Kochan