Skip to content

Instantly share code, notes, and snippets.

@ApoTheOne
Last active May 31, 2021 13:00
Show Gist options
  • Save ApoTheOne/4c0ee845e148e88a694281e1d787535a to your computer and use it in GitHub Desktop.
Save ApoTheOne/4c0ee845e148e88a694281e1d787535a to your computer and use it in GitHub Desktop.
NodeJs commands and IQ
node -v
node -p 'process.versions.v8'
node --v8-options | grep "in progress"
node --v8-options | less
node --v8-options | grep gc
// Manually call GC : Handle with care as it will pause all executions so use it wisely.
node --expose-gc -e "gc()"
node
> v8
> v9.getHeapStatistics()
//To resolve SSL error while installing node or packages behind coporate proxy:
npm config set https-proxy `proxy-url`
even loop
call back
promises
authentication authorization
how to read large files
Diff types of streams
single threaded
utilize all cores of cpu
exception handling
fork vs spawn
private variables in js
closures
mixins
design patterns
host node.js api in?
how to leverage multi core when it's single threaded
Unit testing
test runner? assertion lib? Mocha, chai, jasmine
vs Jest
Functional programming
Pure functions
inheritance vs Prototypal inheritance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment