1.0.1 • Published 10 years ago
is-mode-symlink v1.0.1
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-symlinkbower
bower install is-mode-symlinkDuo
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.