{"_id":"include-folder","_rev":"4629064","name":"include-folder","description":"expose the content of each file in a folder as an object property.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"parroit","email":"andrea.parodi@ebansoftware.net"}],"time":{"modified":"2026-04-10T18:46:27.000Z","created":"2013-12-05T17:40:42.361Z","1.0.0":"2015-08-22T17:38:55.298Z","0.9.0":"2015-05-11T18:56:19.619Z","0.8.0":"2015-05-11T18:53:58.608Z","0.7.0":"2014-01-18T17:44:20.611Z","0.6.0":"2014-01-18T10:11:59.201Z","0.5.0":"2013-12-06T15:57:16.176Z","0.4.0":"2013-12-06T09:11:27.361Z","0.3.0":"2013-12-05T19:08:05.733Z","0.1.0":"2013-12-05T17:40:42.361Z"},"users":{},"author":{"name":"parroit","email":"andrea@parro.it"},"repository":{"type":"git","url":"git://github.com/parro-it/include-folder.git"},"versions":{"1.0.0":{"name":"include-folder","description":"expose the content of each file in a folder as an object property.","version":"1.0.0","homepage":"https://github.com/parro-it/include-folder","author":{"name":"parroit","email":"andrea@parro.it"},"eslintConfig":{"extends":"eslint-config-semistandard"},"repository":{"type":"git","url":"git://github.com/parro-it/include-folder.git"},"bugs":{"url":"https://github.com/parro-it/include-folder/issues"},"license":"MIT","main":"lib/include-folder","engines":{"node":">= 0.10.0"},"scripts":{"test":"eslint lib/*.js test/*.js && mocha test/*.js","prepublish":"npm run test","watch":"mocha --watch test/*.js"},"devDependencies":{"eslint":"^1.2.1","eslint-config-semistandard":"^5.0.0","eslint-config-standard":"^4.1.0","eslint-plugin-standard":"^1.2.0","expect.js":"^0.2.0","mocha":"^2.2.4"},"keywords":["folder","content","file","require","readFileSync"],"dependencies":{},"gitHead":"b0172a3423463593153b3c11c9ae702cc4589b16","_id":"include-folder@1.0.0","_shasum":"478d3163067ef9d6740e33c582eef34477c5fd79","_from":".","_npmVersion":"2.13.3","_nodeVersion":"3.0.0","_npmUser":{"name":"parroit","email":"andrea.parodi@ebansoftware.net"},"dist":{"shasum":"478d3163067ef9d6740e33c582eef34477c5fd79","size":2795,"noattachment":false,"key":"/include-folder/-/include-folder-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/include-folder/download/include-folder-1.0.0.tgz"},"maintainers":[{"name":"parroit","email":"andrea.parodi@ebansoftware.net"}],"directories":{},"publish_time":1440265135298,"_hasShrinkwrap":false,"_cnpm_publish_time":1440265135298,"_cnpmcore_publish_time":"2021-12-17T11:37:59.026Z"},"0.9.0":{"name":"include-folder","description":"expose the content of each file in a folder as an object property.","version":"0.9.0","homepage":"https://github.com/parro-it/include-folder","author":{"name":"parroit","email":"andrea@parro.it"},"repository":{"type":"git","url":"git://github.com/parro-it/include-folder.git"},"bugs":{"url":"https://github.com/parro-it/include-folder/issues"},"licenses":[{"type":"MIT","url":"https://github.com/parro-it/include-folder/blob/master/LICENSE-MIT"}],"main":"lib/include-folder","engines":{"node":">= 0.10.0"},"scripts":{"test":"jshint lib/*.js test/*.js && mocha test/*.js","watch":"mocha --watch test/*.js"},"devDependencies":{"expect.js":"~0.2.0","jshint":"^2.7.0","mocha":"^2.2.4"},"keywords":["folder","content","file","require","readFileSync"],"dependencies":{},"gitHead":"724cfc0dae37378a535a96e05744f2fbec299bd5","_id":"include-folder@0.9.0","_shasum":"8e4ec64bbff6114ae742aa65e63dc469c46a7542","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"parroit","email":"andrea.parodi@ebansoftware.net"},"maintainers":[{"name":"parroit","email":"andrea.parodi@ebansoftware.net"}],"dist":{"shasum":"8e4ec64bbff6114ae742aa65e63dc469c46a7542","size":3977,"noattachment":false,"key":"/include-folder/-/include-folder-0.9.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/include-folder/download/include-folder-0.9.0.tgz"},"directories":{},"publish_time":1431370579619,"_hasShrinkwrap":false,"_cnpm_publish_time":1431370579619,"_cnpmcore_publish_time":"2021-12-17T11:37:59.257Z"},"0.8.0":{"name":"include-folder","description":"expose the content of each file in a folder as an object property.","version":"0.8.0","homepage":"https://github.com/parro-it/include-folder","author":{"name":"parroit","email":"andrea@parro.it"},"repository":{"type":"git","url":"git://github.com/parro-it/include-folder.git"},"bugs":{"url":"https://github.com/parro-it/include-folder/issues"},"licenses":[{"type":"MIT","url":"https://github.com/parro-it/include-folder/blob/master/LICENSE-MIT"}],"main":"lib/include-folder","engines":{"node":">= 0.10.0"},"scripts":{"test":"jshint lib/*.js test/*.js && mocha test/*.js","watch":"mocha --watch test/*.js"},"devDependencies":{"expect.js":"~0.2.0","jshint":"^2.7.0","mocha":"^2.2.4"},"keywords":["folder","content","file","require","readFileSync"],"dependencies":{},"gitHead":"9c22ac88fa631688572e9a327921dc13c6baeafb","_id":"include-folder@0.8.0","_shasum":"38f5ebc6c82d8fac2728b7fe43fb33cdcb907dc1","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"parroit","email":"andrea.parodi@ebansoftware.net"},"maintainers":[{"name":"parroit","email":"andrea.parodi@ebansoftware.net"}],"dist":{"shasum":"38f5ebc6c82d8fac2728b7fe43fb33cdcb907dc1","size":3977,"noattachment":false,"key":"/include-folder/-/include-folder-0.8.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/include-folder/download/include-folder-0.8.0.tgz"},"directories":{},"publish_time":1431370438608,"_hasShrinkwrap":false,"_cnpm_publish_time":1431370438608,"_cnpmcore_publish_time":"2021-12-17T11:37:59.486Z"},"0.7.0":{"name":"include-folder","description":"expose the content of each file in a folder as an object property.","version":"0.7.0","homepage":"https://github.com/parroit/include-folder","author":{"name":"parroit","email":"andrea.parodi@ebansoftware.net"},"repository":{"type":"git","url":"git://github.com/parroit/include-folder.git"},"bugs":{"url":"https://github.com/parroit/include-folder/issues"},"licenses":[{"type":"MIT","url":"https://github.com/parroit/include-folder/blob/master/LICENSE-MIT"}],"main":"lib/include-folder","engines":{"node":">= 0.10.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.4.1","grunt-mocha-test":"~0.7.0","expect.js":"~0.2.0","grunt-contrib-watch":"~0.5.3"},"keywords":["folder","content","file","require","readFileSync"],"dependencies":{"lodash":"~2.4.1"},"readmeFilename":"README.md","_id":"include-folder@0.7.0","dist":{"shasum":"0bf1c5d854514fd6378d224be165c162641746c0","size":5835,"noattachment":false,"key":"/include-folder/-/include-folder-0.7.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/include-folder/download/include-folder-0.7.0.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"parroit","email":"andrea.parodi@ebansoftware.net"},"maintainers":[{"name":"parroit","email":"andrea.parodi@ebansoftware.net"}],"directories":{},"publish_time":1390067060611,"_hasShrinkwrap":false,"_cnpm_publish_time":1390067060611,"_cnpmcore_publish_time":"2021-12-17T11:37:59.692Z"},"0.6.0":{"name":"include-folder","description":"expose the content of each file in a folder as an object property.","version":"0.6.0","homepage":"https://github.com/parroit/include-folder","author":{"name":"parroit","email":"andrea.parodi@ebansoftware.net"},"repository":{"type":"git","url":"git://github.com/parroit/include-folder.git"},"bugs":{"url":"https://github.com/parroit/include-folder/issues"},"licenses":[{"type":"MIT","url":"https://github.com/parroit/include-folder/blob/master/LICENSE-MIT"}],"main":"lib/include-folder","engines":{"node":">= 0.10.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.4.1","grunt-mocha-test":"~0.7.0","expect.js":"~0.2.0","grunt-contrib-watch":"~0.5.3"},"keywords":["folder","content","file","require","readFileSync"],"dependencies":{"lodash":"~2.4.1"},"readmeFilename":"README.md","_id":"include-folder@0.6.0","dist":{"shasum":"5b9e3770d8785cd9cd19cd1d7390066bdba9424a","size":5500,"noattachment":false,"key":"/include-folder/-/include-folder-0.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/include-folder/download/include-folder-0.6.0.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"parroit","email":"andrea.parodi@ebansoftware.net"},"maintainers":[{"name":"parroit","email":"andrea.parodi@ebansoftware.net"}],"directories":{},"publish_time":1390039919201,"_hasShrinkwrap":false,"_cnpm_publish_time":1390039919201,"_cnpmcore_publish_time":"2021-12-17T11:37:59.932Z"},"0.5.0":{"name":"include-folder","description":"expose the content of each file in a folder as an object property.","version":"0.5.0","homepage":"https://github.com/parroit/include-folder","author":{"name":"parroit","email":"andrea.parodi@ebansoftware.net"},"repository":{"type":"git","url":"git://github.com/parroit/include-folder.git"},"bugs":{"url":"https://github.com/parroit/include-folder/issues"},"licenses":[{"type":"MIT","url":"https://github.com/parroit/include-folder/blob/master/LICENSE-MIT"}],"main":"lib/include-folder","engines":{"node":">= 0.10.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.4.1","grunt-mocha-test":"~0.7.0","expect.js":"~0.2.0","grunt-contrib-watch":"~0.5.3"},"keywords":["folder","content","file","require","readFileSync"],"dependencies":{"lodash":"~2.4.1"},"readmeFilename":"README.md","_id":"include-folder@0.5.0","dist":{"shasum":"a06311ff22b85caa88ae11a60f8c3db5ec5361d3","size":3581,"noattachment":false,"key":"/include-folder/-/include-folder-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/include-folder/download/include-folder-0.5.0.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"parroit","email":"andrea.parodi@ebansoftware.net"},"maintainers":[{"name":"parroit","email":"andrea.parodi@ebansoftware.net"}],"directories":{},"publish_time":1386345436176,"_hasShrinkwrap":false,"_cnpm_publish_time":1386345436176,"_cnpmcore_publish_time":"2021-12-17T11:38:00.240Z"},"0.4.0":{"name":"include-folder","description":"expose the content of each file in a folder as an object property.","version":"0.4.0","homepage":"https://github.com/parroit/include-folder","author":{"name":"parroit","email":"andrea.parodi@ebansoftware.net"},"repository":{"type":"git","url":"git://github.com/parroit/include-folder.git"},"bugs":{"url":"https://github.com/parroit/include-folder/issues"},"licenses":[{"type":"MIT","url":"https://github.com/parroit/include-folder/blob/master/LICENSE-MIT"}],"main":"lib/include-folder","engines":{"node":">= 0.10.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.4.1","grunt-mocha-test":"~0.7.0","expect.js":"~0.2.0","grunt-contrib-watch":"~0.5.3"},"keywords":["folder","content","file","require","readFileSync"],"dependencies":{"lodash":"~2.4.1"},"readmeFilename":"README.md","_id":"include-folder@0.4.0","dist":{"shasum":"e44bb7fd9bf234c06da5e651c2dac7b79ca05f0d","size":3533,"noattachment":false,"key":"/include-folder/-/include-folder-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/include-folder/download/include-folder-0.4.0.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"parroit","email":"andrea.parodi@ebansoftware.net"},"maintainers":[{"name":"parroit","email":"andrea.parodi@ebansoftware.net"}],"directories":{},"publish_time":1386321087361,"_hasShrinkwrap":false,"_cnpm_publish_time":1386321087361,"_cnpmcore_publish_time":"2021-12-17T11:38:00.549Z"},"0.3.0":{"name":"include-folder","description":"expose the content of each file in a folder as an object property.","version":"0.3.0","homepage":"https://github.com/parroit/include-folder","author":{"name":"parroit","email":"andrea.parodi@ebansoftware.net"},"repository":{"type":"git","url":"git://github.com/parroit/include-folder.git"},"bugs":{"url":"https://github.com/parroit/include-folder/issues"},"licenses":[{"type":"MIT","url":"https://github.com/parroit/include-folder/blob/master/LICENSE-MIT"}],"main":"lib/include-folder","engines":{"node":">= 0.10.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.4.1","grunt-mocha-test":"~0.7.0","expect.js":"~0.2.0","grunt-contrib-watch":"~0.5.3"},"keywords":["folder","content","file","require","readFileSync"],"dependencies":{"lodash":"~2.4.1"},"readmeFilename":"README.md","_id":"include-folder@0.3.0","dist":{"shasum":"80f5e61b3947a384032f23a76ded223cf5d519b9","size":3467,"noattachment":false,"key":"/include-folder/-/include-folder-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/include-folder/download/include-folder-0.3.0.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"parroit","email":"andrea.parodi@ebansoftware.net"},"maintainers":[{"name":"parroit","email":"andrea.parodi@ebansoftware.net"}],"directories":{},"publish_time":1386270485733,"_hasShrinkwrap":false,"_cnpm_publish_time":1386270485733,"_cnpmcore_publish_time":"2021-12-17T11:38:00.755Z"},"0.1.0":{"name":"include-folder","description":"The best project ever.","version":"0.1.0","homepage":"https://github.com/parroit/include-folder","author":{"name":"parroit","email":"andrea.parodi@ebansoftware.net"},"repository":{"type":"git","url":"git://github.com/parroit/include-folder.git"},"bugs":{"url":"https://github.com/parroit/include-folder/issues"},"licenses":[{"type":"MIT","url":"https://github.com/parroit/include-folder/blob/master/LICENSE-MIT"}],"main":"lib/include-folder","engines":{"node":">= 0.10.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.4.1","grunt-mocha-test":"~0.7.0","expect.js":"~0.2.0","grunt-contrib-watch":"~0.5.3"},"keywords":[],"readmeFilename":"README.md","_id":"include-folder@0.1.0","dist":{"shasum":"2a4238e9aee0ca82f8dda442d0e2a660d18b0cb8","size":2373,"noattachment":false,"key":"/include-folder/-/include-folder-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/include-folder/download/include-folder-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"parroit","email":"andrea.parodi@ebansoftware.net"},"maintainers":[{"name":"parroit","email":"andrea.parodi@ebansoftware.net"}],"directories":{},"publish_time":1386265242361,"_hasShrinkwrap":false,"_cnpm_publish_time":1386265242361,"_cnpmcore_publish_time":"2021-12-17T11:38:00.961Z"}},"readme":"# include-folder\n[![Build Status](https://secure.travis-ci.org/parro-it/include-folder.png?branch=master)](http://travis-ci.org/parro-it/include-folder)  [![Npm module](https://badge.fury.io/js/include-folder.png)](https://npmjs.org/package/include-folder) [![Code Climate](https://codeclimate.com/github/parro-it/include-folder/badges/gpa.svg)](https://codeclimate.com/github/parro-it/include-folder)\n\nExpose the content of each file in a folder as an object property.\n\nThis module is browserifiable using the [folderify transform](https://github.com/parroit/folderify)\n\n\n## Getting Started\nInstall the module with: `npm install include-folder --save`\n\nThen use like this:\n\n```javascript\nvar includeFolder = require('include-folder'),\n    folder = includeFolder(\"./aFolder\");\n```\n\nSupposing that the content of aFolder was the same as in [the sample in test](https://github.com/parro-it/include-folder/tree/master/test/files)\nfolder var will contains:\n\n```javascript\n{\n    file3OtherFile: 'this is file3OtherContent content',\n    file1: 'this is file1 content',\n    file1_1: 'this is file1_1 content'\n}\n```\n\n## Filter included files\n\nYou can filter which files to include using the filter parameter:\n\n\n```javascript\nvar includeFolder = require('include-folder'),\n    folder = includeFolder(\"./aFolder\",/^a.*/);\n```\n\nThis only include files that start with 'a'\n\nFilter parameters defaults to /^[^.].*$/, which include every file\nin the folder, except hidden ones (these that has a name starting with dot).\n\n## Preserve filenames\n\nTo prevent normalization and stripping of the extension in the result object, the `preserveFilenames` option can be used:\n\n```javascript\nincludeFolder('./www', null, { preserveFilenames: true });\n```\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style.\nAdd unit tests for any new or changed functionality.\n\n\n## License\nCopyright (c) 2013 parroit\nLicensed under the MIT license.\n\n","_attachments":{},"homepage":"https://github.com/parro-it/include-folder","bugs":{"url":"https://github.com/parro-it/include-folder/issues"},"license":"MIT"}