# partdir

> Convert a filename to a partitioned directory and filename

Latest version **0.1.0** (published 2013-03-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install partdir
pnpm add partdir
yarn add partdir
bun add partdir
```

## 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.1.0 |
| Published | 2013-03-17 |
| First published | 2013-03-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Eivind Uggedal |
| Maintainers | uggedal |
| Keywords | dir, path, partition, hash |

## Links

- npm: https://www.npmjs.com/package/partdir
- Repository: https://github.com/uggedal/partdir
- npm.io page: https://npm.io/package/partdir

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 0.1.0 (latest) — 2013-03-17

## README

partdir
========

If you need to store loads of files `partdir` can convert a filename to a
hash where the leading part is used as a directory and the remainder as a
filename.

Example
-------

````javascript
var path = require('path');
var partdir = require('partdir');

var parted = partdir('myfile.bin');
console.log(path.join(parted.dir, parted.file)
````

prints `2a/a3455b63e270b69736191c20c76a162c0c26e0`.

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