Nocturnal Pajama Mutants
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    hapi-deployment-infopublic

    Hapi deployment-info

    Build Status NPM version Dependencies

    Shared code for the deployment-info endpoint.

    Returns deployment-info (specified in config).

    Installation:

    npm install --save hapi-deployment-info

    Usage:

    var server = hapi.createServer();
    
    server.pack.require("hapi-deployment-info",
      // data to return
      {
        lastCommitSha: "df45100b52f68d6b8152a10e5200c5853b5202ed",
        lastCommitTimestamp: "2014-07-17T08:42:00Z"
      },
      function (err){
        if(err){
          throw err;
        }
      }
    );
    

    Routes:

    • /deployment-info // returns the deployment info in the config
    • /server // gives the server hostname

    Keywords

    none

    install

    npm i hapi-deployment-info

    Downloadsweekly downloads

    1

    version

    1.0.0

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar
    • avatar
    • avatar