npm.io
1.0.0 • Published 6 years ago

promise-hash-method

Licence
ISC
Version
1.0.0
Deps
0
Size
1 kB
Vulns
0
Weekly
0

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);