godown 2.1.0 → 2.1.2

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.
Files changed (2) hide show
  1. package/README.md +43 -35
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -1,35 +1,43 @@
1
- # Godown
2
-
3
- The **simple, sylized, semantic components** for standard HTML and other frameworks.
4
-
5
- ## Install
6
-
7
- ```sh
8
- npm i godown
9
- ```
10
-
11
- ## Useages
12
-
13
- html
14
-
15
- ```html
16
- <alert-item title="Alert"></alert-item>
17
- ```
18
-
19
- js
20
-
21
- ```js
22
- import { AlertItem } from "godown";
23
- const item = new AlertItem();
24
- item.title = "Alert";
25
- document.body.appendChild(item);
26
- ```
27
-
28
- react
29
-
30
- ```jsx
31
- import { AlertItem } from "godown/react";
32
- export default function () {
33
- return <AlertItem title="Alert" />;
34
- }
35
- ```
1
+ # Godown
2
+
3
+ The **simple, stylized, semantic components** for standard HTML and other frameworks.
4
+
5
+ ## Install
6
+
7
+ ```sh
8
+ npm i godown
9
+ ```
10
+
11
+ ## Usages
12
+
13
+ ### HTML
14
+
15
+ ```html
16
+ <alert-item title="Alert"></alert-item>
17
+ ```
18
+
19
+ ### JS
20
+
21
+ ```js
22
+ import { AlertItem } from "godown";
23
+
24
+ const item = new AlertItem();
25
+ item.title = "Alert";
26
+ document.body.appendChild(item);
27
+ ```
28
+
29
+ deno
30
+
31
+ ```ts
32
+ import { AlertItem } from "npm:godown";
33
+ ```
34
+
35
+ ### React
36
+
37
+ ```jsx
38
+ import { AlertItem } from "godown/react";
39
+
40
+ export default function () {
41
+ return <AlertItem title="Alert" />;
42
+ }
43
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "godown",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "main": "./index.js",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -47,6 +47,7 @@
47
47
  "watch": "tsc --watch",
48
48
  "build": "tsc && node ./scripts/build.js",
49
49
  "roll": "rollup -c",
50
+ "readme": "node ./scripts/readme.js",
50
51
  "fmt": "prettier --write ./src",
51
52
  "lint": "eslint --ext .ts ./src"
52
53
  }