https://github.com/jbenner-radham/node-is-file-in-cwd
Check if a filename is in the current working directory.
https://github.com/jbenner-radham/node-is-file-in-cwd
check cwd exists file filename process
Last synced: 2 months ago
JSON representation
Check if a filename is in the current working directory.
- Host: GitHub
- URL: https://github.com/jbenner-radham/node-is-file-in-cwd
- Owner: jbenner-radham
- License: mit
- Created: 2017-12-26T16:33:55.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-26T16:55:49.000Z (over 7 years ago)
- Last Synced: 2024-04-28T11:42:49.851Z (about 1 year ago)
- Topics: check, cwd, exists, file, filename, process
- Language: JavaScript
- Size: 41 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
is-file-in-cwd
==============
Check if a filename is in the current working directory.Install
-------
```sh
$ yarn add is-file-in-cwd # Or alternatively: `npm install --save is-file-in-cwd`
```Usage
-----
```js
'use strict';const isFileInCwd = require('is-file-in-cwd');
// Returns `true` if a file named `README.md` is located in the
// directory that `process.cwd()` is pointing to. Returns `false`
// otherwise.
isFileInCwd('README.md');
```Testing
-------
```sh
$ yarn test # Or alternatively: `npm test`
```License
-------
The MIT License (Expat). See the [license file](LICENSE) for details.