2.0.3 • Published 7 years ago

is-symbolic-link v2.0.3

Weekly downloads
236
License
MIT
Repository
github
Last release
7 years ago

is-symbolic-link Build Status

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