run nodejs scripts is: node ./global.js
the output:
/home/igor/Projects/node-learnig
global.js:5
/home/igor/Projects/node-learnig/global.js
global.js:6
The file name is global.jsto run the emmiter.js use command like this with the extension .js: node ./emmiter.js in other case we will get MODULE_NOT_FOUND error
- lesson 2, require function
- lesson 3, working with object proces.argv - it lets us build command line interface, look at nodejs.org/api/globals.html
- lesson 4, part 1, start building small questionary
- lesson 5, part 2, questionary - fills the array from input and use on "exit" event
- lesson 6, 7 - using setTimeout, setInvervl and clearInterval
- lesson 8, reporting progress with setInterval
- lesson 3.1, understanding core modules
- lesson 3.2, 3.3 - using readline module and learn to pass function as argument to another function
- lesson 3.4, part 1 - using exporting modules
- lesson 3.4, part 2 - another way importing methods (functions)
- lesson 3.5, using Publish-Subscribe (PubSub) design pattern for creating events
- lesson 3.6, creating a mousle, refactoring readline.js former ask.js
- lesson 3.7, consuming a module with EventEmitter (refactoring)
- lesson 4.1, listing directory files part 1
- lesson 4.1, listing directory files part 2 , non blocking
- lesson 4.2, part 1, readFileSync
- lesson 4.2, part 2, readFile, assync version
- lesson 4.3, writting and appending files
- lesson 4.4, crating directory and checking for existsance
- lesson 4.5, copying, renaming and deleteing files sync and assync
- lesson 4.6, deleting, renaming directories
- lesson 4.7, streams, stream events
- lesson 4.8, part 1, writable file streams
- lesson 4.8, part 2, making our questionary using streams create md file with answers.