diff --git a/Kit/Session-1/imgs/Screen-Shot-2012-04-24-at-5.40.33-PM.png b/Kit/Session-1/imgs/Screen-Shot-2012-04-24-at-5.40.33-PM.png new file mode 100644 index 0000000..56ec24c Binary files /dev/null and b/Kit/Session-1/imgs/Screen-Shot-2012-04-24-at-5.40.33-PM.png differ diff --git a/Kit/Session-6/process/process-1.js b/Kit/Session-6/process/process-1.js new file mode 100644 index 0000000..e623699 --- /dev/null +++ b/Kit/Session-6/process/process-1.js @@ -0,0 +1,17 @@ +/*** + * The goal of this file is to know about the process functions; + * + * + * How to run this example: + * 1. node process-1.js + * 2. See the message get displayed on prompt. + */ + +console.log('Starting directory: ' + process.cwd()); + +try { + process.chdir('../'); + console.log('New directory: ' + process.cwd()); +} catch (error) { + console.log('Chdir: ' + error); +} \ No newline at end of file diff --git a/Kit/Session-6/process/process-2.js b/Kit/Session-6/process/process-2.js new file mode 100644 index 0000000..ffa5bc0 --- /dev/null +++ b/Kit/Session-6/process/process-2.js @@ -0,0 +1,19 @@ +/*** + * The goal of this file is to know about the process functions; + * + * + * How to run this example: + * 1. node process-2.js + * 2. See the message get displayed on prompt. + */ + +console.log("Process ID: %s", process.pid); + +console.log("Process Title: %s", process.title); + +console.log("Process Arch: %s", process.arch); + +console.log("Process Platform: %s", process.platform); + +var util = require('util'); +console.log(util.inspect(process.memoryUsage())); \ No newline at end of file