Skip to content

Mustafa Ateş UZUN Blog

mustafauzun.co

  • About
  • Blog
  • Home
  • »
  • JavaScript
  • »
  • Node.js, how to see javascript machine codes
  • »
    • September 17, 2022September 17, 2022
    • by mustafauzun
  • JavaScript, Node.js

Node.js, how to see javascript machine codes

Did you know that you can see machine codes of javascript files with Node.js?

For example;

console.log('hello')

Unoptimized machine codes;

node --print-code filename.js

Bytecodes;

node --print-bytecode filename.js

Optimized machine codes;

node --print-opt-code filname.js

Also, you can see it machine codes without using any files;

node --print-code --eval console.log('hello')

Tags: assembly, bytecode, javascript, node.js
Share

Javascript, turn function to string based calculator

Javascript, create your own HTML tag

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Javascript, Task Queue
  • Javascript, Thread Pool
  • Javascript, Lexical Environment
  • Javascript, Execution Context
  • Javascript, Event Delegation

Recent Comments

No comments to show.

Archives

  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • January 2022

Categories

  • C#
  • CMD
  • CSS
  • HTML
  • JavaScript
  • MongoDB
  • Node.js
  • Podcast
  • Powershell
  • Uncategorized
Theme: Puskar by Template Sell.