Skip to content
This repository was archived by the owner on Feb 13, 2021. It is now read-only.
This repository was archived by the owner on Feb 13, 2021. It is now read-only.

Allow app to export data to this page #2

Description

@davglass

For phpinfo php modules can export data to be shown in this page.

We should look into the best way that an app or other modules can export data to be displayed here.

Examples:

  • database connections
  • disk status
  • network status
  • etc

My initial thought on this would be:

//node-info

process.on('node-info', function(data) {
    //store the data
    //needs to be a defined Object
    //maybe add a db cache here (memcache, etc)
});

//the app
process.emit('node-info', function() {
    return {
         {
             //my data 
         }
    };
});

Just a thought..

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions