1.0.0 • Published 4 years ago

lying v1.0.0

Weekly downloads
83
License
MIT
Repository
-
Last release
4 years ago

lying

Use Promise.all and Promise.settled as typed objects

Example

import lying from "lying";

const promises = await All({
	  octocat: fetch("http://api.github.com/users/octocat"),
	  octocatJson: fetch("http://api.github.com/users/octocat").then(e => e.json()),
});
console.log(promises.octocatJson); // show json user
console.log(promises.octocat.status); // print status code (number)