{"_id":"enoent","_rev":"1-0daa13131a0f7aa841c97849f3d32da5","name":"enoent","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"enoent","version":"1.0.0","description":"A simple package which replaces fs.exists","main":"main.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/greencoder001/enoent.git"},"keywords":["fs","exists","enoent"],"author":{"name":"Green_Lab"},"license":"MIT","bugs":{"url":"https://github.com/greencoder001/enoent/issues"},"homepage":"https://github.com/greencoder001/enoent#readme","gitHead":"9ca461e00c06a1613c91608c1459af7084daffa6","_id":"enoent@1.0.0","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-vo95iDpzJylLGymmG5KAsPsjInYZ2XsUY5MC3LeGonX6ycTKlmGmjad6qtIYm+jPH2wnzsonbgF0jQ5Yw1A/zw==","shasum":"8ab9af23c9cece626143f082a87bff45f47311c5","tarball":"https://registry.npmjs.org/enoent/-/enoent-1.0.0.tgz","fileCount":7,"unpackedSize":3964,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiNe+mACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrKiw/8DDpZqN0RryM0edb4tYdLE6MigiCZC7H2f0MGpgHufGCjyFc3\r\nAZ85Uil5YRrM1rwQTypr0k9Z32ioicWCXwMZclopXu3+yEuolSNFoKVKbz8O\r\nUwug4ZBsDM7t04k7wlAYdtNy07Ii2q8/rRcXygzUgpIgD+ssjU5IwA5S/ORu\r\nd2khz0foC9AYpGqJDyvt5Tcjm76LyNoXnLoEpRRznG9jIBb4OrpXBSXwclLz\r\nOZgOcSOHYBIgasbjAp+5cuj8UrsMXUHw/HDF0g+F4p7sSebX4YrTGu72bQrv\r\nS+l1CWb3q5iQG3ih18llu/7Cn4PdbC+vWlOMK9uTjQjIbJu+PF/oJNePt5uH\r\nBfHFDHgEnduChMaCkreQwSvAAspPlIce8yiFrgXLGzYqnPlHtZSbbno8Hywo\r\nIYM89oo/1k92I+ngIe7ZREeUkMnl/2FS7wp0Ikif8a4rzE0wExT16GyWN7dL\r\nH3czqXssW1rIXAI4Y0DIQUl2yyu6NZOkGX+JabDbQDWrZUPujKnqQSFgWew7\r\nwWsQ0yPobefczHvsgrhcl4gqH8R07tXl9zQKBFp/+9c9wZJlYPkYWfa6t+q0\r\nD6uTAUMwAOCmYp1uTZ4eQTmpUbdXLTd0FZ4+utUyxPMsixu874InooXhEVAG\r\nyjL+3zd5K0IaiPO8oT6edVYiz2Cdu52biUI=\r\n=ZstZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDd69o5xrT+rfAJm8X+YxRQPPCR7/vsjNwqkk4G7mKPkAiBPHjI7iYTVtWcOBS9dEzO5J+YEViC5x7CI1jReoPjfmQ=="}]},"_npmUser":{"name":"greencoder001","email":"greencoder001@outlook.com"},"directories":{},"maintainers":[{"name":"greencoder001","email":"greencoder001@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/enoent_1.0.0_1647701926557_0.946451851117081"},"_hasShrinkwrap":false}},"time":{"created":"2022-03-19T14:58:46.557Z","1.0.0":"2022-03-19T14:58:46.698Z","modified":"2022-05-01T08:27:59.223Z"},"maintainers":[{"name":"greencoder001","email":"greencoder001@outlook.com"}],"description":"A simple package which replaces fs.exists","homepage":"https://github.com/greencoder001/enoent#readme","keywords":["fs","exists","enoent"],"repository":{"type":"git","url":"git+https://github.com/greencoder001/enoent.git"},"author":{"name":"Green_Lab"},"bugs":{"url":"https://github.com/greencoder001/enoent/issues"},"license":"MIT","readme":"# enoent\n Simple Module which replaces fs.exists\n\n# Import\n```js\nconst { exists, existsAsync } = require('enoent')\n```\n\n# Usage\n```js\n// Callback\nexists('RANDOMFILE.txt', (result) => {\n    console.log('RANDOMFILE.txt', result)\n})\n\n// Promisified\nconst result = await existsAsync('RANDOMFILE.txt')\nconsole.log('RANDOMFILE.txt', result)\n```\n\n# Replacing the fs function\nPut this where you normally would import fs\n```js\nconst fs = require('fs')\nfs.exists = require('enoent').exists\n```\n\nAnd you can use\n```js\nfs.exists('myfile.txt', (result) => {\n    console.log(result)\n})\n```","readmeFilename":"README.md"}