npm install lie-cast
var cast = require('lie-cast');
promise.cast(value or promise)
If it's a promise, returns it, if it's a value, returns a promise that resolves to it.
It’s never been easier to manage developer teams with varying permissions and multiple projects. Learn more about Private Packages and Organizations…
how? learn more