npm install lie-use
var use = require('lie-use');
use(value or promise, function)
If the value is a promise, apply the function to the value it resolves into and return a promise for that, otherwise apply the function to the value and return the result.
how? learn more