HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

d8 — Developer shell for the V8 JavaScript engine. More information: <https://v8.dev/docs/d8>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
theshellcommandjavascriptd8clideveloperfor

Problem

How to use the d8 command: Developer shell for the V8 JavaScript engine. More information: <https://v8.dev/docs/d8>.

Solution

d8 — Developer shell for the V8 JavaScript engine. More information: <https://v8.dev/docs/d8>.

Start a REPL (interactive shell):
d8


Run a JavaScript file:
d8 {{path/to/file.js}}


Evaluate a JavaScript expression:
d8 -e "{{code}}"

Code Snippets

Start a REPL (interactive shell)

d8

Run a JavaScript file

d8 {{path/to/file.js}}

Evaluate a JavaScript expression

d8 -e "{{code}}"

Context

tldr-pages: common/d8

Revisions (0)

No revisions yet.