From 4ad47a7b4e6532002570881577aa289c259f5ed9 Mon Sep 17 00:00:00 2001 From: Abhi3975 Date: Tue, 31 Mar 2026 02:26:31 +0530 Subject: [PATCH] docs: fix various typos in source and documentation --- CONTRIBUTING.md | 2 +- README.md | 16 ++++++++-------- constants.js | 2 +- examples/import/index.js | 2 +- examples/misc-examples/http.js | 2 +- examples/module-extra-meta/index.js | 2 +- examples/module-test/app.js | 2 +- examples/send-msg/pm2-msg.js | 2 +- examples/sourcemap-auto-resolve/API.js | 4 ++-- examples/sourcemap-auto-resolve/API.min.js | 2 +- examples/using-pm2-and-transpilers/node.d.ts | 10 +++++----- lib/API.js | 6 +++--- lib/API/Extra.js | 4 ++-- lib/API/Modules/LOCAL.js | 4 ++-- lib/API/Modules/NPM.js | 2 +- lib/API/Monit.js | 2 +- lib/API/Startup.js | 4 ++-- lib/API/UX/pm2-ls.js | 2 +- lib/API/Version.js | 6 +++--- lib/API/pm2-plus/PM2IO.js | 6 +++--- lib/API/pm2-plus/auth-strategies/CliAuth.js | 6 +++--- lib/Client.js | 2 +- lib/Common.js | 2 +- lib/Daemon.js | 2 +- lib/God.js | 8 ++++---- lib/God/ActionMethods.js | 2 +- lib/God/Methods.js | 4 ++-- lib/ProcessContainer.js | 2 +- lib/ProcessContainerBun.js | 2 +- lib/Utility.js | 2 +- lib/Watcher.js | 2 +- lib/binaries/CLI.js | 4 ++-- lib/binaries/DevCLI.js | 2 +- lib/binaries/Runtime4Docker.js | 8 ++++---- lib/templates/init-scripts/smf.tpl | 2 +- lib/templates/sample-apps/http-server/README.md | 2 +- .../pm2-plus-metrics-actions/README.md | 2 +- lib/tools/json5.js | 2 +- packager/setup.deb.sh | 4 ++-- packager/setup.rpm.sh | 4 ++-- paths.js | 2 +- test/fixtures/esmodules/mjs/index.mjs | 2 +- test/fixtures/esmodules/packagemodule/index.js | 2 +- .../interface/process_exception_with_logs.js | 2 +- test/fixtures/probes.js | 2 +- test/programmatic/api.mocha.js | 4 ++-- test/programmatic/client.mocha.js | 4 ++-- test/programmatic/cluster.mocha.js | 2 +- test/programmatic/conf_update.mocha.js | 2 +- test/programmatic/custom_action.mocha.js | 4 ++-- test/programmatic/filter_env.mocha.js | 2 +- test/programmatic/module_tar.mocha.js | 2 +- test/programmatic/modules.mocha.js | 2 +- test/programmatic/resurect_state.mocha.js | 6 +++--- types/index.d.ts | 4 ++-- 55 files changed, 94 insertions(+), 94 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b36e630a92..49f2eb1ce6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -30,7 +30,7 @@ $ pm2 ls ├── bin // pm2, pmd, pm2-dev, pm2-docker are there ├── examples // examples files ├── lib // source files -├── pres // presentation files +├── press // presentation files ├── test // test files └── types // TypeScript definition files ``` diff --git a/README.md b/README.md index 83dd304452..17878f6234 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@

-![https://raw.githubusercontent.com/Unitech/pm2/master/pres/pm2-logo-2.png](https://raw.githubusercontent.com/Unitech/pm2/master/pres/pm2-logo-2.png) +![https://raw.githubusercontent.com/Unitech/pm2/master/press/pm2-logo-2.png](https://raw.githubusercontent.com/Unitech/pm2/master/press/pm2-logo-2.png) P(rocess) M(anager) 2
Runtime Edition @@ -74,7 +74,7 @@ Your app is now daemonized, monitored and kept alive forever. Once applications are started you can manage them easily: -![Process listing](https://github.com/Unitech/pm2/raw/master/pres/pm2-ls-v2.png) +![Process listing](https://github.com/Unitech/pm2/raw/master/press/pm2-ls-v2.png) To list all running applications: @@ -108,7 +108,7 @@ $ pm2 monit The Cluster mode is a special mode when starting a Node.js application, it starts multiple processes and load-balance HTTP/TCP/UDP queries between them. This increase overall performance (by a factor of x10 on 16 cores machines) and reliability (faster socket re-balancing in case of unhandled errors). -![Framework supported](https://raw.githubusercontent.com/Unitech/PM2/master/pres/cluster.png) +![Framework supported](https://raw.githubusercontent.com/Unitech/PM2/master/press/cluster.png) Starting a Node.js application in cluster mode that will leverage all CPUs available: @@ -126,7 +126,7 @@ Hot Reload allows to update an application without any downtime: $ pm2 reload all ``` -[More informations about how PM2 make clustering easy](https://pm2.keymetrics.io/docs/usage/cluster-mode/) +[More information about how PM2 make clustering easy](https://pm2.keymetrics.io/docs/usage/cluster-mode/) ### Container Support @@ -151,11 +151,11 @@ $ pm2 set pm2:sysmonit true $ pm2 update ``` -![Framework supported](https://raw.githubusercontent.com/Unitech/PM2/master/pres/vitals.png) +![Framework supported](https://raw.githubusercontent.com/Unitech/PM2/master/press/vitals.png) ### Terminal Based Monitoring -![Monit](https://github.com/Unitech/pm2/raw/master/pres/pm2-monit.png) +![Monit](https://github.com/Unitech/pm2/raw/master/press/pm2-monit.png) Monitor all processes launched straight from the command line: @@ -171,14 +171,14 @@ To consult logs just type the command: $ pm2 logs ``` -Standard, Raw, JSON and formated output are available. +Standard, Raw, JSON and formatted output are available. Examples: ```bash $ pm2 logs APP-NAME # Display APP-NAME logs $ pm2 logs --json # JSON output -$ pm2 logs --format # Formated output +$ pm2 logs --format # Formatted output $ pm2 flush # Flush all logs $ pm2 reloadLogs # Reload all logs diff --git a/constants.js b/constants.js index 1483b6e63c..97bbc29283 100644 --- a/constants.js +++ b/constants.js @@ -68,7 +68,7 @@ var csts = { PM2_BANNER : '../lib/motd', - PM2_UPDATE : '../lib/API/pm2-plus/pres/motd.update', + PM2_UPDATE : '../lib/API/pm2-plus/press/motd.update', DEFAULT_MODULE_JSON : 'package.json', MODULE_BASEFOLDER: 'module', diff --git a/examples/import/index.js b/examples/import/index.js index d0e5cee712..fe78799923 100644 --- a/examples/import/index.js +++ b/examples/import/index.js @@ -4,4 +4,4 @@ const r = 3; console.log(`Circle with radius ${r} has area: ${area(r)}; - circunference: ${circumference(r)}`); + circumference: ${circumference(r)}`); diff --git a/examples/misc-examples/http.js b/examples/misc-examples/http.js index b71ef13ea6..1152bdeb6e 100644 --- a/examples/misc-examples/http.js +++ b/examples/misc-examples/http.js @@ -25,7 +25,7 @@ var val = Probe.metric({ }, /** * Here we set a default value threshold, to receive a notification - * These options can be overriden via Keymetrics or via pm2 + * These options can be overridden via Keymetrics or via pm2 * More: http://bit.ly/1O02aap */ alert : { diff --git a/examples/module-extra-meta/index.js b/examples/module-extra-meta/index.js index c56ae97e86..bc141562e8 100644 --- a/examples/module-extra-meta/index.js +++ b/examples/module-extra-meta/index.js @@ -6,7 +6,7 @@ var pmx = require('pmx'); */ pmx.configureModule({ human_info : [ - [ 'Description', 'Gridcontrol is now running, tasdkkals dk als dkl askdl\nasd lsdakl kdsald asdsd\nAnd hthis like that and bla blab\nYESY!' ], + [ 'Description', 'Gridcontrol is now running, tasdkkals dk also dkl askdl\nasd lsdakl kdsald asdsd\nAnd hthis like that and bla blab\nYESY!' ], [ 'Port', 8000], [ 'Grid name', 'Sisi la grid'] ] diff --git a/examples/module-test/app.js b/examples/module-test/app.js index cf6f4c1511..4329b301d9 100644 --- a/examples/module-test/app.js +++ b/examples/module-test/app.js @@ -95,7 +95,7 @@ pmx.initModule({ }, /** * Here we set a default value threshold, to receive a notification - * These options can be overriden via Keymetrics or via pm2 + * These options can be overridden via Keymetrics or via pm2 * More: http://bit.ly/1O02aap */ alert : { diff --git a/examples/send-msg/pm2-msg.js b/examples/send-msg/pm2-msg.js index 9df5fdb7b8..67ee862f1f 100644 --- a/examples/send-msg/pm2-msg.js +++ b/examples/send-msg/pm2-msg.js @@ -5,7 +5,7 @@ console.log(pm2) pm2.connect(function() { pm2.sendDataToProcessId({ - // id of procces from "pm2 list" command or from pm2.list(errback) method + // id of process from "pm2 list" command or from pm2.list(errback) method id : '1', // process:msg will be send as 'message' on target process diff --git a/examples/sourcemap-auto-resolve/API.js b/examples/sourcemap-auto-resolve/API.js index fbc861190c..4da4694d72 100644 --- a/examples/sourcemap-auto-resolve/API.js +++ b/examples/sourcemap-auto-resolve/API.js @@ -158,11 +158,11 @@ API.prototype.connect = function(noDaemon, cb) { } /** - * Usefull when custom PM2 created with independent flag set to true + * Useful when custom PM2 created with independent flag set to true * This will cleanup the newly created instance * by removing folder, killing PM2 and so on * - * @param {Function} cb callback once cleanup is successfull + * @param {Function} cb callback once cleanup is successful */ API.prototype.destroy = function(cb) { var exec = require('shelljs').exec; diff --git a/examples/sourcemap-auto-resolve/API.min.js b/examples/sourcemap-auto-resolve/API.min.js index a97a98e276..d316c32e07 100644 --- a/examples/sourcemap-auto-resolve/API.min.js +++ b/examples/sourcemap-auto-resolve/API.min.js @@ -1,2 +1,2 @@ -var gl_retry,commander=require("commander"),fs=require("fs"),path=require("path"),async=require("async"),debug=require("debug")("pm2:cli"),util=require("util"),chalk=require("chalk"),fclone=require("fclone"),IMMUTABLE_MSG=chalk.bold.blue("Use --update-env to update environment variables"),API=module.exports=function(e){e||(e={});var n=this;if(this.daemon_mode=void 0===e.daemon_mode||e.daemon_mode,this.pm2_home=conf.PM2_ROOT_PATH,this.public_key=process.env.KEYMETRICS_SECRET||e.public_key||null,this.secret_key=process.env.KEYMETRICS_PUBLIC||e.secret_key||null,this.machine_name=process.env.INSTANCE_NAME||e.machine_name||null,this.cwd=process.cwd(),e.cwd&&(this.cwd=path.resolve(e.cwd)),e.pm2_home&&1==e.independent)throw new Error("You cannot set a pm2_home and independent instance in same time");if(e.pm2_home)this.pm2_home=e.pm2_home,conf=util._extend(conf,path_structure(this.pm2_home));else if(1==e.independent&&!1===conf.IS_WINDOWS){var t=require("crypto").randomBytes(8).toString("hex");this.pm2_home=path.join("/tmp",t),void 0===e.daemon_mode&&(this.daemon_mode=!1),conf=util._extend(conf,path_structure(this.pm2_home))}this._conf=conf,conf.IS_WINDOWS&&process.stdout._handle&&process.stdout._handle.setBlocking&&process.stdout._handle.setBlocking(!0),this.Client=new Client({pm2_home:n.pm2_home,conf:this._conf,secret_key:this.secret_key,public_key:this.public_key,daemon_mode:this.daemon_mode,machine_name:this.machine_name}),this.gl_interact_infos=null,this.gl_is_km_linked=!1;try{var o=fs.readFileSync(conf.INTERACTOR_PID_PATH);o=parseInt(o.toString().trim()),process.kill(o,0),n.gl_is_km_linked=!0}catch(e){n.gl_is_km_linked=!1}this.secret_key&&"local_test"==process.env.NODE_ENV&&(n.gl_is_km_linked=!0),KMDaemon.getInteractInfo(this._conf,function(e,t){n.gl_interact_infos=t})};throw API.prototype.connect=function(e,n){var t=this;this.start_timer=new Date,void 0===n?(n=e,e=!1):!0===e&&(this.Client.daemon_mode=!1,this.daemon_mode=!1),this.Client.start(function(e,o){return e?n(e):0==o.new_pm2_instance&&!0===t.daemon_mode?n(e,o):void Modularizer.launchAll(t,function(t){return n(e,o)})})},API.prototype.destroy=function(e){var n=require("shelljs").exec,t=this;debug("Killing and deleting current deamon"),this.killDaemon(function(){var o="rm -rf "+t.pm2_home,i=path.join(t.pm2_home,"module_conf.json");path.join(t.pm2_home,"pm2.pid");return t.pm2_home.indexOf(".pm2")>-1?e(new Error("Destroy is not a allowed method on .pm2")):fs.accessSync?(fs.access(i,fs.R_OK,function(i){if(i)return e(i);debug("Deleting temporary folder %s",t.pm2_home),n(o,e)}),!1):void fs.exists(i,function(i){return i&&(debug("Deleting temporary folder %s",t.pm2_home),n(o,e)),e(null)})})},API.prototype.disconnect=API.prototype.close=function(e){var n=this;e||(e=function(){}),this.Client.close(function(t,o){return debug("The session lasted %ds",(new Date-n.start_timer)/1e3),e(t,o)})},API.prototype.launchModules=function(e){Modularizer.launchAll(this,e)},new Error("muhahahaha"); +var gl_retry,commander=require("commander"),fs=require("fs"),path=require("path"),async=require("async"),debug=require("debug")("pm2:cli"),util=require("util"),chalk=require("chalk"),fclone=require("fclone"),IMMUTABLE_MSG=chalk.bold.blue("Use --update-env to update environment variables"),API=module.exports=function(e){e||(e={});var n=this;if(this.daemon_mode=void 0===e.daemon_mode||e.daemon_mode,this.pm2_home=conf.PM2_ROOT_PATH,this.public_key=process.env.KEYMETRICS_SECRET||e.public_key||null,this.secret_key=process.env.KEYMETRICS_PUBLIC||e.secret_key||null,this.machine_name=process.env.INSTANCE_NAME||e.machine_name||null,this.cwd=process.cwd(),e.cwd&&(this.cwd=path.resolve(e.cwd)),e.pm2_home&&1==e.independent)throw new Error("You cannot set a pm2_home and independent instance in same time");if(e.pm2_home)this.pm2_home=e.pm2_home,conf=util._extend(conf,path_structure(this.pm2_home));else if(1==e.independent&&!1===conf.IS_WINDOWS){var t=require("crypto").randomBytes(8).toString("hex");this.pm2_home=path.join("/tmp",t),void 0===e.daemon_mode&&(this.daemon_mode=!1),conf=util._extend(conf,path_structure(this.pm2_home))}this._conf=conf,conf.IS_WINDOWS&&process.stdout._handle&&process.stdout._handle.setBlocking&&process.stdout._handle.setBlocking(!0),this.Client=new Client({pm2_home:n.pm2_home,conf:this._conf,secret_key:this.secret_key,public_key:this.public_key,daemon_mode:this.daemon_mode,machine_name:this.machine_name}),this.gl_interact_infos=null,this.gl_is_km_linked=!1;try{var o=fs.readFileSync(conf.INTERACTOR_PID_PATH);o=parseInt(o.toString().trim()),process.kill(o,0),n.gl_is_km_linked=!0}catch(e){n.gl_is_km_linked=!1}this.secret_key&&"local_test"==process.env.NODE_ENV&&(n.gl_is_km_linked=!0),KMDaemon.getInteractInfo(this._conf,function(e,t){n.gl_interact_infos=t})};throw API.prototype.connect=function(e,n){var t=this;this.start_timer=new Date,void 0===n?(n=e,e=!1):!0===e&&(this.Client.daemon_mode=!1,this.daemon_mode=!1),this.Client.start(function(e,o){return e?n(e):0==o.new_pm2_instance&&!0===t.daemon_mode?n(e,o):void Modularizer.launchAll(t,function(t){return n(e,o)})})},API.prototype.destroy=function(e){var n=require("shelljs").exec,t=this;debug("Killing and deleting current daemon"),this.killDaemon(function(){var o="rm -rf "+t.pm2_home,i=path.join(t.pm2_home,"module_conf.json");path.join(t.pm2_home,"pm2.pid");return t.pm2_home.indexOf(".pm2")>-1?e(new Error("Destroy is not a allowed method on .pm2")):fs.accessSync?(fs.access(i,fs.R_OK,function(i){if(i)return e(i);debug("Deleting temporary folder %s",t.pm2_home),n(o,e)}),!1):void fs.exists(i,function(i){return i&&(debug("Deleting temporary folder %s",t.pm2_home),n(o,e)),e(null)})})},API.prototype.disconnect=API.prototype.close=function(e){var n=this;e||(e=function(){}),this.Client.close(function(t,o){return debug("The session lasted %ds",(new Date-n.start_timer)/1e3),e(t,o)})},API.prototype.launchModules=function(e){Modularizer.launchAll(this,e)},new Error("muhahahaha"); //# sourceMappingURL=API.min.js.map diff --git a/examples/using-pm2-and-transpilers/node.d.ts b/examples/using-pm2-and-transpilers/node.d.ts index 6770d84632..f9b3c252ce 100644 --- a/examples/using-pm2-and-transpilers/node.d.ts +++ b/examples/using-pm2-and-transpilers/node.d.ts @@ -207,7 +207,7 @@ declare var Buffer: { * @param size count of octets to allocate. * @param fill if specified, buffer will be initialized by calling buf.fill(fill). * If parameter is omitted, buffer will be filled with zeros. - * @param encoding encoding used for call to buf.fill while initalizing + * @param encoding encoding used for call to buf.fill while initializing */ alloc(size: number, fill?: string | Buffer | number, encoding?: string): Buffer; /** @@ -1574,7 +1574,7 @@ declare module "fs" { export function write(fd: number, data: any, offset: number, callback?: (err: NodeJS.ErrnoException, written: number, str: string) => void): void; export function write(fd: number, data: any, offset: number, encoding: string, callback?: (err: NodeJS.ErrnoException, written: number, str: string) => void): void; export function writeSync(fd: number, buffer: Buffer, offset: number, length: number, position?: number): number; - export function writeSync(fd: number, data: any, position?: number, enconding?: string): number; + export function writeSync(fd: number, data: any, position?: number, encoding?: string): number; export function read(fd: number, buffer: Buffer, offset: number, length: number, position: number, callback?: (err: NodeJS.ErrnoException, bytesRead: number, buffer: Buffer) => void): void; export function readSync(fd: number, buffer: Buffer, offset: number, length: number, position: number): number; /* @@ -1729,7 +1729,7 @@ declare module "path" { /** * The right-most parameter is considered {to}. Other parameters are considered an array of {from}. * - * Starting from leftmost {from} paramter, resolves {to} to an absolute path. + * Starting from leftmost {from} parameter, resolves {to} to an absolute path. * * If {to} isn't already absolute, {from} arguments are prepended in right to left order, until an absolute path is found. If after using all {from} paths still no absolute path is found, the current working directory is used as well. The resulting path is normalized, and trailing slashes are removed unless the path gets resolved to the root directory. * @@ -2125,7 +2125,7 @@ declare module "crypto" { update(data: any): void; sign(private_key: string, output_format: string): string; } - export function createVerify(algorith: string): Verify; + export function createVerify(algorithm: string): Verify; export interface Verify extends NodeJS.WritableStream { update(data: any): void; verify(object: string, signature: string, signature_format?: string): boolean; @@ -2307,7 +2307,7 @@ declare module "assert" { export function equal(actual: any, expected: any, message?: string): void; export function notEqual(actual: any, expected: any, message?: string): void; export function deepEqual(actual: any, expected: any, message?: string): void; - export function notDeepEqual(acutal: any, expected: any, message?: string): void; + export function notDeepEqual(actual: any, expected: any, message?: string): void; export function strictEqual(actual: any, expected: any, message?: string): void; export function notStrictEqual(actual: any, expected: any, message?: string): void; export function deepStrictEqual(actual: any, expected: any, message?: string): void; diff --git a/lib/API.js b/lib/API.js index 223a8fb9ae..9b644dcacc 100644 --- a/lib/API.js +++ b/lib/API.js @@ -190,11 +190,11 @@ class API { } /** - * Usefull when custom PM2 created with independent flag set to true + * Useful when custom PM2 created with independent flag set to true * This will cleanup the newly created instance * by removing folder, killing PM2 and so on * - * @param {Function} cb callback once cleanup is successfull + * @param {Function} cb callback once cleanup is successful */ destroy (cb) { var that = this; @@ -964,7 +964,7 @@ class API { var apps_name = []; var proc_list = {}; - // Add statics to apps + // Add statistics to apps staticConf.forEach(function(serve) { appConf.push({ name: serve.name ? serve.name : `static-page-server-${serve.port}`, diff --git a/lib/API/Extra.js b/lib/API/Extra.js index e65d8422e7..16185c62fe 100644 --- a/lib/API/Extra.js +++ b/lib/API/Extra.js @@ -690,7 +690,7 @@ module.exports = function(CLI) { var Dashboard = require('./Dashboard'); if (cb) - return cb(new Error('Dashboard cant be called programmatically')); + return cb(new Error('Dashboard can't be called programmatically')); Dashboard.init(); @@ -733,7 +733,7 @@ module.exports = function(CLI) { var Monit = require('./Monit.js'); - if (cb) return cb(new Error('Monit cant be called programmatically')); + if (cb) return cb(new Error('Monit can't be called programmatically')); Monit.init(); diff --git a/lib/API/Modules/LOCAL.js b/lib/API/Modules/LOCAL.js index b5141bd2f0..2c96749975 100644 --- a/lib/API/Modules/LOCAL.js +++ b/lib/API/Modules/LOCAL.js @@ -72,11 +72,11 @@ function installMultipleModules(modules, cb, post_install) { shell : true, cwd : process.cwd() }); - Common.printOut(cst.PREFIX_MSG_MOD + 'Running configuraton script.'); + Common.printOut(cst.PREFIX_MSG_MOD + 'Running configuration script.'); } catch(e) { - Common.printOut(cst.PREFIX_MSG_MOD + 'No configuraton script found.'); + Common.printOut(cst.PREFIX_MSG_MOD + 'No configuration script found.'); } callback(null, { module: module, err: err }); }, false); diff --git a/lib/API/Modules/NPM.js b/lib/API/Modules/NPM.js index 153a539f5a..532a6cbcea 100644 --- a/lib/API/Modules/NPM.js +++ b/lib/API/Modules/NPM.js @@ -31,7 +31,7 @@ module.exports = { * - Installed modules are listed separately from user applications * - Always ON, a module is always up along PM2, to stop it, you need to uninstall it * - Install a runnable module from NPM/Github/HTTP (require a package.json only) - * - Some modules add internal PM2 depencencies (like typescript, profiling...) + * - Some modules add internal PM2 dependencies (like typescript, profiling...) * - Internally it uses NPM install (https://docs.npmjs.com/cli/install) * - Auto discover script to launch (first it checks the apps field, then bin and finally main attr) * - Generate sample module via pm2 module:generate diff --git a/lib/API/Monit.js b/lib/API/Monit.js index 5f2fa29488..801d99ff36 100644 --- a/lib/API/Monit.js +++ b/lib/API/Monit.js @@ -223,7 +223,7 @@ Monit.drawRatio = function(bar_memory, memory) { }; /** - * Updates bars informations + * Updates bars information * @param {} proc proc object * @return this */ diff --git a/lib/API/Startup.js b/lib/API/Startup.js index b8773a40da..83729f6403 100644 --- a/lib/API/Startup.js +++ b/lib/API/Startup.js @@ -83,7 +83,7 @@ module.exports = function(CLI) { Common.printOut('-----------------------------------------------------------') Common.printOut(' PM2 detected ' + actual_platform + ' but you precised ' + platform) Common.printOut(' Please verify that your choice is indeed your init system') - Common.printOut(' If you arent sure, just run : pm2 startup') + Common.printOut(' If you aren't sure, just run : pm2 startup') Common.printOut('-----------------------------------------------------------') } if (platform === null) @@ -209,7 +209,7 @@ module.exports = function(CLI) { Common.printOut('-----------------------------------------------------------') Common.printOut(' PM2 detected ' + actual_platform + ' but you precised ' + platform) Common.printOut(' Please verify that your choice is indeed your init system') - Common.printOut(' If you arent sure, just run : pm2 startup') + Common.printOut(' If you aren't sure, just run : pm2 startup') Common.printOut('-----------------------------------------------------------') } if (platform == null) diff --git a/lib/API/UX/pm2-ls.js b/lib/API/UX/pm2-ls.js index e5a460807b..e400a0ec44 100644 --- a/lib/API/UX/pm2-ls.js +++ b/lib/API/UX/pm2-ls.js @@ -464,7 +464,7 @@ function miniMonitBar(sys_infos) { * pm2 ls * @method dispAsTable * @param {Object} list - * @param {Object} system informations (via pm2 sysmonit/pm2 sysinfos) + * @param {Object} system information (via pm2 sysmonit/pm2 sysinfos) */ module.exports = function(list, commander) { var pm2_conf = Configuration.getSync('pm2') diff --git a/lib/API/Version.js b/lib/API/Version.js index 801efd9bff..76d10dd310 100644 --- a/lib/API/Version.js +++ b/lib/API/Version.js @@ -59,7 +59,7 @@ module.exports = function(CLI) { }); } else { - printOut(cst.PREFIX_MSG + 'Already up-to-date or an error occured for app: %s', process_name); + printOut(cst.PREFIX_MSG + 'Already up-to-date or an error occurred for app: %s', process_name); return cb ? cb({success:false, msg : 'Already up to date'}) : that.exitCli(cst.SUCCESS_EXIT); } return false; @@ -114,7 +114,7 @@ module.exports = function(CLI) { }); } else { - printOut(cst.PREFIX_MSG + 'Already up-to-date or an error occured: %s', process_name); + printOut(cst.PREFIX_MSG + 'Already up-to-date or an error occurred: %s', process_name); return cb ? cb(null, {success:meta.success}) : that.exitCli(cst.SUCCESS_EXIT); } }); @@ -231,7 +231,7 @@ module.exports = function(CLI) { }); } else { - printOut(cst.PREFIX_MSG + 'Already up-to-date or an error occured: %s', process_name); + printOut(cst.PREFIX_MSG + 'Already up-to-date or an error occurred: %s', process_name); return cb ? cb(null, {success:meta.success}) : that.exitCli(cst.SUCCESS_EXIT); } }); diff --git a/lib/API/pm2-plus/PM2IO.js b/lib/API/pm2-plus/PM2IO.js index 02a92e29a9..43f9862cfb 100644 --- a/lib/API/pm2-plus/PM2IO.js +++ b/lib/API/pm2-plus/PM2IO.js @@ -87,7 +87,7 @@ module.exports = class PM2ioHandler { } case 'help' : case 'welcome': { - var dt = fs.readFileSync(path.join(__dirname, './pres/welcome')); + var dt = fs.readFileSync(path.join(__dirname, './press/welcome')); console.log(dt.toString()); return process.exit(0) } @@ -209,7 +209,7 @@ module.exports = class PM2ioHandler { static validateAccount (token) { this.io.auth.validEmail(token) .then(res => { - console.log(`${cst.PM2_IO_MSG} Email succesfully validated.`) + console.log(`${cst.PM2_IO_MSG} Email successfully validated.`) console.log(`${cst.PM2_IO_MSG} You can now proceed and use: pm2 plus connect`) return process.exit(0) }).catch(err => { @@ -217,7 +217,7 @@ module.exports = class PM2ioHandler { console.error(`${cst.PM2_IO_MSG_ERR} Invalid token`) return process.exit(1) } else if (err.status === 301) { - console.log(`${cst.PM2_IO_MSG} Email succesfully validated.`) + console.log(`${cst.PM2_IO_MSG} Email successfully validated.`) console.log(`${cst.PM2_IO_MSG} You can now proceed and use: pm2 plus connect`) return process.exit(0) } diff --git a/lib/API/pm2-plus/auth-strategies/CliAuth.js b/lib/API/pm2-plus/auth-strategies/CliAuth.js index cf52c2b5ec..d8faf045da 100644 --- a/lib/API/pm2-plus/auth-strategies/CliAuth.js +++ b/lib/API/pm2-plus/auth-strategies/CliAuth.js @@ -151,7 +151,7 @@ module.exports = class CliStrategy extends AuthStrategy { } register (cb) { - console.log(`${cst.PM2_IO_MSG} No problem ! We just need few informations to create your account`) + console.log(`${cst.PM2_IO_MSG} No problem ! We just need few information to create your account`) var retry = () => { promptly.prompt(`${cst.PM2_IO_MSG} Please choose an username :`, { @@ -168,7 +168,7 @@ module.exports = class CliStrategy extends AuthStrategy { console.error(chalk.bold.red(err)); return retry() } else if (answer === false) { - console.error(`${cst.PM2_IO_MSG_ERR} You must accept the terms and privacy policy to contiue.`) + console.error(`${cst.PM2_IO_MSG_ERR} You must accept the terms and privacy policy to continue.`) return retry() } @@ -179,7 +179,7 @@ module.exports = class CliStrategy extends AuthStrategy { }, (err, data) => { console.log('\n') if (err) { - console.error(`${cst.PM2_IO_MSG_ERR} Unexpect error: ${err.message}`) + console.error(`${cst.PM2_IO_MSG_ERR} Unexpected error: ${err.message}`) console.error(`${cst.PM2_IO_MSG_ERR} You can also contact us to get help: contact@pm2.io`) return process.exit(1) } diff --git a/lib/Client.js b/lib/Client.js index 1fb73bb6a5..73af2353cf 100644 --- a/lib/Client.js +++ b/lib/Client.js @@ -561,7 +561,7 @@ Client.prototype.killDaemon = function killDaemon(fn) { }); } - // under unix, we listen for signal (that is send by daemon to notify us that its shuting down) + // under unix, we listen for signal (that is send by daemon to notify us that its shutting down) if (process.platform !== 'win32' && process.platform !== 'win64') { process.once('SIGQUIT', function() { debug('Received SIGQUIT from pm2 daemon'); diff --git a/lib/Common.js b/lib/Common.js index 24a1d13ec9..d1a25065b7 100644 --- a/lib/Common.js +++ b/lib/Common.js @@ -450,7 +450,7 @@ Common.sink.resolveInterpreter = function(app) { app.exec_interpreter = process.execPath; } - // No interpreter defined and correspondance in schema hashmap + // No interpreter defined and correspondence in schema hashmap if (noInterpreter && betterInterpreter) { app.exec_interpreter = betterInterpreter; diff --git a/lib/Daemon.js b/lib/Daemon.js index d47ef6a8d3..e0533eb66a 100644 --- a/lib/Daemon.js +++ b/lib/Daemon.js @@ -270,7 +270,7 @@ Daemon.prototype.close = function(opts, cb) { that.rpc_socket.close(function() { that.pub_socket.close(function() { - // notify cli that the daemon is shuting down (only under unix since windows doesnt handle signals) + // notify cli that the daemon is shutting down (only under unix since windows doesnt handle signals) if (cst.IS_WINDOWS === false) { try { process.kill(parseInt(opts.pid), 'SIGQUIT'); diff --git a/lib/God.js b/lib/God.js index cef8d06b5b..b37f7f5594 100644 --- a/lib/God.js +++ b/lib/God.js @@ -156,7 +156,7 @@ God.prepare = function prepare (env, cb) { return God.executeApp(Utility.clone(_env), function (err, clu) { if (err) return next(err); God.notify('start', clu, true); - // here call next wihtout an array because + // here call next without an array because // async.times aggregate the result into an array return next(null, Utility.clone(clu)); }); @@ -577,7 +577,7 @@ God.finalizeProcedure = function finalizeProcedure(proc) { /** * Inject variables into processes - * @param {Object} env environnement to be passed to the process + * @param {Object} env environment to be passed to the process * @param {Function} cb invoked with */ God.injectVariables = function injectVariables (env, cb) { @@ -621,8 +621,8 @@ God.injectVariables = function injectVariables (env, cb) { return b - a; })[0]; // inject a incremental variable - var defaut = Number(env.env[env.increment_var]) || 0; - env[env.increment_var] = typeof lastIncrement === 'undefined' ? defaut : lastIncrement + 1; + var default = Number(env.env[env.increment_var]) || 0; + env[env.increment_var] = typeof lastIncrement === 'undefined' ? default : lastIncrement + 1; env.env[env.increment_var] = env[env.increment_var]; } diff --git a/lib/God/ActionMethods.js b/lib/God/ActionMethods.js index f84b40fa15..52e41d50c6 100644 --- a/lib/God/ActionMethods.js +++ b/lib/God/ActionMethods.js @@ -130,7 +130,7 @@ module.exports = function(God) { var that = this; // Don't override the actual dump file if process list is empty - // unless user explicitely did `pm2 dump`. + // unless user explicitly did `pm2 dump`. // This often happens when PM2 crashed, we don't want to override // the dump file with an empty list of process. if (!apps[0]) { diff --git a/lib/God/Methods.js b/lib/God/Methods.js index 230acb44b5..a70aaf8b0b 100644 --- a/lib/God/Methods.js +++ b/lib/God/Methods.js @@ -60,9 +60,9 @@ module.exports = function(God) { }; /** - * Get formated processes + * Get formatted processes * @method getFormatedProcesses - * @return {Array} formated processes + * @return {Array} formatted processes */ God.getFormatedProcesses = function getFormatedProcesses() { var keys = Object.keys(God.clusters_db); diff --git a/lib/ProcessContainer.js b/lib/ProcessContainer.js index fb2e57c34a..fac9f548bf 100644 --- a/lib/ProcessContainer.js +++ b/lib/ProcessContainer.js @@ -242,7 +242,7 @@ function exec(script, stds) { logError(['std', 'err'], error); - // Notify master that an uncaughtException has been catched + // Notify master that an uncaughtException has been caught try { if (err) { var errObj = {}; diff --git a/lib/ProcessContainerBun.js b/lib/ProcessContainerBun.js index a5f9be927d..642e068164 100644 --- a/lib/ProcessContainerBun.js +++ b/lib/ProcessContainerBun.js @@ -305,7 +305,7 @@ function exec(script, stds) { logError(['std', 'err'], error); - // Notify master that an uncaughtException has been catched + // Notify master that an uncaughtException has been caught try { if (err) { var errObj = {}; diff --git a/lib/Utility.js b/lib/Utility.js index 547ec9bf6c..dd1551e880 100644 --- a/lib/Utility.js +++ b/lib/Utility.js @@ -199,7 +199,7 @@ var Utility = module.exports = { * - Removes the Github author, module version and git branch from original name. * * @param {string} module_name - * @returns {string} Canonic module name (without trimed parts). + * @returns {string} Canonic module name (without trimmed parts). * @example Always returns 'pm2-slack' for inputs 'ma-zal/pm2-slack', 'ma-zal/pm2-slack#own-branch', * 'pm2-slack-1.0.0.tgz' or 'pm2-slack@1.0.0'. */ diff --git a/lib/Watcher.js b/lib/Watcher.js index 9835ec7f91..3daa6a0c9e 100644 --- a/lib/Watcher.js +++ b/lib/Watcher.js @@ -11,7 +11,7 @@ module.exports = function ClusterMode(God) { /** * Watch folder for changes and restart * @method watch - * @param {Object} pm2_env pm2 app environnement + * @param {Object} pm2_env pm2 app environment * @return MemberExpression */ God.watch = {}; diff --git a/lib/binaries/CLI.js b/lib/binaries/CLI.js index 05eeae9c4b..e11b1e7901 100644 --- a/lib/binaries/CLI.js +++ b/lib/binaries/CLI.js @@ -214,7 +214,7 @@ else if (_arr.indexOf('startup') > -1 || _arr.indexOf('unstartup') > -1) { }, 100); } else { - // HERE we instanciate the Client object + // HERE we instantiate the Client object pm2.connect(function() { debug('Now connected to daemon'); if (process.argv.slice(2)[0] === 'completion') { @@ -996,7 +996,7 @@ commander.command('deepUpdate') commander.command('serve [path] [port]') .alias('expose') .option('--port [port]', 'specify port to listen to') - .option('--spa', 'always serving index.html on inexistant sub path') + .option('--spa', 'always serving index.html on inexistent sub path') .option('--basic-auth-username [username]', 'set basic auth username') .option('--basic-auth-password [password]', 'set basic auth password') .option('--monitor [frontend-app]', 'frontend app monitoring (auto integrate snippet on html files)') diff --git a/lib/binaries/DevCLI.js b/lib/binaries/DevCLI.js index cb0b97ec74..9f18b41dbe 100644 --- a/lib/binaries/DevCLI.js +++ b/lib/binaries/DevCLI.js @@ -91,7 +91,7 @@ function run(cmd, opts) { if (opts.testMode) { return pm2.disconnect(function() { - console.log('disconnected succesfully from pm2-dev') + console.log('disconnected successfully from pm2-dev') }); } diff --git a/lib/binaries/Runtime4Docker.js b/lib/binaries/Runtime4Docker.js index e9b6003e95..5d76e2c855 100644 --- a/lib/binaries/Runtime4Docker.js +++ b/lib/binaries/Runtime4Docker.js @@ -29,7 +29,7 @@ commander.version(pkg.version) .option('--machine-name [name]', '[MONITORING] PM2 plus machine name') .option('--trace', 'enable transaction tracing with km') .option('--v8', 'enable v8 data collecting') - .option('--format', 'output logs formated like key=val') + .option('--format', 'output logs formatted like key=val') .option('--raw', 'raw output (default mode)') .option('--formatted', 'formatted log output |id|app|log') .option('--json', 'output logs in json format') @@ -47,13 +47,13 @@ commander.version(pkg.version) commander.command('*') .action(function(cmd){ - Runtime.instanciate(cmd); + Runtime.instantiate(cmd); }); commander.command('start ') .description('start an application or json ecosystem file') .action(function(cmd) { - Runtime.instanciate(cmd); + Runtime.instantiate(cmd); }); if (process.argv.length == 2) { @@ -63,7 +63,7 @@ if (process.argv.length == 2) { var Runtime = { pm2 : null, - instanciate : function(cmd) { + instantiate : function(cmd) { this.pm2 = new PM2.custom({ pm2_home : process.env.PM2_HOME || path.join(process.env.HOME, '.pm2'), secret_key : cst.SECRET_KEY || commander.secret, diff --git a/lib/templates/init-scripts/smf.tpl b/lib/templates/init-scripts/smf.tpl index 18bdcaf67e..e02ec5cc73 100644 --- a/lib/templates/init-scripts/smf.tpl +++ b/lib/templates/init-scripts/smf.tpl @@ -24,7 +24,7 @@ - + diff --git a/lib/templates/sample-apps/http-server/README.md b/lib/templates/sample-apps/http-server/README.md index a7bfcdec25..ccbae5cfd3 100644 --- a/lib/templates/sample-apps/http-server/README.md +++ b/lib/templates/sample-apps/http-server/README.md @@ -3,7 +3,7 @@ In this boilerplate it will start an http server in cluster mode. -You can check the content of the ecosystem.config.js on how to start mutliple instances of the same HTTP application in order to get the most from your working system. +You can check the content of the ecosystem.config.js on how to start multiple instances of the same HTTP application in order to get the most from your working system. ## Via CLI diff --git a/lib/templates/sample-apps/pm2-plus-metrics-actions/README.md b/lib/templates/sample-apps/pm2-plus-metrics-actions/README.md index 4dbe4538b9..61614e69b1 100644 --- a/lib/templates/sample-apps/pm2-plus-metrics-actions/README.md +++ b/lib/templates/sample-apps/pm2-plus-metrics-actions/README.md @@ -11,7 +11,7 @@ Metrics covered are: ## What is Custom Metrics? -Custom metrics is a powerfull way to get more visibility from a running application. It will allow you to monitor in realtime the current value of variables, know the number of actions being processed, measure latency and much more. +Custom metrics is a powerful way to get more visibility from a running application. It will allow you to monitor in realtime the current value of variables, know the number of actions being processed, measure latency and much more. Once you have plugged in some custom metrics you will be able to monitor their value in realtime with diff --git a/lib/tools/json5.js b/lib/tools/json5.js index 97fccfa1c6..15dcbbd141 100644 --- a/lib/tools/json5.js +++ b/lib/tools/json5.js @@ -73,7 +73,7 @@ JSON5.parse = (function () { peek = function () { // Get the next character without consuming it or -// assigning it to the ch varaible. +// assigning it to the ch variable. return text.charAt(at); }, diff --git a/packager/setup.deb.sh b/packager/setup.deb.sh index 84d59abe9e..e068771aef 100755 --- a/packager/setup.deb.sh +++ b/packager/setup.deb.sh @@ -25,7 +25,7 @@ unknown_os () echo "You can override the OS detection by setting os= and dist= prior to running this script." echo "For example, to force Ubuntu Trusty: os=ubuntu dist=trusty ./script.sh" echo - echo "For more informations, please read the documentation on http://pm2.io/" + echo "For more information, please read the documentation on http://pm2.io/" exit 1 } @@ -96,7 +96,7 @@ detect_os () os=`lsb_release -i | cut -f2 | awk '{ print tolower($1) }'` elif [ -e /etc/debian_version ]; then - # some Debians have jessie/sid in their /etc/debian_version + # some Debian's have jessie/sid in their /etc/debian_version # while others have '6.0.7' os=`cat /etc/issue | head -1 | awk '{ print tolower($1) }'` if grep -q '/' /etc/debian_version; then diff --git a/packager/setup.rpm.sh b/packager/setup.rpm.sh index a4050d93f8..83bda1220f 100755 --- a/packager/setup.rpm.sh +++ b/packager/setup.rpm.sh @@ -25,7 +25,7 @@ unknown_os () echo "You can override the OS detection by setting os= and dist= prior to running this script." echo "For example, to force Ubuntu Trusty: os=ubuntu dist=trusty ./script.sh" echo - echo "For more informations, please read the documentation on http://pm2.io/" + echo "For more information, please read the documentation on http://pm2.io/" exit 1 } @@ -116,7 +116,7 @@ finalize_yum_repo () echo echo "WARNING: " echo "The pygpgme package could not be installed. This means GPG verification is not possible for any RPM installed on your system. " - echo "To fix this, add a repository with pygpgme. Usualy, the EPEL repository for your system will have this. " + echo "To fix this, add a repository with pygpgme. Usually, the EPEL repository for your system will have this. " echo "More information: https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F" echo diff --git a/paths.js b/paths.js index b1e83823c5..a989de7677 100644 --- a/paths.js +++ b/paths.js @@ -70,7 +70,7 @@ module.exports = function(PM2_HOME) { BUILTIN_NPM_PATH : has_node_embedded === true ? p.resolve(__dirname, './node/bin/npm') : null, }; - // allow overide of file paths via environnement + // allow override of file paths via environment var paths = Object.keys(pm2_file_stucture); paths.forEach(function (key) { var envKey = key.indexOf('PM2_') > -1 ? key : 'PM2_' + key; diff --git a/test/fixtures/esmodules/mjs/index.mjs b/test/fixtures/esmodules/mjs/index.mjs index 5646816b92..7c4693731b 100644 --- a/test/fixtures/esmodules/mjs/index.mjs +++ b/test/fixtures/esmodules/mjs/index.mjs @@ -4,7 +4,7 @@ const r = 3; console.log(`Circle with radius ${r} has area: ${area(r)}; - circunference: ${circumference(r)}`); + circumference: ${circumference(r)}`); setInterval(() => { }, 1000) diff --git a/test/fixtures/esmodules/packagemodule/index.js b/test/fixtures/esmodules/packagemodule/index.js index 2a83e3ae09..858cbbf908 100644 --- a/test/fixtures/esmodules/packagemodule/index.js +++ b/test/fixtures/esmodules/packagemodule/index.js @@ -4,7 +4,7 @@ const r = 3; console.log(`Circle with radius ${r} has area: ${area(r)}; - circunference: ${circumference(r)}`); + circumference: ${circumference(r)}`); setInterval(() => { }, 1000) diff --git a/test/fixtures/interface/process_exception_with_logs.js b/test/fixtures/interface/process_exception_with_logs.js index da8e43e771..af683732df 100644 --- a/test/fixtures/interface/process_exception_with_logs.js +++ b/test/fixtures/interface/process_exception_with_logs.js @@ -6,7 +6,7 @@ pmx.action('exception', function(reply) { console.log('I will crash muhahah'); throw new Error('CRASHED'); - return reply({ sucess: true}); + return reply({ success: true}); }); setInterval(function() { diff --git a/test/fixtures/probes.js b/test/fixtures/probes.js index 1cafbfb214..7773381fc2 100644 --- a/test/fixtures/probes.js +++ b/test/fixtures/probes.js @@ -23,7 +23,7 @@ var val = pmx.metric({ }, /** * Here we set a default value threshold, to receive a notification - * These options can be overriden via Keymetrics or via pm2 + * These options can be overridden via Keymetrics or via pm2 * More: http://bit.ly/1O02aap */ alert : { diff --git a/test/programmatic/api.mocha.js b/test/programmatic/api.mocha.js index bdbf99fb93..7d7875c7e3 100644 --- a/test/programmatic/api.mocha.js +++ b/test/programmatic/api.mocha.js @@ -14,7 +14,7 @@ describe('API checks', function() { PM2.kill(done); }); - it('should instanciate a new pm2 with old api', function() { + it('should instantiate a new pm2 with old api', function() { should.exists(PM2.pm2_home); should(PM2.daemon_mode).be.true(); PM2.cwd.should.eql(process.cwd()); @@ -215,7 +215,7 @@ describe('API checks', function() { }); }); - it('should instanciate a new pm2 with old api', function() { + it('should instantiate a new pm2 with old api', function() { should.exists(PM2.pm2_home); should(PM2.daemon_mode).be.true(); PM2.cwd.should.eql(process.cwd()); diff --git a/test/programmatic/client.mocha.js b/test/programmatic/client.mocha.js index 7176bc3963..400929aca0 100644 --- a/test/programmatic/client.mocha.js +++ b/test/programmatic/client.mocha.js @@ -5,7 +5,7 @@ var Client = require('../../lib/Client'); describe('Client Daemon', function() { var client; - it('should instanciate a new client', function() { + it('should instantiate a new client', function() { client = new Client({ independent : true }); should.exist(client.rpc_socket_file); should.exist(client.pub_socket_file); @@ -42,7 +42,7 @@ describe('Client Daemon', function() { // It is the job of the CLI describe.skip('Custom PM2 Home location', function() { - it('should instanciate a PM2 on another folder', function(done) { + it('should instantiate a PM2 on another folder', function(done) { client = new Client({ pm2_home : '/tmp/test' }); diff --git a/test/programmatic/cluster.mocha.js b/test/programmatic/cluster.mocha.js index 88cad82c42..36eb6aa2cf 100644 --- a/test/programmatic/cluster.mocha.js +++ b/test/programmatic/cluster.mocha.js @@ -140,7 +140,7 @@ describe('Cluster programmatic tests', function() { }); }); - // Skip Becoz Bun + // Skip Because Bun describe.skip('Listen timeout feature', function() { after(function(done) { pm2.delete('all', done); diff --git a/test/programmatic/conf_update.mocha.js b/test/programmatic/conf_update.mocha.js index b1bf8465a9..5df88b0d29 100644 --- a/test/programmatic/conf_update.mocha.js +++ b/test/programmatic/conf_update.mocha.js @@ -11,7 +11,7 @@ describe('Modules programmatic testing', function() { pm2.kill(done); }); - it('should instanciate PM2', function() { + it('should instantiate PM2', function() { pm2 = new PM2.custom({ cwd : '../fixtures' }); diff --git a/test/programmatic/custom_action.mocha.js b/test/programmatic/custom_action.mocha.js index 6df8aaf3cc..df3789d08f 100644 --- a/test/programmatic/custom_action.mocha.js +++ b/test/programmatic/custom_action.mocha.js @@ -44,14 +44,14 @@ describe('Custom actions via CLI/API', function() { }); }); - it('should cannot trigger message if unknow id', function(done) { + it('should cannot trigger message if unknown id', function(done) { pm2.trigger(10, 'ping', function(err, ret) { should(err).not.be.null(); done(); }); }); - it('should cannot trigger message if unknow action name', function(done) { + it('should cannot trigger message if unknown action name', function(done) { pm2.trigger(0, 'XXXXXXXXXx', function(err, ret) { should(err).not.be.null(); done(); diff --git a/test/programmatic/filter_env.mocha.js b/test/programmatic/filter_env.mocha.js index a88cf1c27d..3906b7a77f 100644 --- a/test/programmatic/filter_env.mocha.js +++ b/test/programmatic/filter_env.mocha.js @@ -34,7 +34,7 @@ describe('API checks', function() { }) }) - it('should start app with filtered env wth array of env to be ignored', function(done) { + it('should start app with filtered env with array of env to be ignored', function(done) { PM2.start({ script: './../fixtures/echo.js', filter_env: ['SHOULD_NOT_BE_THERE'] diff --git a/test/programmatic/module_tar.mocha.js b/test/programmatic/module_tar.mocha.js index 8c5233e06f..5168ecf747 100644 --- a/test/programmatic/module_tar.mocha.js +++ b/test/programmatic/module_tar.mocha.js @@ -110,7 +110,7 @@ describe('Modules programmatic testing', function() { }) describe('Re spawn PM2', () => { - it('should kill/resurect pm2', (done) => { + it('should kill/resurrect pm2', (done) => { pm2.update(function(err) { should(err).be.null(); done() diff --git a/test/programmatic/modules.mocha.js b/test/programmatic/modules.mocha.js index 1f4a1aba1f..f97010b2da 100644 --- a/test/programmatic/modules.mocha.js +++ b/test/programmatic/modules.mocha.js @@ -9,7 +9,7 @@ describe('Modules programmatic testing', function() { pm2.kill(done); }); - it('should instanciate PM2', function() { + it('should instantiate PM2', function() { pm2 = new PM2.custom({ daemon_mode : true }); diff --git a/test/programmatic/resurect_state.mocha.js b/test/programmatic/resurect_state.mocha.js index 619d3adedb..75b4733ca1 100644 --- a/test/programmatic/resurect_state.mocha.js +++ b/test/programmatic/resurect_state.mocha.js @@ -64,7 +64,7 @@ describe.skip('Keep state on pm2 update', function() { pm2.kill(done) }) - it('should resurect with one process stopped', function(done) { + it('should resurrect with one process stopped', function(done) { pm2.resurrect(() => { pm2.list((err, dt) => { if (dt.length == 4) @@ -82,7 +82,7 @@ describe.skip('Keep state on pm2 update', function() { pm2.kill(done) }) - it('should resurect with one process stopped', function(done) { + it('should resurrect with one process stopped', function(done) { pm2.resurrect(() => { pm2.list((err, dt) => { if (dt.length == 4 && dt.filter(proc => proc.pm2_env.status == 'stopped').length == 1) @@ -100,7 +100,7 @@ describe.skip('Keep state on pm2 update', function() { pm2.kill(done) }) - it('should resurect with one process stopped', function(done) { + it('should resurrect with one process stopped', function(done) { pm2.resurrect(() => { pm2.list((err, dt) => { if (dt.length == 3) diff --git a/types/index.d.ts b/types/index.d.ts index 77280f5aed..c06a390bf9 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -510,11 +510,11 @@ export interface StartOptions { /** * (Default: 1600) * The number of milliseconds to wait after a stop or restart command issues a SIGINT signal to kill the - * script forceably with a SIGKILL signal. + * script forcibly with a SIGKILL signal. */ kill_timeout?: number; /** - * (Default: 0) Number of millseconds to wait before restarting a script that has exited. + * (Default: 0) Number of milliseconds to wait before restarting a script that has exited. */ restart_delay?: number; /**