is-symlink-sync
Synchronously check if a file is a symbolic link
const isSymlinkSync = ; ; //=> true; //=> false
Installation
npm install is-symlink-sync
API
const isSymlinkSync = ;
isSymlinkSync(filePath)
filePath: string
, Buffer
or URL
Return: boolean
It returns true
if the file exists and is a symbolic link, otherwise false
.
Only when the argument type is invalid, it throws an error.
; // doesn't throw any errors; // throws a TypeError
License
Copyright (c) 2015 - 2017 Shinnosuke Watanabe
Licensed under the MIT License.