1
0

run npm install to generate a package lock

This commit is contained in:
sashinexists
2024-12-07 13:18:31 +11:00
parent e7d08a91b5
commit 23437d228e
2501 changed files with 290663 additions and 0 deletions

30
node_modules/promise-make-naked/readme.md generated vendored Normal file
View File

@@ -0,0 +1,30 @@
# Promise Make Naked
A simple function that makes a promise that can be resolved, rejected or introspected from the outside.
## Install
```sh
npm install --save promise-make-naked
```
## Usage
```ts
import makeNakedPromise from 'promise-make-naked';
// Let's create a naked Promise
const {promise, resolve, reject, isPending, isResolved, isRejected} = makeNakedPromise ();
resolve ( 123 ); // Resolve the promise with the provided value
reject ( new Error () ); // Reject the promise with the provided reason
isPending (); // Check if the promise is still pending
isResolved (); // Check if the promise got resolved
isRejected (); // Check if the promise got rejected
```
## License
MIT © Fabio Spampinato