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

https://github.com/abranhe/dtfe

Does a file or directory exist? 🤔
https://github.com/abranhe/dtfe

directory does-exist file npm-package

Last synced: 5 months ago
JSON representation

Does a file or directory exist? 🤔

Awesome Lists containing this project

README

          

# dtfe [![Github](https://github.com/abranhe/dtfe/workflows/build/badge.svg)](https://github.com/abranhe/dtfe) [![Travis](https://travis-ci.com/abranhe/dtfe.svg?branch=master)](https://travis-ci.com/abranhe/dtfe) [![License](https://img.shields.io/github/license/abranhe/dtfe.svg)](https://github.com/abranhe/dtfe/blob/master/license) [![npm](https://img.shields.io/npm/v/dtfe.svg?logo=npm)](https://npmjs.org/dtfe)

> Does the file exist?

## Install

```
$ npm install dtfe
```

Other options?

###### npm

```
$ npm install dtfe
```

###### yarn

```
$ yarn add dtfe
```

###### Github Registry

```
$ npm install abranhe@dtfe
```

## Usage

```js
import check from 'dtfe';

console.log(check('package.json'));
//=> true
```

## API

**check(file)**

> Return a function with a boolean value checking whether a file/directory exist

## License

MIT © [Carlos Abraham](https://github.com/abranhe/)