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.
Selectively mirror the npm registry inside your firewall. Filter packages based on security, licensing, code quality and more. Build awesome stuff faster. Try npm Enterprise for free…
how? learn more