{"id":18368215,"url":"https://github.com/thinkjs/think-pm2","last_synced_at":"2025-04-10T19:37:18.716Z","repository":{"id":65412380,"uuid":"84386361","full_name":"thinkjs/think-pm2","owner":"thinkjs","description":"PM2 detect for ThinkJS 3.x","archived":false,"fork":false,"pushed_at":"2017-05-05T03:53:11.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-16T11:36:55.761Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thinkjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-09T02:01:39.000Z","updated_at":"2017-03-10T01:09:18.000Z","dependencies_parsed_at":"2023-01-22T07:55:24.814Z","dependency_job_id":null,"html_url":"https://github.com/thinkjs/think-pm2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkjs%2Fthink-pm2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkjs%2Fthink-pm2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkjs%2Fthink-pm2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkjs%2Fthink-pm2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinkjs","download_url":"https://codeload.github.com/thinkjs/think-pm2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248281415,"owners_count":21077423,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T23:25:07.795Z","updated_at":"2025-04-10T19:37:18.676Z","avatar_url":"https://github.com/thinkjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# think-pm2\n\n[![npm](https://img.shields.io/npm/v/think-pm2.svg?colorB=brightgreen\u0026style=flat-square)](https://www.npmjs.com/package/think-pm2)\n[![devDependency Status](https://david-dm.org/thinkjs/think-logic.svg)](https://david-dm.org/thinkjs/think-logic)\n\n\nPM2 detect for ThinkJS\n\n## Install\n\n```\nnpm install think-pm2\n```\n\n## How to use\n\n```js\nconst pm2 = require('think-pm2');\n//use pm2 to manage node process\nconst inPM2 = pm2.inPM2; \n//set \"exec_mode\" = \"cluster\" in pm2 config\nconst isClusterMode = pm2.isClusterMode; \n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkjs%2Fthink-pm2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinkjs%2Fthink-pm2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkjs%2Fthink-pm2/lists"}