is-symbolic-link
v2.0.3
Published
Indicates if path is symbolic link
Downloads
5,418
Maintainers
Readme
is-symbolic-link
Indicates if path is symbolic link
Install
$ npm install --save is-symbolic-link
Usage
const isSymbolicLink = require('is-symbolic-link');
isSymbolicLink('/home/guntur/.npmrc').then(val => {
console.log(val);
//=> true
});
console.log(isSymbolicLink.sync('/home/guntur/todo.md'));
//=> false
API
isSymbolicLink(input)
Returns a promise value of an input
isSymbolicLink.sync(input)
Returns a boolean value of an input
input
- Type:
string
Related
License
MIT © Guntur Poetra