{"name":"promise-make-naked","repository":{"type":"git","url":"git+https://github.com/fabiospampinato/promise-make-naked.git"},"description":"A simple function that makes a promise that can be resolved, rejected or introspected from the outside.","version":"3.0.0","type":"module","main":"dist/index.js","exports":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","test":"tsex test","test:watch":"tsex test --watch","prepublishOnly":"tsex prepare"},"keywords":["promise","naked"],"devDependencies":{"fava":"^0.3.2","tsex":"^4.0.2","typescript":"^5.5.2"},"_id":"promise-make-naked@3.0.0","gitHead":"900b03373b33de8c9ac83cb2e4488233cc54c918","bugs":{"url":"https://github.com/fabiospampinato/promise-make-naked/issues"},"homepage":"https://github.com/fabiospampinato/promise-make-naked#readme","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-h71wwAMB2udFnlPmcxQMqKl6CckNLVKdk/ROtFivE6/VmW+rQKV0DWlGJ6VphRIoq22Tkonvdi3F+jlm5XDlow==","shasum":"713f55425975b9a0197d1aa297fe6288ec94d987","tarball":"http://registry-npm.ywwl.com/promise-make-naked/download/promise-make-naked-3.0.0.tgz","fileCount":15,"unpackedSize":7490,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKrTJYenQ2x0XCaT5b0webmtI93a8IPq8cRhxGoaCNzQIhAOKqXWL2ikZmmzJA0VQnz/s2GoXh8xIwOB+a49Wb6l6m"}],"size":2727,"noattachment":false,"key":"/promise-make-naked/-/promise-make-naked-3.0.0.tgz"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/promise-make-naked_3.0.0_1719761407754_0.18821956698529485"},"_hasShrinkwrap":false,"readme":"# Promise Make Naked\n\nA simple function that makes a promise that can be resolved, rejected or introspected from the outside.\n\n## Install\n\n```sh\nnpm install --save promise-make-naked\n```\n\n## Usage\n\n```ts\nimport makeNakedPromise from 'promise-make-naked';\n\n// Let's create a naked Promise\n\nconst {promise, resolve, reject, isPending, isResolved, isRejected} = makeNakedPromise ();\n\nresolve ( 123 ); // Resolve the promise with the provided value\nreject ( new Error () ); // Reject the promise with the provided reason\n\nisPending (); // Check if the promise is still pending\nisResolved (); // Check if the promise got resolved\nisRejected (); // Check if the promise got rejected\n```\n\n## License\n\nMIT © Fabio Spampinato\n","publish_time":1719761407884,"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_cnpm_publish_time":1719761407884,"dist-tags":{"latest":"3.0.2"}}