Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/iguntur/is-symbolic-link

Check if filepath is symbolic link
https://github.com/iguntur/is-symbolic-link

await link ln promise symlink

Last synced: about 2 months ago
JSON representation

Check if filepath is symbolic link

Awesome Lists containing this project

README

        

# is-symbolic-link [![Build Status](https://travis-ci.org/iguntur/is-symbolic-link.svg?branch=master)](https://travis-ci.org/iguntur/is-symbolic-link)

> Check if filepath is symbolic link

## Install

``` bash
$ npm install is-symbolic-link
```

## Usage

```js
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

- [get-symlinks](https://github.com/iguntur/get-symlinks) - Get all symbolic link in directory

## License

MIT © [Guntur Poetra](https://github.com/iguntur)