haraka-constants
/
1.0.7
haraka-constants 1.0.7
Install from the command line:
Learn more about npm packages
$ npm install @haraka/haraka-constants@1.0.7
Install via package.json:
"@haraka/haraka-constants": "1.0.7"
About this version
Haraka constants. Exports the following constants used throughout Haraka:
CONT: 900,
STOP: 901,
DENY: 902,
DENYSOFT: 903,
DENYDISCONNECT: 904,
DISCONNECT: 905,
OK: 906,
NEXT_HOOK: 907,
DELAY: 908,
DENYSOFTDISCONNECT: 909
Populates an object with the constants.
const constants = require('haraka-constants')
const myObj = {}
constants.import(myObj)
// myObj.cont === 900
Converts a numeric constant to its string representation.
const constants = require('haraka-constants')
// 'CONT' === constants.translate(900);
Details
- haraka-constants
- haraka
- 7 months ago
- MIT
- 1 dependencies
Assets
- haraka-constants-1.0.7.tgz
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0