Skip to content

Instantly share code, notes, and snippets.

@danhodge
Last active October 5, 2021 02:02
Show Gist options
  • Save danhodge/86c9a23f4a366b7c3734c45c65cf43ad to your computer and use it in GitHub Desktop.
Save danhodge/86c9a23f4a366b7c3734c45c65cf43ad to your computer and use it in GitHub Desktop.
node.js notes
// using the debugger
// 1. start with node inspect <script>
// 2. add debugger statement(s) in code
// 3. when execution stops on a debugger statement, use the repl command to get into a repl
// 4. use c <ENTER> to continue execution
// using the debugger + Jest
// 1. start with: node inspect $(npm bin)/jest <test.ts> --runInBand
// 2. same as steps 2-4 above
// Upgrade to a Specific Node Package Version
% npm install package@version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment