# @kparc/k

> k installer

Latest version **2.0.70** (published 2021-03-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @kparc/k
pnpm add @kparc/k
yarn add @kparc/k
bun add @kparc/k
```

Provides the command `k`.

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.70 |
| Published | 2021-03-30 |
| First published | 2019-08-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 14 |
| Author | kparc |
| Maintainers | kelas |
| Keywords | k, k9, ksql, shaktidb, kparc, atw |

## Links

- npm: https://www.npmjs.com/package/@kparc/k
- Repository: https://github.com/kparc/k
- Homepage: https://github.com/kparc/k#readme
- Issues: https://github.com/kparc/k/issues
- npm.io page: https://npm.io/package/@kparc/k

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 2.0.70 (latest) — 2021-03-30
- 2.0.69 — 2021-03-30
- 2.0.68 — 2021-03-30
- 2.0.67 — 2021-03-29
- 2.0.66 — 2021-03-29
- 2.0.65 — 2021-03-29
- 2.0.64 — 2021-03-29
- 2.0.63 — 2021-03-29
- 2.0.62 — 2021-03-29
- 2.0.61 — 2021-03-29
- 2.0.60 — 2021-03-18
- 2.0.58 — 2021-03-18
- 2.0.57 — 2021-03-18
- 2.0.56 — 2021-03-14
- 2.0.55 — 2021-03-14
- … 56 more at https://npm.io/package/@kparc/k/versions

## README

# k installer
[![npm](https://img.shields.io/npm/v/@kparc/k)](https://www.npmjs.com/package/@kparc/k)

a lightweight npm package to install/update the runtime of [k language](https://shakti.com) on supported architectures and platforms:

```
* mac/x86_64
* lin/x86_64
```

tba:

```
* mac/aarch64
* lin/aarch64
* lin/rv64gcv
* win64/wsm32
```

### usage

```
$ npm i @kparc/k -g
$ echo 2+2|k
```

### devmode

in case the installer runs as non-root and finds a directory named `shakti` in your `$HOME`, it will check out latest documentation and examples from `shakti.sh` into that directory.

### faq

#### how to upgrade?

the upgrade is the same as install. for convenience, consider adding the following to your rc file:
```
alias kup="npm i @kparc/k --global --quiet --no-audit --yes"
```
additional flags suppress non-essential output, skip audit checks (k has no dependencies), and automatically accepts prompts (see below).

#### how to downgrade?

rolling back to previous versions is not yet supported. to uninstall, use:

```
$ npm uninstall @kparc/k -g
removed 1 package in 0.333s
```

#### the installer fails with `EACCESS`.

on correctly configured systems, the global `npm` installation directory (e.g. `/usr/lib/node_modules`) is owned by the superuser. use the following command to give `npm` the necessary one-time permissions:

```
$ sudo npm install @kparc/k --global --unsafe
```

relaxing ownership of the npm directory is not recommended.

#### i don't have administrative rights on my system.

omit `-g` flag, the package will be placed in your home directory. you can then add `~/node_modules/@kparc/k/bin` to your `PATH`.

#### why do i have to accept a license on first install?

while k installer is distributed under MIT license, k itself is subject to [Shakti Software Evaluation Agreement](https://shakti.com/license.php). the agreement is not re-displayed unless there are changes to the previously accepted version.

the checksum of previously accepted EULA text is stored in `@kparc/.shakti.eula.crc`.

#### i'm having issues.

the installer targets [LTS](https://nodejs.org/en/about/releases/), which is recommended for most users and ships with `npm 6.*`. if your environment is configured to use latest features and/or `npm 7.*`, you may experience minor difficulties, e.g. excessively verbose `npm` output during installation. please raise an [issue](https://github.com/kparc/k/issues/new) and include parts of `npm i @kparc/k -g --verbose` that seem relevant.

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