folderize

convert a flat directory into a tree

npm install folderize
1 downloads in the last week
4 downloads in the last month

folderizer

Converts a flat directory into a bunch of folders

example:

$ ls .
a.js b.js c.js d.js e.js f.js
$ folderizer -n 3
$ ls *
dir1:
a.js b.js c.js
dir2:
d.js e.js f.js
npm loves you