is-mode-symlink
Check if a file mode integer represents symbolic link
isModeSymlink(41453) //=> true;
isModeSymlink(33261) //=> false;
Like Node's stats.isSymbolicLink()
, but so portable as to work everywhere.
Installation
Package managers
npm
npm install is-mode-symlink
bower
bower install is-mode-symlink
Duo
const isModeSymlink = require('shinnn/is-mode-symlink');
Standalone
Download the script file directly.
API
isModeSymlink(mode)
mode: Number
Return: Boolean
It returns true
if the number represents file mode of symbolic link, otherwise false
.