{"_id":"path-sort","_rev":"4244412","name":"path-sort","description":"Sort a list of file/directory paths","dist-tags":{"latest":"0.1.0"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"time":{"modified":"2026-03-29T21:26:49.000Z","created":"2013-08-07T12:05:31.821Z","0.1.0":"2013-08-09T12:59:15.137Z","0.0.0":"2013-08-07T12:05:31.821Z"},"users":{},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com/"},"repository":{"type":"git","url":"git://github.com/hughsk/path-sort.git"},"versions":{"0.1.0":{"name":"path-sort","version":"0.1.0","description":"Sort a list of file/directory paths","main":"index.js","dependencies":{},"devDependencies":{"tape":"~1.0.4"},"scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/hughsk/path-sort.git"},"keywords":["sort","path","file","directory","tree"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com/"},"license":"MIT","readmeFilename":"README.md","_id":"path-sort@0.1.0","dist":{"shasum":"cb0175d4ecbfa5a18fe674cc6d720bfe15e0b805","size":1970,"noattachment":false,"key":"/path-sort/-/path-sort-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/path-sort/download/path-sort-0.1.0.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"directories":{},"publish_time":1376053155137,"_hasShrinkwrap":false,"_cnpm_publish_time":1376053155137,"_cnpmcore_publish_time":"2021-12-17T01:15:54.346Z"},"0.0.0":{"name":"path-sort","version":"0.0.0","description":"Sort a list of file/directory paths","main":"index.js","dependencies":{},"devDependencies":{"tape":"~1.0.4"},"scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/hughsk/path-sort.git"},"keywords":["sort","path","file","directory","tree"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com/"},"license":"MIT","readmeFilename":"README.md","_id":"path-sort@0.0.0","dist":{"shasum":"a99538fd5b4e425d9bbcdda803f4479989b1c719","size":1813,"noattachment":false,"key":"/path-sort/-/path-sort-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/path-sort/download/path-sort-0.0.0.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"directories":{},"publish_time":1375877131821,"_hasShrinkwrap":false,"_cnpm_publish_time":1375877131821,"_cnpmcore_publish_time":"2021-12-17T01:15:54.546Z"}},"readme":"# path-sort [![stable](http://hughsk.github.io/stability-badges/dist/stable.svg)](http://github.com/hughsk/stability-badges) #\n\nSort a list of file/directory paths, such that something like this:\n\n``` javascript\n[\n  'a/world'\n, 'a/lib/index.js'\n, 'b/package.json'\n, 'b/lib/3/index.js'\n, 'b/lib/2/README.js'\n, 'a/hello'\n, 'b/lib/2/index.js'\n, 'a/lib/README.md'\n, 'b/lib/3/README.js'\n, 'c'\n]\n```\n\nBecomes something like this:\n\n``` javascript\n[\n  'a/hello'\n, 'a/world'\n, 'a/lib/index.js'\n, 'a/lib/README.md'\n, 'b/package.json'\n, 'b/lib/2/index.js'\n, 'b/lib/2/README.js'\n, 'b/lib/3/index.js'\n, 'b/lib/3/README.js'\n, 'c'\n]\n```\n\n## Installation ##\n\n``` bash\nnpm install path-sort\n```\n\n## Usage ##\n\n### `require('path-sort')(files[, sep])` ###\n\nTakes an array of `filenames` with an optional delimiter (`sep`), returning a\nsorted copy.\n","_attachments":{},"readmeFilename":"README.md","license":"MIT"}