one-cluster
Package with identify the principal process id in a clustering application or work without cluster normally.
Installation
npm install one-cluster
Use Function
const onecluster = 'Return True if application not have cluster or if is the principal(id 1) process in a cluster application' 'You can select the Cluster Process ID to identify' 'The Major Cluster Process is id 1, for each process the id increment is 1.''If you have 3 process, the ids are 1 - 2 - 3'
Use With Cronjob Example
npm install cron
const onecluster = var CronJob = CronJob;var job = '* * * * * *' { if console; } null true 'America/Los_Angeles';jobstart;