{"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.","license":"MIT","version":"3.0.2","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","resolvers"],"devDependencies":{"fava":"^0.3.4","tsex":"^4.0.2","typescript":"^5.7.3"},"_id":"promise-make-naked@3.0.2","gitHead":"0e08237bd03dda8311a1169fe5efd4c52f767a9d","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-B+b+kQ1YrYS7zO7P7bQcoqqMUizP06BOyNSBEnB5VJKDSWo8fsVuDkfSmwdjF0JsRtaNh83so5MMFJ95soH5jg==","shasum":"345e73c869604b5adc32277b5034d14924b61290","tarball":"http://registry-npm.ywwl.com/promise-make-naked/download/promise-make-naked-3.0.2.tgz","fileCount":9,"unpackedSize":3922,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICVq9AqQOAfXC8rXbmpvDJA7d+ugxZMhHTR6NZX0mU7dAiEAxDCfqh3pAJ85yWknkTVTNZg2F1NfBTOryDeO3JBqVOg="}],"size":1963,"noattachment":false,"key":"/promise-make-naked/-/promise-make-naked-3.0.2.tgz"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/promise-make-naked_3.0.2_1736631665847_0.20013248359705793"},"_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":1736631666026,"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_cnpm_publish_time":1736631666026,"dist-tags":{"latest":"3.0.2"}}