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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    790
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    790
  • 1.0.0
    2

Package Sidebar

Install

npm i exists-link

Weekly Downloads

214

Version

2.0.0

License

MIT

Last publish

Collaborators

  • zkochan