dpd-event-extension

0.0.3 • Public • Published

dpd-event-extension

This module patches the Deployd dpd-event module to allow those writing endpoint logic to access the require function, the process object, and Deployd context data.

The require function can be used as it normally is in Node.

The process object can be used to import modules that aren't in the node_modules directory. For example:

var path = require('path'),
    helpers = require(
      path.join(process().cwd(), 'resources/aips/lib/helpers.js')
    );

The context data, returned by calling the context function, can be used to inspect Deployd state data.

The code is a modified version of a Gist by GitHub user Fedia:

https://gist.github.com/Fedia/4089364

/dpd-event-extension/

    Package Sidebar

    Install

    npm i dpd-event-extension

    Weekly Downloads

    3

    Version

    0.0.3

    License

    none

    Last publish

    Collaborators

    • mcantelon