{"name":"promise-make-naked","version":"3.0.1","keywords":["promise","naked","resolvers"],"_id":"promise-make-naked@3.0.1","homepage":"https://github.com/fabiospampinato/promise-make-naked#readme","bugs":{"url":"https://github.com/fabiospampinato/promise-make-naked/issues"},"dist":{"shasum":"179c880e384c19aab5a10c127fbd46b5e6f496cb","tarball":"http://registry-npm.ywwl.com/promise-make-naked/download/promise-make-naked-3.0.1.tgz","fileCount":9,"integrity":"sha512-X0wstn6m6Gy3HdldSh+1vey3NMAv8feNMYWCBg/upWO2nxoH9B/cFXYkSxK2JhwCN9fyamyzNNuDEaJG7LesPg==","signatures":[{"sig":"MEUCIQD0bl9S0sq9KXTJYnnWjwHn6G7agFxtDfiHU77UOI39owIgdvZ3Um2+oq7B205wHLsNabkLZluhNbtEMAYIV37gZvo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3902,"size":1955,"noattachment":false,"key":"/promise-make-naked/-/promise-make-naked-3.0.1.tgz"},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":"./dist/index.js","gitHead":"9a848cd8377a1aa6b428eb95bf5558d5e8242c70","scripts":{"test":"tsex test","clean":"tsex clean","compile":"tsex compile","test:watch":"tsex test --watch","compile:watch":"tsex compile --watch","prepublishOnly":"tsex prepare"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"repository":{"url":"git+https://github.com/fabiospampinato/promise-make-naked.git","type":"git"},"_npmVersion":"10.2.3","description":"A simple function that makes a promise that can be resolved, rejected or introspected from the outside.","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"fava":"^0.3.2","tsex":"^4.0.2","typescript":"^5.5.2"},"_npmOperationalInternal":{"tmp":"tmp/promise-make-naked_3.0.1_1736631274218_0.26198712278372294","host":"s3://npm-registry-packages-npm-production"},"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":1736631274420,"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_cnpm_publish_time":1736631274420,"dist-tags":{"latest":"3.0.2"}}