is-symbolic-link

2.0.3 • Public • Published

is-symbolic-link Build Status

Indicates if path is symbolic link

Install

$ npm install --save is-symbolic-link

Usage

const isSymbolicLink = require('is-symbolic-link');
 
isSymbolicLink('/home/guntur/.npmrc').then(val => {
    console.log(val);
    //=> true
});
 
console.log(isSymbolicLink.sync('/home/guntur/todo.md'));
//=> false

API

isSymbolicLink(input)

Returns a promise value of an input

isSymbolicLink.sync(input)

Returns a boolean value of an input

input

  • Type: string

Related

License

MIT © Guntur Poetra

Package Sidebar

Install

npm i is-symbolic-link

Weekly Downloads

35

Version

2.0.3

License

MIT

Last publish

Collaborators

  • guntur