0.2.2 • Published 7 years ago

fulfiller v0.2.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

fulfiller

Build Status David npm

$ npm install fulfiller

Utility that makes a function return a Promise. If no function is provided it always returns a resolved Promise.

import fulfiller from 'fulfiller';

(async () => {
  const fn = (msg: string) => msg;
  const fnPromised = fulfiller(fn);
  const result = await fnPromised('hello');
  console.log(result); // 'hello'
})();
0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago