1.0.1 • Published 9 years ago

is-mode-symlink v1.0.1

Weekly downloads
2
License
Unlicense
Repository
github
Last release
9 years ago

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