Configure a path to response server statistics of Meteor applications in JSON.
meteor add szchenghuang:facts-page
import FactsPage from 'meteor/szchenghuang:facts-page';
Meteor.startup( () => {
if ( Meteor.isServer ) {
FactsPage.init({ path: '/path/to/page' });
}
});
facts-page
serves requests server statistics in JSON. Simply call FactsPage.init()
to set the optional path. It defaults to /facts
. Pass no argument if you are happy with the default path.
It depends on the facts
package from Meteor; server side only.
MIT. See LICENSE.md for details.