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

  • 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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.0.32latest

Version History

VersionDownloads (Last 7 Days)Published
3.0.32
3.0.27
3.0.12
3.0.02
1.0.52
1.0.41
1.0.31
1.0.21
1.0.12
1.0.02

Package Sidebar

Install

npm i apr-constant

Weekly Downloads

22

Version

3.0.3

License

MIT

Last publish

Collaborators

  • ramitos