kotonemu
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

Kotonemu

A Linux Emulator for JavaScript

How to use

import { Emulator } from "kotonemu";
import ShalfeltOS from "kotonemu/os";

const { options, storage } = ShalfeltOS(xterm_terminal_object);
const emulator = new Emulator(options, storage);
emulator.run();
ShalfeltOS 0.1.0
Copyright (C) 2024 Kotonone and ShalfeltOS contributors

kotonepc login: a
Password: b
Last login: Wed Dec  9 04:09:57 on tty1
[kotone@kotonepc /]$

Purpose

When you want to implement a Linux-like PC that can actually be operated by the user in software written in JavaScript.

For example, ... games that put a little too much emphasis on technology?

Implemented system calls

  • open
  • close
  • seek
  • read
  • write
  • stat, fstat, lstat
  • unlink
  • mkdir
  • readdir
  • rmdir
  • symlink
  • readlink
  • uname
  • chown, fchown, lchown
  • chmod, fchmod
  • getuid, setuid
  • getgid, setgid
  • spawn
  • exec

For contributors

You can start the development server with the following command:

pnpm run dev

Dependencies (0)

    Dev Dependencies (6)

    Package Sidebar

    Install

    npm i kotonemu

    Weekly Downloads

    2

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    258 kB

    Total Files

    29

    Last publish

    Collaborators

    • kotonefami