@weoos/utils
v0.0.5
Published
Pure front-end OS on Browser
Readme
@weoos/os
Pure front-end OS on Browser
- @weoos/os: Main lib. typings
- @weoos/disk: Disk support. typings
- @weoos/cmd: Command support. typings
- @weoos/event: Event bus cross any environment. typings
- @weoos/utils: utils for @weoos/os. typings
npm i @weoos/osimport { WebOS } from '@weoos/os';
const os = new WebOS();or use container
const os1 = new WebOS({
container: '#app',
});
const os2 = new WebOS({
container: document.getElementById('app'),
});export declare class WebOS {
term: WebTerm;
pwd: string;
commandProvider: CommandProvider;
get disk(): Disk;
get header(): string;
static instance: WebOS;
constructor({ container, title, padding, enableSync, }?: {
container?: string | HTMLElement;
title?: string;
padding?: number;
enableSync?: boolean;
});
registerCommand(command: ICommand): IOprateResult;
get removeCommand(): CommandProvider["removeCommand"];
}