apr-constant
3.0.3 • Public • Published
constant
Returns a promise that when called, then's with the values provided. Useful as the first function in a waterfall
.
Parameters
Examples
import asyncify from 'apr-asyncify';
import waterfall from 'apr-waterfall';
import constant from 'apr-constant';
const pkg = await waterfall([
constant('{"name": "apr"}'),
asyncify(JSON.parse)
]);
Returns Promise
Versions
Version | Downloads (Last 7 Days) | Tag |
---|
3.0.3 | 2 | latest |
Version History
Package Sidebar
Install
Weekly Downloads