# kamscript

> kamscript language interpreter

Latest version **1.0.0** (published 2022-04-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install kamscript
pnpm add kamscript
yarn add kamscript
bun add kamscript
```

Provides the command `ks`.

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-04-06 |
| First published | 2022-04-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | kamkow1 |

## Links

- npm: https://www.npmjs.com/package/kamscript
- npm.io page: https://npm.io/package/kamscript

## Dependencies (2)

- [fs](https://npm.io/package/fs.md) ^0.0.1-security
- [commander](https://npm.io/package/commander.md) ^9.1.0

## Recent versions

- 1.0.0 (latest) — 2022-04-06

## README

# kamscript
## a simple scripting langauge interpreter implemented in javascript

## installation
to install kamscript interpreter, type in your terminal:
```properties
npm i -g kamscript
```

## running your code
to run your code run:
```properties
ks exec <path to file>
```

## how do files work?
in order to run a kamscript file, it needs to have a &#10071; .ks extension &#10071;
you can execute a script without specifying the file name
```properties
ks exec <path to directory>
```
the kamscript interpreter will search for index.ks file by default
if it doesn't find such a file, an error will be thrown.

## kamscript syntax
all examples are in the "examples" directory.
operators:
        add number1 number2 number3 ...
            - adds n numbers
        
        divide number1 number2 number3 ...
            - divides n numbers ( ex. math expression (((1 / 2) / 3) / 4) )
        
        modulo number1 number2 number3 ...
            - calculates the modulo of numbers
        
        multiply number1 number2 number3 ...
            - multiplies n numbers ( ex. math expression 1 * 2 * 10 * 12 )
        
        power number1 number2 number3 ...
            - raises number to the power of the next number ( ex. math expression (((1^2)^3)^4) )
        
        subtract number1 number2 number3 ...
            - subtracts n numbers

---
_Source: https://npm.io/package/kamscript · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
