├── .eslintrc ├── .gitignore ├── LICENSE ├── README.md ├── arrays ├── empty-an-array │ └── index.js └── merge-array-alternating-values │ └── index.js ├── axios ├── download-files-with-progress │ ├── images │ │ └── .gitignore │ └── index.js └── download-files │ ├── images │ └── .gitignore │ └── index.js ├── code-styling ├── 01-callbacks.js ├── 02-promises.js ├── 03-async-await.js ├── async-or-not-async │ └── async-or-not-async.js ├── await-sync-function │ └── await-sync-function.js └── combine-callbacks-and-promises │ ├── base-command.js │ └── deploy-command.js ├── collections ├── array-compact │ └── array-compact.js ├── async-array-every │ └── async-array-every.js ├── async-array-filter │ └── async-array-filter.js ├── async-array-find │ └── async-array-find.js ├── async-array-forEach │ └── async-array-forEach.js ├── async-array-map │ └── async-array-map.js ├── async-array-mapSeries │ └── async-array-mapSeries.js └── async-array-some │ └── async-array-some.js ├── data-structures ├── implementations │ ├── linked-list │ │ ├── linked-list.js │ │ └── node.js │ ├── priority-queue │ │ └── priority-queue.js │ ├── queue │ │ └── queue.js │ ├── set │ │ └── set.js │ └── stack │ │ └── stack.js └── starter-files │ ├── linked-list.js │ ├── priority-queue.js │ ├── queue.js │ ├── set.js │ └── stack.js ├── date ├── increase-date-by-one-week.js └── tomorrows-date.js ├── error-handling └── unhandled-rejection.js ├── events └── async-event-listener │ ├── event.js │ ├── index.js │ └── listener.js ├── filesystem ├── create-an-empty-file │ ├── .gitignore │ └── index.js ├── file-created-date │ ├── content.txt │ └── index.js ├── file-last-updated-date │ ├── content.txt │ └── index.js └── write-json-object-to-file │ ├── content.txt │ ├── index.js │ └── promisified.js ├── flow-control ├── async-constructors │ ├── index.js │ └── sample-cache-driver.js ├── promise-and-callback │ ├── index.js │ └── promise-and-callback.js ├── promises-in-parallel │ ├── index.js │ └── with-errors.js ├── promises-in-sequence │ ├── index.js │ └── with-errors.js └── promises-waterfall │ ├── .gitignore │ └── index.js ├── loops └── for-of-vs-for-in │ └── for-of-vs-for-in.js ├── misc ├── custom-error │ ├── error.js │ └── index.js └── increased-memory-limit │ └── show-memory-limit.js ├── objects ├── deep-merge.js └── merge-objects.js ├── package.json ├── streaming └── async-readline │ ├── async-stringify-transform.js │ └── input.js ├── strings ├── json-stringify-with-spaces-and-line-breaks │ └── index.js └── string-replace-all-appearances │ └── index.js └── test └── data-structures ├── linked-list.js ├── priority-queue.js ├── queue.js ├── set.js └── stack.js /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/.eslintrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/README.md -------------------------------------------------------------------------------- /arrays/empty-an-array/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/arrays/empty-an-array/index.js -------------------------------------------------------------------------------- /arrays/merge-array-alternating-values/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/arrays/merge-array-alternating-values/index.js -------------------------------------------------------------------------------- /axios/download-files-with-progress/images/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /axios/download-files-with-progress/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/axios/download-files-with-progress/index.js -------------------------------------------------------------------------------- /axios/download-files/images/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /axios/download-files/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/axios/download-files/index.js -------------------------------------------------------------------------------- /code-styling/01-callbacks.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/code-styling/01-callbacks.js -------------------------------------------------------------------------------- /code-styling/02-promises.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/code-styling/02-promises.js -------------------------------------------------------------------------------- /code-styling/03-async-await.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/code-styling/03-async-await.js -------------------------------------------------------------------------------- /code-styling/async-or-not-async/async-or-not-async.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/code-styling/async-or-not-async/async-or-not-async.js -------------------------------------------------------------------------------- /code-styling/await-sync-function/await-sync-function.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/code-styling/await-sync-function/await-sync-function.js -------------------------------------------------------------------------------- /code-styling/combine-callbacks-and-promises/base-command.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/code-styling/combine-callbacks-and-promises/base-command.js -------------------------------------------------------------------------------- /code-styling/combine-callbacks-and-promises/deploy-command.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/code-styling/combine-callbacks-and-promises/deploy-command.js -------------------------------------------------------------------------------- /collections/array-compact/array-compact.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/collections/array-compact/array-compact.js -------------------------------------------------------------------------------- /collections/async-array-every/async-array-every.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/collections/async-array-every/async-array-every.js -------------------------------------------------------------------------------- /collections/async-array-filter/async-array-filter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/collections/async-array-filter/async-array-filter.js -------------------------------------------------------------------------------- /collections/async-array-find/async-array-find.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/collections/async-array-find/async-array-find.js -------------------------------------------------------------------------------- /collections/async-array-forEach/async-array-forEach.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/collections/async-array-forEach/async-array-forEach.js -------------------------------------------------------------------------------- /collections/async-array-map/async-array-map.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/collections/async-array-map/async-array-map.js -------------------------------------------------------------------------------- /collections/async-array-mapSeries/async-array-mapSeries.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/collections/async-array-mapSeries/async-array-mapSeries.js -------------------------------------------------------------------------------- /collections/async-array-some/async-array-some.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/collections/async-array-some/async-array-some.js -------------------------------------------------------------------------------- /data-structures/implementations/linked-list/linked-list.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/data-structures/implementations/linked-list/linked-list.js -------------------------------------------------------------------------------- /data-structures/implementations/linked-list/node.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/data-structures/implementations/linked-list/node.js -------------------------------------------------------------------------------- /data-structures/implementations/priority-queue/priority-queue.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/data-structures/implementations/priority-queue/priority-queue.js -------------------------------------------------------------------------------- /data-structures/implementations/queue/queue.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/data-structures/implementations/queue/queue.js -------------------------------------------------------------------------------- /data-structures/implementations/set/set.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/data-structures/implementations/set/set.js -------------------------------------------------------------------------------- /data-structures/implementations/stack/stack.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/data-structures/implementations/stack/stack.js -------------------------------------------------------------------------------- /data-structures/starter-files/linked-list.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/data-structures/starter-files/linked-list.js -------------------------------------------------------------------------------- /data-structures/starter-files/priority-queue.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/data-structures/starter-files/priority-queue.js -------------------------------------------------------------------------------- /data-structures/starter-files/queue.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/data-structures/starter-files/queue.js -------------------------------------------------------------------------------- /data-structures/starter-files/set.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/data-structures/starter-files/set.js -------------------------------------------------------------------------------- /data-structures/starter-files/stack.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/data-structures/starter-files/stack.js -------------------------------------------------------------------------------- /date/increase-date-by-one-week.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/date/increase-date-by-one-week.js -------------------------------------------------------------------------------- /date/tomorrows-date.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/date/tomorrows-date.js -------------------------------------------------------------------------------- /error-handling/unhandled-rejection.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/error-handling/unhandled-rejection.js -------------------------------------------------------------------------------- /events/async-event-listener/event.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/events/async-event-listener/event.js -------------------------------------------------------------------------------- /events/async-event-listener/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/events/async-event-listener/index.js -------------------------------------------------------------------------------- /events/async-event-listener/listener.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/events/async-event-listener/listener.js -------------------------------------------------------------------------------- /filesystem/create-an-empty-file/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/filesystem/create-an-empty-file/.gitignore -------------------------------------------------------------------------------- /filesystem/create-an-empty-file/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/filesystem/create-an-empty-file/index.js -------------------------------------------------------------------------------- /filesystem/file-created-date/content.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/filesystem/file-created-date/content.txt -------------------------------------------------------------------------------- /filesystem/file-created-date/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/filesystem/file-created-date/index.js -------------------------------------------------------------------------------- /filesystem/file-last-updated-date/content.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/filesystem/file-last-updated-date/content.txt -------------------------------------------------------------------------------- /filesystem/file-last-updated-date/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/filesystem/file-last-updated-date/index.js -------------------------------------------------------------------------------- /filesystem/write-json-object-to-file/content.txt: -------------------------------------------------------------------------------- 1 | { 2 | "name": "promisified Marcus" 3 | } -------------------------------------------------------------------------------- /filesystem/write-json-object-to-file/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/filesystem/write-json-object-to-file/index.js -------------------------------------------------------------------------------- /filesystem/write-json-object-to-file/promisified.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/filesystem/write-json-object-to-file/promisified.js -------------------------------------------------------------------------------- /flow-control/async-constructors/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/flow-control/async-constructors/index.js -------------------------------------------------------------------------------- /flow-control/async-constructors/sample-cache-driver.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/flow-control/async-constructors/sample-cache-driver.js -------------------------------------------------------------------------------- /flow-control/promise-and-callback/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/flow-control/promise-and-callback/index.js -------------------------------------------------------------------------------- /flow-control/promise-and-callback/promise-and-callback.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/flow-control/promise-and-callback/promise-and-callback.js -------------------------------------------------------------------------------- /flow-control/promises-in-parallel/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/flow-control/promises-in-parallel/index.js -------------------------------------------------------------------------------- /flow-control/promises-in-parallel/with-errors.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/flow-control/promises-in-parallel/with-errors.js -------------------------------------------------------------------------------- /flow-control/promises-in-sequence/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/flow-control/promises-in-sequence/index.js -------------------------------------------------------------------------------- /flow-control/promises-in-sequence/with-errors.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/flow-control/promises-in-sequence/with-errors.js -------------------------------------------------------------------------------- /flow-control/promises-waterfall/.gitignore: -------------------------------------------------------------------------------- 1 | data.json 2 | -------------------------------------------------------------------------------- /flow-control/promises-waterfall/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/flow-control/promises-waterfall/index.js -------------------------------------------------------------------------------- /loops/for-of-vs-for-in/for-of-vs-for-in.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/loops/for-of-vs-for-in/for-of-vs-for-in.js -------------------------------------------------------------------------------- /misc/custom-error/error.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/misc/custom-error/error.js -------------------------------------------------------------------------------- /misc/custom-error/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/misc/custom-error/index.js -------------------------------------------------------------------------------- /misc/increased-memory-limit/show-memory-limit.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/misc/increased-memory-limit/show-memory-limit.js -------------------------------------------------------------------------------- /objects/deep-merge.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/objects/deep-merge.js -------------------------------------------------------------------------------- /objects/merge-objects.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/objects/merge-objects.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/package.json -------------------------------------------------------------------------------- /streaming/async-readline/async-stringify-transform.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/streaming/async-readline/async-stringify-transform.js -------------------------------------------------------------------------------- /streaming/async-readline/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/streaming/async-readline/input.js -------------------------------------------------------------------------------- /strings/json-stringify-with-spaces-and-line-breaks/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/strings/json-stringify-with-spaces-and-line-breaks/index.js -------------------------------------------------------------------------------- /strings/string-replace-all-appearances/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/strings/string-replace-all-appearances/index.js -------------------------------------------------------------------------------- /test/data-structures/linked-list.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/test/data-structures/linked-list.js -------------------------------------------------------------------------------- /test/data-structures/priority-queue.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/test/data-structures/priority-queue.js -------------------------------------------------------------------------------- /test/data-structures/queue.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/test/data-structures/queue.js -------------------------------------------------------------------------------- /test/data-structures/set.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/test/data-structures/set.js -------------------------------------------------------------------------------- /test/data-structures/stack.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/futurestudio/nodejs-tutorials/HEAD/test/data-structures/stack.js --------------------------------------------------------------------------------