{"_id":"@wrote/read-dir-structure","_rev":"300152","name":"@wrote/read-dir-structure","description":"Reads directory structure.","dist-tags":{"latest":"1.3.1"},"maintainers":[{"name":"zvr","email":""}],"time":{"modified":"2024-01-31T16:06:55.000Z","created":"2018-06-21T03:59:15.325Z","1.3.1":"2020-02-03T03:49:16.943Z","1.3.0":"2019-11-25T01:13:53.137Z","1.2.0":"2019-04-10T16:28:52.552Z","1.1.0":"2019-04-05T13:36:52.650Z","1.0.3":"2019-04-02T18:13:29.805Z","1.0.2":"2019-01-14T22:20:17.897Z","1.0.1":"2018-07-04T14:36:56.333Z","1.0.0":"2018-06-21T03:59:15.325Z"},"users":{},"author":{"name":"Anton","email":"anton@adc.sh"},"repository":{"type":"git","url":"git://github.com/wrote/read-dir-structure.git"},"versions":{"1.3.1":{"name":"@wrote/read-dir-structure","version":"1.3.1","description":"Reads directory structure.","main":"compile/index.js","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"zoroaster -a test/spec","test-build":"ALAMODE_ENV=test-build yarn test","test-compile":"ALAMODE_ENV=test-compile yarn test","test-all":"yarn-s test test-build","test-watch":"yarn test -w","lint":"eslint .","lib":"depack src/depack -o compile/depack.js -a -c -s","doc":"NODE_DEBUG=doc doc -o README.md -n _wrote","d":"yarn-s template d1 externs","d1":"typal compile/index.js -u","template":"typal compile/template.js -T compile/index.js -t types","externs":"typal types/externs.js","e":"alanode","example/":"yarn e example/example","b":"alamode src -o build -s","build":"yarn-s doc b"},"externs":"types/externs.js","repository":{"type":"git","url":"git://github.com/wrote/read-dir-structure.git"},"keywords":["@wrote","directory","dir","folder","read","structure","tree","path","filesystem","fs","file","ls","stat","lstat"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/wrote/read-dir-structure/issues"},"homepage":"https://github.com/wrote/read-dir-structure#readme","devDependencies":{"alamode":"^3.3.2","documentary":"^1.35.10","eslint-config-artdeco":"1.0.1","makepromise":"^3.2.0","yarn-s":"1.2.3","zoroaster":"^4.2.0"},"licenseText":"MIT License\n\nCopyright (c) 2018 Art Deco Code Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@wrote/read-dir-structure@1.3.1","dist":{"shasum":"f63e2d9f8dd4b5c173b803cdc2f8d2cebd29177b","size":11453,"noattachment":false,"key":"/@wrote/read-dir-structure/-/@wrote/read-dir-structure-1.3.1.tgz","tarball":"http://name.csiicloud.com:7001/@wrote/read-dir-structure/download/@wrote/read-dir-structure-1.3.1.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-dir-structure_1.3.1_1580701756810_0.9154826503266622"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T19:18:38.191Z","publish_time":1580701756943,"_cnpm_publish_time":1580701756943},"1.3.0":{"name":"@wrote/read-dir-structure","version":"1.3.0","description":"Reads directory structure.","main":"compile/index.js","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"zoroaster -a test/spec","test-build":"ALAMODE_ENV=test-build yarn test","test-compile":"ALAMODE_ENV=test-compile yarn test","test-all":"yarn-s test test-build","test-watch":"yarn test -w","lint":"eslint .","compile":"depack src/depack -o compile/depack.js -a -c -s","doc":"NODE_DEBUG=doc doc -o README.md -n _wrote","d":"yarn-s template d1 externs","d1":"typal compile/index.js -u","template":"typal compile/template.js -T compile/index.js -t types","externs":"typal types/externs.js","e":"alanode","example/":"yarn e example/example","b":"alamode src -o build -s","build":"yarn-s doc b"},"externs":"types/externs.js","repository":{"type":"git","url":"git://github.com/wrote/read-dir-structure.git"},"keywords":["@wrote","directory","dir","folder","read","structure","tree","path","filesystem","fs","file","ls","stat","lstat"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/wrote/read-dir-structure/issues"},"homepage":"https://github.com/wrote/read-dir-structure#readme","devDependencies":{"alamode":"^3.2.0","documentary":"^1.34.1","eslint-config-artdeco":"1.0.1","makepromise":"^3.1.0","yarn-s":"1.1.0","zoroaster":"^4.1.2"},"licenseText":"MIT License\n\nCopyright (c) 2018 Art Deco Code Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@wrote/read-dir-structure@1.3.0","dist":{"shasum":"3e0652807ec76085474ec427c2cf198f13a09be4","size":11571,"noattachment":false,"key":"/@wrote/read-dir-structure/-/@wrote/read-dir-structure-1.3.0.tgz","tarball":"http://name.csiicloud.com:7001/@wrote/read-dir-structure/download/@wrote/read-dir-structure-1.3.0.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-dir-structure_1.3.0_1574644432996_0.13850440590149082"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T19:18:36.569Z","publish_time":1574644433137,"_cnpm_publish_time":1574644433137},"1.2.0":{"name":"@wrote/read-dir-structure","version":"1.2.0","description":"Reads directory structure.","main":"build/index.js","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"zoroaster -a test/spec","test-build":"ALAMODE_ENV=test-build yarn test","test-all":"yarn-s test test-build","test-watch":"yarn test -w","lint":"eslint .","doc":"NODE_DEBUG=doc doc documentary -o README.md","d":"typal src/index.js -c","externs":"typal externs.js -e","e":"alanode","example/":"yarn e example/example","b":"alamode src -o build -s","build":"yarn-s doc b"},"externs":"externs.js","repository":{"type":"git","url":"git://github.com/wrote/read-dir-structure.git"},"keywords":["@wrote","directory","dir","folder","read","structure","tree","path","filesystem","fs","file","ls","stat","lstat"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/wrote/read-dir-structure/issues"},"homepage":"https://github.com/wrote/read-dir-structure#readme","devDependencies":{"alamode":"^1.9.2","documentary":"^1.23.4","eslint-config-artdeco":"1.0.1","yarn-s":"1.1.0","zoroaster":"^3.11.4"},"dependencies":{"makepromise":"^3.1.0"},"licenseText":"MIT License\n\nCopyright (c) 2018 Art Deco Code Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@wrote/read-dir-structure@1.2.0","dist":{"shasum":"864399b144c6ff3e78bc879fb3d8a1f6bf537384","size":5159,"noattachment":false,"key":"/@wrote/read-dir-structure/-/@wrote/read-dir-structure-1.2.0.tgz","tarball":"http://name.csiicloud.com:7001/@wrote/read-dir-structure/download/@wrote/read-dir-structure-1.2.0.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-dir-structure_1.2.0_1554913732437_0.9470768364273554"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T19:18:34.875Z","publish_time":1554913732552,"_cnpm_publish_time":1554913732552},"1.1.0":{"name":"@wrote/read-dir-structure","version":"1.1.0","description":"Reads directory structure.","main":"build/index.js","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"zoroaster -a test/spec","test-build":"ALAMODE_ENV=test-build yarn test","test-all":"yarn-s test test-build","test-watch":"yarn test -w","lint":"eslint .","doc":"NODE_DEBUG=doc doc documentary -o README.md","e":"alanode","example/":"yarn e example/example","b":"alamode src -o build -s","build":"yarn-s doc b"},"repository":{"type":"git","url":"git://github.com/wrote/read-dir-structure.git"},"keywords":["@wrote","directory","dir","folder","read","structure","tree","path","filesystem","fs","file","ls","stat","lstat"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/wrote/read-dir-structure/issues"},"homepage":"https://github.com/wrote/read-dir-structure#readme","devDependencies":{"alamode":"^1.9.2","documentary":"^1.23.4","eslint-config-artdeco":"1.0.1","yarn-s":"1.1.0","zoroaster":"^3.11.4"},"dependencies":{"makepromise":"^3.0.3"},"licenseText":"MIT License\n\nCopyright (c) 2018 Art Deco Code Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@wrote/read-dir-structure@1.1.0","dist":{"shasum":"f69f75a1b4f3960ffad1bfa96ae1e04d692e08cd","size":4754,"noattachment":false,"key":"/@wrote/read-dir-structure/-/@wrote/read-dir-structure-1.1.0.tgz","tarball":"http://name.csiicloud.com:7001/@wrote/read-dir-structure/download/@wrote/read-dir-structure-1.1.0.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-dir-structure_1.1.0_1554471412441_0.1678156454191584"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T19:18:33.237Z","publish_time":1554471412650,"_cnpm_publish_time":1554471412650},"1.0.3":{"name":"@wrote/read-dir-structure","version":"1.0.3","description":"Reads directory structure.","main":"build/index.js","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"zoroaster -a test/spec","test-build":"ALAMODE_ENV=test-build yarn test","test-all":"yarn-s test test-build","test-watch":"yarn test -w","lint":"eslint .","doc":"NODE_DEBUG=doc doc documentary -o README.md","e":"alanode","example/":"yarn e example/example","b":"alamode src -o build -s","build":"yarn-s doc b"},"repository":{"type":"git","url":"git://github.com/wrote/read-dir-structure.git"},"keywords":["@wrote","directory","dir","folder","read","structure","tree","path","filesystem","fs","file","ls","stat","lstat"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/wrote/read-dir-structure/issues"},"homepage":"https://github.com/wrote/read-dir-structure#readme","devDependencies":{"alamode":"1.9.0","documentary":"1.23.2","eslint-config-artdeco":"1.0.1","snapshot-context":"2.2.1","yarn-s":"1.1.0","zoroaster":"3.11.2"},"dependencies":{"makepromise":"3.0.3"},"licenseText":"MIT License\n\nCopyright (c) 2018 Art Deco Code Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@wrote/read-dir-structure@1.0.3","dist":{"shasum":"f2f65da8cef15e2083edd812f748d3277a91754c","size":4293,"noattachment":false,"key":"/@wrote/read-dir-structure/-/@wrote/read-dir-structure-1.0.3.tgz","tarball":"http://name.csiicloud.com:7001/@wrote/read-dir-structure/download/@wrote/read-dir-structure-1.0.3.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-dir-structure_1.0.3_1554228809628_0.23158891026441775"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T19:18:31.535Z","publish_time":1554228809805,"_cnpm_publish_time":1554228809805},"1.0.2":{"name":"@wrote/read-dir-structure","version":"1.0.2","description":"Reads directory structure.","main":"build","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"zoroaster -a test/spec","test-build":"ALAMODE_ENV=test-build yarn test","test-all":"yarn-s test test-build","test-watch":"yarn test -w","lint":"eslint .","doc":"NODE_DEBUG=doc doc documentary -o README.md","e":"node example","example/":"yarn e example/example.js","b":"alamode src -o build -s","build":"yarn-s doc b"},"repository":{"type":"git","url":"git://github.com/wrote/read-dir-structure.git"},"keywords":["@wrote","directory","dir","folder","read","structure","tree","path","filesystem","fs","file","ls","stat","lstat"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/wrote/read-dir-structure/issues"},"homepage":"https://github.com/wrote/read-dir-structure#readme","devDependencies":{"alamode":"1.6.1","documentary":"1.20.1","eslint-config-artdeco":"1.0.1","snapshot-context":"2.0.4","yarn-s":"1.1.0","zoroaster":"3.6.6"},"dependencies":{"makepromise":"3.0.2"},"licenseText":"MIT License\n\nCopyright (c) 2018 Art Deco Code Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@wrote/read-dir-structure@1.0.2","dist":{"shasum":"37c32e1f8ed8c1f29d9dab6991f4f10839e1251f","size":4021,"noattachment":false,"key":"/@wrote/read-dir-structure/-/@wrote/read-dir-structure-1.0.2.tgz","tarball":"http://name.csiicloud.com:7001/@wrote/read-dir-structure/download/@wrote/read-dir-structure-1.0.2.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-dir-structure_1.0.2_1547504417793_0.7997127676785112"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T19:18:29.872Z","publish_time":1547504417897,"_cnpm_publish_time":1547504417897},"1.0.1":{"name":"@wrote/read-dir-structure","version":"1.0.1","description":"Reads directory structure.","main":"build","scripts":{"t":"zoroaster -b","test":"zoroaster -b test/spec","test-build":"BABEL_ENV=test-build yarn test","test-all":"yarn-s test test-build","test-watch":"yarn test -w","lint":"eslint .","doc":"NODE_DEBUG=doc doc README-source.md -o README.md","e":"node example","example/":"yarn e example/example.js","b":"b --source-maps","build":"yarn-s doc b"},"files":["build"],"repository":{"type":"git","url":"git://github.com/wrote/read-dir-structure.git"},"keywords":["@wrote","directory","dir","folder","read","structure","tree","path","filesystem","fs","file","ls","stat","lstat"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/wrote/read-dir-structure/issues"},"homepage":"https://github.com/wrote/read-dir-structure#readme","devDependencies":{"documentary":"1.8.2","eslint-config-artdeco":"1.0.0","snapshot-context":"2.0.1","yarn-s":"1.1.0","zoroaster":"2.1.0"},"dependencies":{"makepromise":"2.0.0"},"licenseText":"MIT License\n\nCopyright (c) 2018 Art Deco Code Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@wrote/read-dir-structure@1.0.1","dist":{"shasum":"fe1bf41715a0dbf7c2fb65a7d7b4fefab127eb24","size":5564,"noattachment":false,"key":"/@wrote/read-dir-structure/-/@wrote/read-dir-structure-1.0.1.tgz","tarball":"http://name.csiicloud.com:7001/@wrote/read-dir-structure/download/@wrote/read-dir-structure-1.0.1.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-dir-structure_1.0.1_1530715016249_0.9350358917127806"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T19:18:28.230Z","publish_time":1530715016333,"_cnpm_publish_time":1530715016333},"1.0.0":{"name":"@wrote/read-dir-structure","version":"1.0.0","description":"Reads directory structure.","main":"build","scripts":{"t":"zoroaster -b","test":"zoroaster -b test/spec","test-build":"BABEL_ENV=test-build yarn test","test-all":"yarn-s test test-build","test-watch":"yarn test -w","lint":"eslint .","doc":"NODE_DEBUG=doc doc README-source.md -o README.md","e":"node example","example/":"yarn e example/example.js","build-src":"babel src --out-dir build --source-maps","build":"yarn-s doc build-src"},"files":["build"],"repository":{"type":"git","url":"git://github.com/artdecocode/read-dir-structure.git"},"keywords":["@wrote/read-dir-structure","directory","read"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/artdecocode/read-dir-structure/issues"},"homepage":"https://github.com/artdecocode/read-dir-structure#readme","devDependencies":{"@babel/cli":"7.0.0-beta.51","@babel/core":"7.0.0-beta.51","@babel/plugin-syntax-object-rest-spread":"7.0.0-beta.51","@babel/plugin-transform-modules-commonjs":"7.0.0-beta.51","@babel/register":"7.0.0-beta.51","babel-plugin-transform-rename-import":"2.2.0","documentary":"1.4.0","eslint":"4.19.1","eslint-config-artdeco":"1.0.0","snapshot-context":"2.0.1","yarn-s":"1.1.0","zoroaster":"2.1.0"},"dependencies":{"makepromise":"2.0.0"},"licenseText":"MIT License\n\nCopyright (c) 2018 Art Deco Code Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@wrote/read-dir-structure@1.0.0","dist":{"shasum":"11b827934b493b2f730a32a91551eadacd41b936","size":5568,"noattachment":false,"key":"/@wrote/read-dir-structure/-/@wrote/read-dir-structure-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/@wrote/read-dir-structure/download/@wrote/read-dir-structure-1.0.0.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-dir-structure_1.0.0_1529553555242_0.6072483320130422"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T19:18:26.582Z","publish_time":1529553555325,"_cnpm_publish_time":1529553555325}},"readme":"# @wrote/read-dir-structure\n\n[![npm version](https://badge.fury.io/js/%40wrote%2Fread-dir-structure.svg)](https://www.npmjs.com/package/@wrote/read-dir-structure)\n\n`@wrote/read-dir-structure` is Node.JS package to a read directory structure.\n\n```sh\nyarn add @wrote/read-dir-structure\n```\n\n## Table Of Contents\n\n- [Table Of Contents](#table-of-contents)\n- [API](#api)\n- [Types](#types)\n- [`async readDirStructure(dirPath, opts=): DirectoryStructure`](#async-readdirstructuredirpath-stringopts-readdirstructureopts-directorystructure)\n- [`getFiles(content, path): !Array<string>`](#getfilescontent-contentpath-string-array)\n- [Reasons for Errors](#reasons-for-errors)\n- [Copyright](#copyright)\n\n## API\n\nThere is a single default export function, import it with the following statement:\n\n```js\nimport readDirStructure from '@wrote/read-dir-structure'\n```\n\nThe types and [externs](externs.js) for _Google Closure Compiler_ via [**_Depack_**](https://github.com/dpck/depack) are defined in the `_readDirStructure` namespace.\n\n## Types\n\nThe return type of the function is a _DirectoryStructure_. It is a recursive object, where items have either `File`, `Directory` or `SymLink` types specified in the `type` field, and if the item is a directory, it has the `content` property which is another _DirectoryStructure_.\n\n<code>Object&lt;string, <a href=\"#type-directorystructure\" title=\"A directory structure representation.\">!DirectoryStructure</a>&gt;</code> __<a name=\"type-content\">`Content`</a>__: The recursive content of the directory.\n\n__<a name=\"type-directorystructure\">`DirectoryStructure`</a>__: A directory structure representation.\n\n|  Name   |                                             Type                                              |                    Description                    |\n| ------- | --------------------------------------------------------------------------------------------- | ------------------------------------------------- |\n| type    | <em>string</em>                                                                               | The type of the item.                             |\n| content | <em><a href=\"#type-content\" title=\"The recursive content of the directory.\">!Content</a></em> | The recursive content if the item is a directory. |\n\n<p align=\"center\"><a href=\"#table-of-contents\">\n  <img src=\"/.documentary/section-breaks/0.svg?sanitize=true\">\n</a></p>\n\n## <code>async <ins>readDirStructure</ins>(</code><sub><br/>&nbsp;&nbsp;`dirPath: string,`<br/>&nbsp;&nbsp;`opts=: !ReadDirStructureOpts,`<br/></sub><code>): <i>DirectoryStructure</i></code>\nRead a directory, and return its structure as an object. Only `Files`, `Directories` and `Symlinks` are included!\n\n - <kbd><strong>dirPath*</strong></kbd> <em>`string`</em>: Path to the directory.\n - <kbd>opts</kbd> <em>`!ReadDirStructureOpts`</em> (optional): The options.\n\nReads the structure of the directory.\n\n```js\n/* yarn example/ */\nimport readDirStructure from '@wrote/read-dir-structure'\n\n(async () => {\n  const res = await readDirStructure('example/directory')\n  console.log(JSON.stringify(res, null, 2))\n})()\n```\n\nOutput for the [`example/directory`](example/directory):\n\n```json\n{\n  \"content\": {\n    \"fileA-ln.txt\": {\n      \"type\": \"SymbolicLink\"\n    },\n    \"fileA.txt\": {\n      \"type\": \"File\"\n    },\n    \"fileB.txt\": {\n      \"type\": \"File\"\n    },\n    \"test.json\": {\n      \"type\": \"File\"\n    },\n    \"subdirectory\": {\n      \"content\": {\n        \"subdirFileA.txt\": {\n          \"type\": \"File\"\n        },\n        \"subdirFileB.txt\": {\n          \"type\": \"File\"\n        }\n      },\n      \"type\": \"Directory\"\n    }\n  },\n  \"type\": \"Directory\"\n}\n```\n\n<p align=\"center\"><a href=\"#table-of-contents\">\n  <img src=\"/.documentary/section-breaks/1.svg?sanitize=true\">\n</a></p>\n\n\n## <code><ins>getFiles</ins>(</code><sub><br/>&nbsp;&nbsp;`content: !Content,`<br/>&nbsp;&nbsp;`path: string,`<br/></sub><code>): <i>!Array<string></i></code>\nAfter running the `readDirStructure`, this function can be used to flatten the `content` output and return the list of all files (not including symlinks).\n\n - <kbd><strong>content*</strong></kbd> <em><code><a href=\"1-structure.md#type-content\" title=\"The recursive content of the directory.\">!Content</a></code></em>: The content from the `readDirStructure` result.\n - <kbd><strong>path*</strong></kbd> <em>`string`</em>: The original path to the directory.\n\n```js\n/* yarn example/ */\nimport readDirStructure, { getFiles } from '@wrote/read-dir-structure'\n\n(async () => {\n  const path = 'example/directory'\n  const res = await readDirStructure(path)\n  const files = getFiles(res.content, path)\n  console.log(JSON.stringify(files, null, 2))\n})()\n```\n```json\n[\n  \"example/directory/fileA.txt\",\n  \"example/directory/fileB.txt\",\n  \"example/directory/test.json\",\n  \"example/directory/subdirectory/subdirFileA.txt\",\n  \"example/directory/subdirectory/subdirFileB.txt\"\n]\n```\n\n<p align=\"center\"><a href=\"#table-of-contents\">\n  <img src=\"/.documentary/section-breaks/2.svg?sanitize=true\">\n</a></p>\n\n## Reasons for Errors\n\nThe following errors can happen and have been [context tested](test/spec/errors.js) against:\n\n|          Happens when...          |   code    |                        Message                         |\n| --------------------------------- | --------- | ------------------------------------------------------ |\n| not passing any path              | `-` | Please specify a path to the directory                 |\n| passing a path to a symbolic link | `ENOTDIR` | Path is not a directory                                |\n| passing a path to a file          | `ENOTDIR` | Path is not a directory                                |\n| directory does not exist          | `ENOENT` | ENOENT: no such file or directory, lstat '%DIRECTORY%' |\n\n<p align=\"center\"><a href=\"#table-of-contents\">\n  <img src=\"/.documentary/section-breaks/3.svg?sanitize=true\">\n</a></p>\n\n## Copyright\n\n<table>\n  <tr>\n    <th>\n      <a href=\"https://artd.eco\">\n        <img width=\"100\" src=\"https://raw.githubusercontent.com/wrote/wrote/master/images/artdeco.png\"\n          alt=\"Art Deco\">\n      </a>\n    </th>\n    <th>© <a href=\"https://artd.eco\">Art Deco</a> for <a href=\"https://wrote.cc\">Wrote</a> 2019</th>\n    <th>\n      <a href=\"https://wrote.cc\">\n        <img src=\"https://avatars3.githubusercontent.com/u/40831417?s=100\" width=\"100\" alt=\"Wrote\">\n      </a>\n    </th>\n    <th>\n      <a href=\"https://www.technation.sucks\" title=\"Tech Nation Visa\">\n        <img width=\"100\" src=\"https://raw.githubusercontent.com/idiocc/cookies/master/wiki/arch4.jpg\"\n          alt=\"Tech Nation Visa\">\n      </a>\n    </th>\n    <th><a href=\"https://www.technation.sucks\">Tech Nation Visa Sucks</a></th>\n  </tr>\n</table>\n\n<p align=\"center\"><a href=\"#table-of-contents\">\n  <img src=\"/.documentary/section-breaks/-1.svg?sanitize=true\">\n</a></p>","_attachments":{},"homepage":"https://github.com/wrote/read-dir-structure#readme","bugs":{"url":"https://github.com/wrote/read-dir-structure/issues"},"license":"MIT"}