# largest-file

> Find the largest file in a specify directory

Latest version **0.0.1** (published 2014-08-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install largest-file
pnpm add largest-file
yarn add largest-file
bun add largest-file
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2014-08-13 |
| First published | 2014-08-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | haio |
| Maintainers | haio |

## Links

- npm: https://www.npmjs.com/package/largest-file
- Repository: https://github.com/haio/largest-file
- Issues: https://github.com/haio/largest-file/issues
- npm.io page: https://npm.io/package/largest-file

## Dependencies (2)

- [co](https://npm.io/package/co.md) ~3.1.0
- [thunkify](https://npm.io/package/thunkify.md) ~2.1.2

## Recent versions

- 0.0.1 (latest) — 2014-08-13

## README

# Largest File

Find the largest file in a specify directory

## Usage

### CO style

```js
largest = thunkify(largest);
co(function *() {
    try {
        var largestFile = yield largest(dir);
        console.log('The largest file in %s is %s', dir, largestFile);
    } catch (e) {
        console.log('Oh, got error!');
    }
})();
```

### Callback style

```js
largest(dir, function (err, largestFile) {
    console.log('The largest file in %s is %s', dir, largestFile);
});
```

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