is-mode-symlink

Check if a file mode integer represents symbolic link


Keywords
file, mode, int, integer, number, symbolic link, link, symlink, check, detect
License
Unlicense
Install
bower install is-mode-symlink

Documentation

is-mode-symlink

NPM version Bower version Build Status Build status Coverage Status devDependency Status

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.

License

The Unlicense