Skip to content

jbenner-radham/node-is-file-in-cwd

Repository files navigation

is-file-in-cwd

Check if a filename is in the current working directory.

Install

$ yarn add is-file-in-cwd # Or alternatively: `npm install --save is-file-in-cwd`

Usage

'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

$ yarn test # Or alternatively: `npm test`

License

The MIT License (Expat). See the license file for details.

About

Check if a filename is in the current working directory.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published