????JFIF??x?x????'
| Server IP : 172.67.174.47  /  Your IP : 216.73.216.113 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /././opt/alt/alt-nodejs11/root/lib/node_modules/npm/node_modules.bundled/worker-farm/lib/ | 
| Upload File : | 
'use strict'
const Farm = require('./farm')
let farms = [] // keep record of farms so we can end() them if required
function farm (options, path, methods) {
  if (typeof options == 'string') {
    methods = path
    path = options
    options = {}
  }
  let f   = new Farm(options, path)
    , api = f.setup(methods)
  farms.push({ farm: f, api: api })
  // return the public API
  return api
}
function end (api, callback) {
  for (let i = 0; i < farms.length; i++)
    if (farms[i] && farms[i].api === api)
      return farms[i].farm.end(callback)
  process.nextTick(callback.bind(null, 'Worker farm not found!'))
}
module.exports     = farm
module.exports.end = end