# hos-find-file

> A module to find a file in a directory

Latest version **1.0.3** (published 2023-04-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install hos-find-file
pnpm add hos-find-file
yarn add hos-find-file
bun add hos-find-file
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2023-04-18 |
| First published | 2023-04-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | yanjianxia |
| Maintainers | yanjianxia0212 |
| Keywords | find, file |

## Links

- npm: https://www.npmjs.com/package/hos-find-file
- npm.io page: https://npm.io/package/hos-find-file

## Dependencies (2)

- [fs](https://npm.io/package/fs.md) ^0.0.1-security
- [path](https://npm.io/package/path.md) ^0.12.7

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 1.0.3 (latest) — 2023-04-18
- 1.0.2 — 2023-04-18
- 1.0.1 — 2023-04-18
- 1.0.0 — 2023-04-18

## README

# hos-find-file

A module to find a file in a directory.

## Installation

To install the package, run: npm install find-file-demo

## Usage

To use the package, simply require it in your code and call the `findFile()` function, passing in the directory and file name as arguments:

```javascript
const hosFindFile = require("hos-find-file");

const fileDir = "xxx";
const fileName = "index.js";
const result = hosFindFile.hasFileInDirectory(fileDir, fileName);
console.log(result);
const hasFileResult = hosFindFile.hasFile("xxx");
```

---
_Source: https://npm.io/package/hos-find-file · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
