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? 🤔
- Host: GitHub
- URL: https://github.com/abranhe/dtfe
- Owner: abranhe
- License: mit
- Created: 2018-07-31T05:11:31.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-09-11T05:15:00.000Z (almost 6 years ago)
- Last Synced: 2025-10-21T17:57:22.772Z (9 months ago)
- Topics: directory, does-exist, file, npm-package
- Language: JavaScript
- Homepage: https://npm.im/dtfe
- Size: 8.79 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Funding: .github/funding.yml
- License: license
Awesome Lists containing this project
README
# dtfe [](https://github.com/abranhe/dtfe) [](https://travis-ci.com/abranhe/dtfe) [](https://github.com/abranhe/dtfe/blob/master/license) [](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/)