UNPKG

pm2-prom-module

Version:

PM2 module to help collect applications statistic and send it to Prometheus server

8 lines (7 loc) 223 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toUndescore = void 0; function toUndescore(str) { return str.toLowerCase().replace(/\s+/g, '_'); } exports.toUndescore = toUndescore;