{"_id":"node-filelist","_rev":"3301972","name":"node-filelist","description":"Get a list of the absolute path in the file location. This plugin reading all the files in a folder recursively.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"tea3gt","email":""}],"time":{"modified":"2024-05-30T04:07:38.000Z","created":"2016-08-05T10:34:44.201Z","1.0.0":"2017-04-25T10:13:39.038Z","0.0.1":"2016-08-05T10:34:44.201Z"},"users":{},"author":{"name":"tea3","email":"tea3gtinfo@gmail.com","url":"https://tea3.github.io/"},"repository":{"type":"git","url":"git+https://github.com/tea3/node-filelist.git"},"versions":{"1.0.0":{"name":"node-filelist","version":"1.0.0","main":"index","dependencies":{"async":"^2.0.1"},"description":"Get a list of the absolute path in the file location. This plugin reading all the files in a folder recursively.","devDependencies":{},"author":{"name":"tea3","email":"tea3gtinfo@gmail.com","url":"https://tea3.github.io/"},"bugs":{"url":"https://github.com/tea3/node-filelist/issues"},"keywords":["node","recursively","path"],"license":"MIT","maintainers":[{"name":"tea3gt","email":""}],"repository":{"type":"git","url":"git+https://github.com/tea3/node-filelist.git"},"gitHead":"7eac6aae11c409f5fcb9de6d4a508e94e3c2c682","homepage":"https://github.com/tea3/node-filelist#readme","_id":"node-filelist@1.0.0","scripts":{},"_shasum":"205508f78e35453fccbc633f983b5c3ba50b4509","_from":".","_npmVersion":"3.8.8","_nodeVersion":"4.3.0","_npmUser":{"name":"tea3gt","email":"tea3gtinfo@gmail.com"},"dist":{"shasum":"205508f78e35453fccbc633f983b5c3ba50b4509","size":2179,"noattachment":false,"key":"/node-filelist/-/node-filelist-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/node-filelist/download/node-filelist-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/node-filelist-1.0.0.tgz_1493115218811_0.4456057180650532"},"directories":{},"publish_time":1493115219038,"_hasShrinkwrap":false,"_cnpm_publish_time":1493115219038,"_cnpmcore_publish_time":"2021-12-16T16:37:22.494Z"},"0.0.1":{"name":"node-filelist","version":"0.0.1","main":"index","dependencies":{"async":"^2.0.1"},"description":"Get a list of the absolute path in the file location. This plugin reading all the files in a folder recursively.","devDependencies":{},"author":{"name":"tea3","email":"tea3gtinfo@gmail.com","url":"https://tea3.github.io/"},"bugs":{"url":"https://github.com/tea3/node-filelist/issues"},"keywords":["node","recursively","path"],"license":"MIT","maintainers":[{"name":"tea3gt","email":""}],"repository":{"type":"git","url":"git+https://github.com/tea3/node-filelist.git"},"gitHead":"e1109aa3f021f6c37e5f17ff0bbefe8de68f0e10","homepage":"https://github.com/tea3/node-filelist#readme","_id":"node-filelist@0.0.1","scripts":{},"_shasum":"d8ae7643c6bb2e9c24af6f7f1a860abbab113bfe","_from":".","_npmVersion":"3.4.0","_nodeVersion":"0.10.33","_npmUser":{"name":"tea3gt","email":"tea3gtinfo@gmail.com"},"dist":{"shasum":"d8ae7643c6bb2e9c24af6f7f1a860abbab113bfe","size":2193,"noattachment":false,"key":"/node-filelist/-/node-filelist-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/node-filelist/download/node-filelist-0.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/node-filelist-0.0.1.tgz_1470393283910_0.1344215776771307"},"directories":{},"publish_time":1470393284201,"_hasShrinkwrap":false,"_cnpm_publish_time":1470393284201,"_cnpmcore_publish_time":"2021-12-16T16:37:22.783Z"}},"readme":"# node-filelist\n\nGet a list of the absolute path in the file location. This plugin reading all the files in a folder recursively.\n\n## Installation\n\n``` bash\n$ npm install node-filelist --save\n```\n\n## Usage\n\nFor example. If you want to read the image file.\n\n``` javascript\nvar fl      = require('node-filelist');\nvar files   = [ \"/path-you-want-to-read\" ];\nvar option  = { \"ext\" : \"jpeg|jpg|png|gif\" };\n\nfl.read(files, option , function (results){\n    for(var i=0; i<results.length; i++){\n      console.log(results[i].path);\n      //console.log(results[i].stats.mtime);   \t// If you want stats.mtime , option.isStats should set true.\n    }\n});\n```\n\nIt will be in the following such a results.\n\n``` bash\n/path-you-want-to-read/sample-1.jpg\n/path-you-want-to-read/example-dir/sample-2.jpg\n/path-you-want-to-read/sample-3.png\n/path-you-want-to-read/sample-4.gif\n...\n```\n\n## Option\n\n| option | description | default |\n| :---: | :--- | :--- |\n| ext | Extension of the file you want to read. | all file |\n| isStats | If you want [stats](https://nodejs.org/api/fs.html#fs_class_fs_stats \"Documentation - node.js\") in results. | `false` |\n\n\n## Results\n\n| results | description |\n| :---: | :--- |\n| path | The path of the file that you have read . |\n| stats | The [stats](https://nodejs.org/api/fs.html#fs_class_fs_stats \"Documentation - node.js\") of the file that you have read . |\n\n## License\n\nMIT","_attachments":{},"homepage":"https://github.com/tea3/node-filelist#readme","bugs":{"url":"https://github.com/tea3/node-filelist/issues"},"license":"MIT"}