@battlefieldduck/xterm-svelte 0.0.5 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -7
- package/dist/XtermAddonType.d.ts +11 -0
- package/dist/XtermAddonType.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/package.json +13 -2
package/README.md
CHANGED
|
@@ -1,17 +1,28 @@
|
|
|
1
1
|
# xterm-svelte
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<img align="right" width="100" height="100" src="https://github.com/BattlefieldDuck/xterm-svelte/assets/29337428/e1055940-ae66-48b5-9a1f-1965949b5757">
|
|
4
4
|
|
|
5
|
+
[](https://github.com/BattlefieldDuck/xterm-svelte/actions/workflows/node-build.yml)
|
|
6
|
+
[](https://www.npmjs.com/package/@battlefieldduck/xterm-svelte)
|
|
7
|
+

|
|
5
8
|
|
|
6
9
|
xterm-svelte is a wrapper for the [xterm.js](https://github.com/xtermjs/xterm.js) library, designed to work seamlessly with SvelteKit. This library allows you to embed a fully functional terminal in your SvelteKit application.
|
|
7
10
|
|
|
8
|
-
|
|
11
|
+
Check it out: https://xterm-svelte.pages.dev
|
|
9
12
|
|
|
10
13
|
## Features
|
|
11
14
|
|
|
12
|
-
- Full integration with SvelteKit
|
|
13
|
-
|
|
14
|
-
-
|
|
15
|
+
- **Full integration with SvelteKit**
|
|
16
|
+
|
|
17
|
+
Xterm-Svelte is designed to work seamlessly with SvelteKit, allowing you to easily incorporate terminal functionality into your SvelteKit projects.
|
|
18
|
+
|
|
19
|
+
- **Xterm addons management**
|
|
20
|
+
|
|
21
|
+
Xterm addons are managed within Xterm-Svelte, providing a unified and consistent interface for working with Xterm and its addons.
|
|
22
|
+
|
|
23
|
+
- **Continuous package updates**
|
|
24
|
+
|
|
25
|
+
Xterm-Svelte is regularly updated to ensure compatibility with the latest versions of SvelteKit and Xterm.js. This means you can always use the latest features and improvements from these libraries in your projects.
|
|
15
26
|
|
|
16
27
|
## Installation
|
|
17
28
|
|
|
@@ -37,8 +48,7 @@ Here's a basic example of how to use xterm-svelte in your SvelteKit application:
|
|
|
37
48
|
const terminal = event.detail.terminal;
|
|
38
49
|
|
|
39
50
|
// FitAddon Usage
|
|
40
|
-
const
|
|
41
|
-
const fitAddon = new FitAddon();
|
|
51
|
+
const fitAddon = new (await XtermAddon.FitAddon()).FitAddon();
|
|
42
52
|
terminal.loadAddon(fitAddon);
|
|
43
53
|
fitAddon.fit();
|
|
44
54
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type * from '@xterm/addon-attach';
|
|
2
|
+
export type * from '@xterm/addon-canvas';
|
|
3
|
+
export type * from '@xterm/addon-clipboard';
|
|
4
|
+
export type * from '@xterm/addon-fit';
|
|
5
|
+
export type * from '@xterm/addon-image';
|
|
6
|
+
export type * from '@xterm/addon-ligatures';
|
|
7
|
+
export type * from '@xterm/addon-search';
|
|
8
|
+
export type * from '@xterm/addon-serialize';
|
|
9
|
+
export type * from '@xterm/addon-unicode11';
|
|
10
|
+
export type * from '@xterm/addon-web-links';
|
|
11
|
+
export type * from '@xterm/addon-webgl';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@battlefieldduck/xterm-svelte",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "A SvelteKit wrapper for Xterm.js, enabling terminal embedding in SvelteKit apps, managing Xterm addons, and providing seamless updates with the latest SvelteKit and Xterm.js versions.",
|
|
5
|
+
"keywords": ["svelte", "xterm", "xterm-js", "sveltekit", "xterm-svelte"],
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/BattlefieldDuck/xterm-svelte.git"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://xterm-svelte.pages.dev",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/BattlefieldDuck/xterm-svelte/issues"
|
|
13
|
+
},
|
|
14
|
+
"license": "MIT",
|
|
4
15
|
"scripts": {
|
|
5
16
|
"dev": "vite dev",
|
|
6
17
|
"build": "vite build && npm run package",
|
|
@@ -68,4 +79,4 @@
|
|
|
68
79
|
"@xterm/addon-webgl": "^0.18.0",
|
|
69
80
|
"@xterm/xterm": "^5.5.0"
|
|
70
81
|
}
|
|
71
|
-
}
|
|
82
|
+
}
|