@oddmash/kowrap 0.3.0 → 0.3.1
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 +20 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,26 @@
|
|
|
6
6
|
|
|
7
7
|
[체험하기](https://oddmash.github.io/kowrap/#playground) | [문서](https://oddmash.github.io/kowrap/docs/) | [npm](https://www.npmjs.com/package/@oddmash/kowrap)
|
|
8
8
|
|
|
9
|
-
[](https://oddmash.github.io/kowrap/#playground)
|
|
10
|
+
|
|
11
|
+
## HTML에서 바로 실행하기
|
|
12
|
+
|
|
13
|
+
아래 코드를 `index.html`로 저장하고 인터넷에 연결된 브라우저에서 열면 jsDelivr가 Kowrap `0.3.0`을 불러옵니다.
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<!doctype html>
|
|
17
|
+
<html lang="ko">
|
|
18
|
+
<meta charset="utf-8">
|
|
19
|
+
<title>Kowrap 예제</title>
|
|
20
|
+
<p id="title" style="max-width: 220px; font-size: 24px">팀의 모든 문서를 한곳에서 관리하세요</p>
|
|
21
|
+
<script type="module">
|
|
22
|
+
import { mountKowrap } from 'https://cdn.jsdelivr.net/npm/@oddmash/kowrap@0.3.0/dist/dom/index.js/+esm';
|
|
23
|
+
|
|
24
|
+
const title = document.getElementById('title');
|
|
25
|
+
mountKowrap(title, { text: title.textContent });
|
|
26
|
+
</script>
|
|
27
|
+
</html>
|
|
28
|
+
```
|
|
10
29
|
|
|
11
30
|
## 특징
|
|
12
31
|
|