haraka-constants

1.0.6 • Public • Published

Build Status Coverage Status Code Climate

NPM

haraka-constants

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

Exported Functions

import

Populates an object with the constants.

const constants = require('haraka-constants');
const myObj = {};
constants.import(myObj);

// myObj.cont === 900

translate

Converts a numeric constant to its string representation.

const constants = require('haraka-constants');
// 'CONT' === constants.translate(900);

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i haraka-constants

    Weekly Downloads

    2,334

    Version

    1.0.6

    License

    MIT

    Unpacked Size

    9.26 kB

    Total Files

    12

    Last publish

    Collaborators

    • msimerson
    • baudehlo
    • smfreegard
    • tnpi