3.0.3 • Published 6 years ago

apr-constant v3.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

constant

Returns a promise that when called, then's with the values provided. Useful as the first function in a waterfall.

npm.io npm.io

Parameters

  • arguments ...any

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