https://github.com/theajack/webos
Webos terminal Based on HTML5 FileSystem and Alins
https://github.com/theajack/webos
alins filesystem terminal webos
Last synced: about 1 year ago
JSON representation
Webos terminal Based on HTML5 FileSystem and Alins
- Host: GitHub
- URL: https://github.com/theajack/webos
- Owner: theajack
- License: mit
- Created: 2022-11-09T14:30:37.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-04-29T15:34:56.000Z (about 2 years ago)
- Last Synced: 2024-10-11T17:32:04.469Z (over 1 year ago)
- Topics: alins, filesystem, terminal, webos
- Language: TypeScript
- Homepage: https://theajack.github.io/webos
- Size: 1.63 MB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.cn.md
- License: LICENSE
Awesome Lists containing this project
README
### 🚀 [webos-term](https://github.com/theajack/webos): 基于 HTML5 FileSystem 的 Web 终端窗口
**[English](https://github.com/theajack/webos/blob/master/README.md) | [在线使用](https://theajack.github.io/webos) | [更新日志](https://github.com/theajack/webos/blob/master/scripts/version.md) | [反馈错误/缺漏](https://github.com/theajack/webos/issues/new) | [Gitee](https://gitee.com/theajack/webos) | [留言板](https://theajack.github.io/message-board/?app=webos)**
## 0 快速开始
[在线地址](https://theajack.github.io/webos)
[chrome插件下载](https://theajack.github.io/webos/extension.crx)

### 0.1 npm
使用 webos 构建你的终端窗口
```
npm i webos-term
```
```js
import { createTerm } from 'webos-term';
createTerm({
container: 'body'
});
```
** webos-disk 文件系统操作js库 **
```
npm i webos-disk
```
具体使用请参考 [webos-disk.d.ts](https://cdn.jsdelivr.net/npm/webos-disk/dist/webos-disk.d.ts)
### 0.2 cdn
```html
Webos.createTerm({
container: 'body'
});
```
## 1. webos-module
在浏览器上运行 es6,支持引入 npm包
```
npm i webos-module
```
```js
import { Application } from 'webos-module';
new Application({
code: `
import loadsh from 'loadsh';
console.log(loadsh.VERSION);
`
});
```
umd config
```js
import { Application } from 'webos-module';
new Application({
code: `
import vue from 'Vue';
console.log(vue);
`,
iifeNameMap: {vue: 'Vue'}
});
```
[other useage](https://cdn.jsdelivr.net/npm/webos-module/dist/webos-module.d.ts)