---
name: "kjs"
section: "1"
platform: "linux"
package: "kdelibs-bin"
version: "4:4.14.38-3"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/kjs"
---

# kjs(1)

KDE ECMAScript compatible interpreter

## NAME

kjs - KDE ECMAScript compatible interpreter

## SYNOPSIS

**kjs** \[\[--help\] \| \[-help\] \| \[-h\]\] \[\[-e *statement*\]\] \[*script*\]

## DESCRIPTION

**kjs** is KDE ECMAScript/JavaScript engine.

## APPLICATION OPTIONS

- **--help**,**-help**,**-h**

  Show **kjscmd** usage.

**-e** *statement*

Executes the statement and exits. For example:

```
kjs -e "print('hello world')"
```

*script*

Executes the statements included in file *script*.

## USAGE

**kjs** *file*, as many other interpreters, when called without parameters uses a line editor to enter statements, showing the prompt

```
JS>
```

To exit the line editor type **quit()** or press **Ctrl+D**.

## SEE ALSO

[*kjs*(1)](/kjs/1.md)

## BUGS

There are probably tons of bugs. Use **bugs.kde.org**\[1\] to report them.

## AUTHOR

**Harri Porten** \<porten@kde.org\>

Author.

## NOTES

- 1\.

  bugs.kde.org

  http://bugs.kde.org
