partdir

0.1.0 • Public • Published

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

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

prints 2a/a3455b63e270b69736191c20c76a162c0c26e0.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    3

Package Sidebar

Install

npm i partdir

Weekly Downloads

2

Version

0.1.0

License

MIT

Last publish

Collaborators

  • uggedal