{"_id":"@wrote/exists","_rev":"300258","name":"@wrote/exists","description":"Check If The File Or Directory Exists, And Return Stats.","dist-tags":{"latest":"1.0.5"},"maintainers":[{"name":"zvr","email":""}],"time":{"modified":"2024-01-31T16:07:35.000Z","created":"2019-01-23T22:19:44.888Z","1.0.5":"2019-04-22T11:12:25.095Z","1.0.4":"2019-04-18T04:21:42.230Z","1.0.3":"2019-04-02T17:59:17.742Z","1.0.2":"2019-04-02T17:55:52.117Z","1.0.1":"2019-01-23T22:51:14.191Z","1.0.0":"2019-01-23T22:19:44.888Z"},"users":{},"author":{"name":"Anton","email":"anton@adc.sh"},"repository":{"type":"git","url":"git://github.com/wrote/exists.git"},"versions":{"1.0.5":{"name":"@wrote/exists","version":"1.0.5","description":"Check If The File Or Directory Exists, And Return Stats.","main":"build","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"yarn t test/spec test/mask","spec":"yarn t test/spec","mask":"yarn t test/mask","test-build":"ALAMODE_ENV=test-build yarn test","lint":"eslint .","doc":"NODE_DEBUG=doc doc -o README.md","b":"alamode src -o build -s","d":"yarn-s d1","d1":"NODE_DEBUG=doc doc src/index.js -g","build":"yarn-s d b doc","e":"alanode","example/":"yarn e example/example.js"},"repository":{"type":"git","url":"git://github.com/wrote/exists.git"},"keywords":["exists","wrote"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/wrote/exists/issues"},"homepage":"https://github.com/wrote/exists#readme","devDependencies":{"alamode":"^1.9.3","documentary":"^1.24.1","eslint-config-artdeco":"1.0.1","yarn-s":"1.1.0","zoroaster":"^3.11.6"},"dependencies":{"makepromise":"^3.1.0"},"licenseText":"MIT License\n\nCopyright (c) 2019 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/exists@1.0.5","dist":{"shasum":"6310f57ee017449ed17f19a85dd1a9dd6380d74b","size":2845,"noattachment":false,"key":"/@wrote/exists/-/@wrote/exists-1.0.5.tgz","tarball":"http://name.csiicloud.com:7001/@wrote/exists/download/@wrote/exists-1.0.5.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exists_1.0.5_1555931544911_0.6560778825452178"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T19:18:19.703Z","publish_time":1555931545095,"_cnpm_publish_time":1555931545095},"1.0.4":{"name":"@wrote/exists","version":"1.0.4","description":"Check If The File Or Directory Exists, And Return Stats.","main":"build","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"yarn t test/spec test/mask","spec":"yarn t test/spec","mask":"yarn t test/mask","test-build":"ALAMODE_ENV=test-build yarn test","lint":"eslint .","doc":"NODE_DEBUG=doc doc documentary -o README.md","b":"alamode src -o build -s","d":"yarn-s d1","d1":"NODE_DEBUG=doc doc src/index.js -g","build":"yarn-s d b doc","rec":"NODE_DEBUG=appshot appshot -T 23 -a Terminal -y 150 -f","e":"node example","example/":"yarn e example/example.js"},"repository":{"type":"git","url":"git://github.com/wrote/exists.git"},"keywords":["exists","wrote"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/wrote/exists/issues"},"homepage":"https://github.com/wrote/exists#readme","devDependencies":{"alamode":"^1.9.3","documentary":"^1.23.4","eslint-config-artdeco":"1.0.1","yarn-s":"1.1.0","zoroaster":"^3.11.6"},"dependencies":{"makepromise":"^3.1.0"},"licenseText":"MIT License\n\nCopyright (c) 2019 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/exists@1.0.4","dist":{"shasum":"5ca93a52202b738800872e474842701c03a3871b","size":2794,"noattachment":false,"key":"/@wrote/exists/-/@wrote/exists-1.0.4.tgz","tarball":"http://name.csiicloud.com:7001/@wrote/exists/download/@wrote/exists-1.0.4.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exists_1.0.4_1555561302008_0.9592112569937359"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T19:18:18.073Z","publish_time":1555561302230,"_cnpm_publish_time":1555561302230},"1.0.3":{"name":"@wrote/exists","version":"1.0.3","description":"Check If The File Or Directory Exists, And Return Stats.","main":"build","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"yarn t test/spec test/mask","spec":"yarn t test/spec","mask":"yarn t test/mask","test-build":"ALAMODE_ENV=test-build yarn test","lint":"eslint .","doc":"NODE_DEBUG=doc doc documentary -o README.md","b":"alamode src -o build -s","d":"yarn-s d1","d1":"NODE_DEBUG=doc doc src/index.js -g","build":"yarn-s d b doc","rec":"NODE_DEBUG=appshot appshot -T 23 -a Terminal -y 150 -f","e":"node example","example/":"yarn e example/example.js"},"repository":{"type":"git","url":"git://github.com/wrote/exists.git"},"keywords":["exists","wrote"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/wrote/exists/issues"},"homepage":"https://github.com/wrote/exists#readme","devDependencies":{"alamode":"1.9.0","documentary":"1.23.2","eslint-config-artdeco":"1.0.1","yarn-s":"1.1.0","zoroaster":"3.11.2"},"dependencies":{"makepromise":"3.0.3"},"licenseText":"MIT License\n\nCopyright (c) 2019 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/exists@1.0.3","dist":{"shasum":"53b0643b8625610647905b63a3ccd858ead36aeb","size":2752,"noattachment":false,"key":"/@wrote/exists/-/@wrote/exists-1.0.3.tgz","tarball":"http://name.csiicloud.com:7001/@wrote/exists/download/@wrote/exists-1.0.3.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exists_1.0.3_1554227957595_0.869126835272181"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T19:18:16.416Z","publish_time":1554227957742,"_cnpm_publish_time":1554227957742},"1.0.2":{"name":"@wrote/exists","version":"1.0.2","description":"Check If The File Or Directory Exists, And Return Stats.","main":"build","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"yarn t test/spec test/mask","spec":"yarn t test/spec","mask":"yarn t test/mask","test-build":"ALAMODE_ENV=test-build yarn test","lint":"eslint .","doc":"NODE_DEBUG=doc doc documentary -o README.md","b":"alamode src -o build -s","d":"yarn-s d1","d1":"NODE_DEBUG=doc doc src/index.js -g","build":"yarn-s d b doc","rec":"NODE_DEBUG=appshot appshot -T 23 -a Terminal -y 150 -f","e":"node example","example/":"yarn e example/example.js"},"repository":{"type":"git","url":"git://github.com/wrote/exists.git"},"keywords":["exists","wrote"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/wrote/exists/issues"},"homepage":"https://github.com/wrote/exists#readme","devDependencies":{"alamode":"1.9.0","documentary":"1.23.2","eslint-config-artdeco":"1.0.1","yarn-s":"1.1.0","zoroaster":"3.11.2"},"dependencies":{"makepromise":"3.0.3"},"licenseText":"MIT License\n\nCopyright (c) 2019 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/exists@1.0.2","dist":{"shasum":"c1594c9608a4312ea3114ec25c97ae27ecc660d2","size":2745,"noattachment":false,"key":"/@wrote/exists/-/@wrote/exists-1.0.2.tgz","tarball":"http://name.csiicloud.com:7001/@wrote/exists/download/@wrote/exists-1.0.2.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exists_1.0.2_1554227751960_0.664812857196809"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T19:18:14.773Z","publish_time":1554227752117,"_cnpm_publish_time":1554227752117},"1.0.1":{"name":"@wrote/exists","version":"1.0.1","description":"Check If The File Or Directory Exists, And Return Stats.","main":"build","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"yarn t test/spec test/mask","spec":"yarn t test/spec","mask":"yarn t test/mask","test-build":"ALAMODE_ENV=test-build yarn test","lint":"eslint .","doc":"NODE_DEBUG=doc doc documentary -o README.md","b":"alamode src -o build -s","d":"yarn-s d1","d1":"NODE_DEBUG=doc doc src/index.js -g","build":"yarn-s d b doc","rec":"NODE_DEBUG=appshot appshot -T 23 -a Terminal -y 150 -f","e":"node example","example/":"yarn e example/example.js"},"repository":{"type":"git","url":"git://github.com/wrote/exists.git"},"keywords":["exists","wrote"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/wrote/exists/issues"},"homepage":"https://github.com/wrote/exists#readme","devDependencies":{"alamode":"1.6.1","documentary":"1.20.1","eslint-config-artdeco":"1.0.1","yarn-s":"1.1.0","zoroaster":"3.6.6"},"dependencies":{"makepromise":"3.0.2"},"licenseText":"MIT License\n\nCopyright (c) 2019 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/exists@1.0.1","dist":{"shasum":"6c72c49abf02af9bee1e1977a2257421704a51fe","size":2637,"noattachment":false,"key":"/@wrote/exists/-/@wrote/exists-1.0.1.tgz","tarball":"http://name.csiicloud.com:7001/@wrote/exists/download/@wrote/exists-1.0.1.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exists_1.0.1_1548283874072_0.6186621996209078"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T19:18:13.121Z","publish_time":1548283874191,"_cnpm_publish_time":1548283874191},"1.0.0":{"name":"@wrote/exists","version":"1.0.0","description":"Check If The File Or Directory Exists, And Return Stats.","main":"build","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"yarn t test/spec test/mask","spec":"yarn t test/spec","mask":"yarn t test/mask","test-build":"ALAMODE_ENV=test-build yarn test","lint":"eslint .","doc":"NODE_DEBUG=doc doc documentary -o README.md","b":"alamode src -o build -s","d":"yarn-s d1","d1":"NODE_DEBUG=doc doc src/index.js -g","build":"yarn-s d b doc","rec":"NODE_DEBUG=appshot appshot -T 23 -a Terminal -y 150 -f","e":"node example","example/":"yarn e example/example.js"},"repository":{"type":"git","url":"git://github.com/wrote/exists.git"},"keywords":["exists","wrote"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/wrote/exists/issues"},"homepage":"https://github.com/wrote/exists#readme","devDependencies":{"alamode":"1.6.1","documentary":"1.20.1","eslint-config-artdeco":"1.0.1","yarn-s":"1.1.0","zoroaster":"3.6.6"},"dependencies":{"makepromise":"3.0.2"},"licenseText":"MIT License\n\nCopyright (c) 2019 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/exists@1.0.0","dist":{"shasum":"d2964bf05b461493808b1f25358d0a50cec98849","size":2584,"noattachment":false,"key":"/@wrote/exists/-/@wrote/exists-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/@wrote/exists/download/@wrote/exists-1.0.0.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exists_1.0.0_1548281984670_0.14439993804289752"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T19:18:11.482Z","publish_time":1548281984888,"_cnpm_publish_time":1548281984888}},"readme":"# @wrote/exists\n\n[![npm version](https://badge.fury.io/js/%40wrote%2Fexists.svg)](https://npmjs.org/package/@wrote/exists)\n\n`@wrote/exists` Checks If The File Or Directory Exists, And Return Stats.\n\n```sh\nyarn add -E @wrote/exists\n```\n\n## Table Of Contents\n\n- [Table Of Contents](#table-of-contents)\n- [API](#api)\n- [`async exists(path: string): boolean`](#async-existspath-string-boolean)\n- [Copyright](#copyright)\n\n<p align=\"center\"><a href=\"#table-of-contents\"><img src=\".documentary/section-breaks/0.svg?sanitize=true\"></a></p>\n\n## API\n\nThe package is available by importing its default function:\n\n```js\nimport exists from '@wrote/exists'\n```\n\n<p align=\"center\"><a href=\"#table-of-contents\"><img src=\".documentary/section-breaks/1.svg?sanitize=true\"></a></p>\n\n## `async exists(`<br/>&nbsp;&nbsp;`path: string,`<br/>`): boolean`\n\nReturns whether the path exists or not. If it exists, returns the `lstat` result, otherwise returns `null`.\n\n```js\n/* yarn example/ */\nimport exists from '@wrote/exists'\n\n(async () => {\n  const res = await exists('example')\n  const isDir = res.isDirectory()\n  console.log(\n    'example exists: %s, is dir: %s', !!res, isDir,\n  )\n  const res2 = await exists('hello')\n  console.log('hello exists: %s', res2)\n})()\n```\n```\nexample exists: true, is dir: true\nhello exists: null\n```\n\n<p align=\"center\"><a href=\"#table-of-contents\"><img src=\".documentary/section-breaks/2.svg?sanitize=true\"></a></p>\n\n## Copyright\n\n<table>\n  <tr>\n    <th>\n      <a href=\"https://artd.eco\">\n        <img src=\"https://raw.githubusercontent.com/wrote/wrote/master/images/artdeco.png\" 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 src=\"https://raw.githubusercontent.com/artdecoweb/www.technation.sucks/master/anim.gif\"\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\"><img src=\".documentary/section-breaks/-1.svg?sanitize=true\"></a></p>","_attachments":{},"homepage":"https://github.com/wrote/exists#readme","bugs":{"url":"https://github.com/wrote/exists/issues"},"license":"MIT"}