{"version":3,"sources":["jsdelivr-header.js","/npm/forever-monitor-df2@3.0.5/lib/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACEA,MAAM,MAAQ,QAAQ,2BAChB,OAAS,QAAQ,4BAEvB,QAAQ,KAAO,OAAO,KACtB,QAAQ,aAAe,OAAO,aAC9B,QAAQ,QAAU,QAAQ,6BAA6B,QAKvD,QAAQ,QAAU,QAAQ,cAAc,QAQxC,QAAQ,MAAQ,SAAS,EAAQ,GAK/B,OAJK,EAAQ,MACX,EAAQ,IAAM,EAAQ,KAAO,MAAM,aAAa,GAAG,QAAQ,MAAO,MAG7D,IAAI,QAAQ,QAAQ,EAAQ,GAAS,OAC9C","file":"/npm/forever-monitor-df2@3.0.5/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/forever-monitor-df2@3.0.5/lib/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/*\r\n * index.js: Top-level include for the `forever-monitor` module.\r\n *\r\n * (C) 2010 Charlie Robbins & the Contributors\r\n * MIT LICENCE\r\n *\r\n */\r\n\r\nconst utils = require('./forever-monitor/utils')\r\nconst common = require('./forever-monitor/common');\r\n\r\nexports.kill = common.kill;\r\nexports.checkProcess = common.checkProcess;\r\nexports.Monitor = require('./forever-monitor/monitor').Monitor;\r\n\r\n//\r\n// Expose version through `pkginfo`\r\n//\r\nexports.version = require('../package').version;\r\n\r\n//\r\n// ### function start (script, options)\r\n// #### @script {string} Location of the script to run.\r\n// #### @options {Object} Configuration for forever instance.\r\n// Starts a script with forever\r\n//\r\nexports.start = function(script, options) {\r\n  if (!options.uid) {\r\n    options.uid = options.uid || utils.randomString(4).replace(/^\\-/, '_');\r\n  }\r\n\r\n  return new exports.Monitor(script, options).start();\r\n};\r\n"]}