1.0.0 • Published 4 years ago

promise-hash-method v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

PromiseHash

Installation

npm install promise-hash-method

###Usage

const promiseHash = require('promise-hash-method');
// -- OR --
import promiseHash from 'promise-hash-method';

const dummyPromise = () => new Promise(resolve => setTimeout(() => resolve('hi'), 2500));

const resolved = await promiseHash({
    promiseOne: dummyPromise(),
});

console.warn(resolved.promiseOne);