Nanobots Protecting Microbots
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

haraka-constants

1.0.5 • Public • Published

Build Status Coverage Status Code Climate Greenkeeper badge 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.

var constants = require('haraka-constants');
var myObj = {};
constants.import(myObj);
 
// myObj.cont === 900

translate

Converts a numeric constant to it's string representation.

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

Keywords

none

install

npm i haraka-constants

Downloadsweekly downloads

447

version

1.0.5

license

MIT

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar