Skip to content

Patches the Deployd dpd-event module to expose the require function and useful data

Notifications You must be signed in to change notification settings

mcantelon/dpd-event-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Patches the Deployd dpd-event module to expose the require function and useful data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published