@kklab/json2markdown 0.0.5 → 0.0.7
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 +9 -6
- package/package.json +8 -1
package/README.md
CHANGED
|
@@ -6,15 +6,15 @@ A simple JSON to Markdown converter that transforms JSON data into easily readab
|
|
|
6
6
|
|
|
7
7
|
### Using with ES Modules
|
|
8
8
|
|
|
9
|
-
Import the
|
|
9
|
+
Import the module and use it in your code:
|
|
10
10
|
|
|
11
11
|
```js
|
|
12
12
|
import { Converter } from '@kklab/json2markdown';
|
|
13
13
|
|
|
14
|
-
const
|
|
14
|
+
const output = Converter.toMarkdown({
|
|
15
15
|
'Hello, World!': 'It works!',
|
|
16
16
|
});
|
|
17
|
-
|
|
17
|
+
console.log(output);
|
|
18
18
|
// Output:
|
|
19
19
|
// # Hello, World!\n\nIt works!\n\n
|
|
20
20
|
```
|
|
@@ -23,13 +23,16 @@ const markdown = Converter.toMarkdown({
|
|
|
23
23
|
|
|
24
24
|
Include the UMD script in your HTML file and use it:
|
|
25
25
|
|
|
26
|
-
```
|
|
27
|
-
|
|
26
|
+
```html
|
|
27
|
+
<script src="https://unpkg.com/@kklab/json2markdown/dist/index.umd.js"></script>
|
|
28
|
+
<script>
|
|
29
|
+
const output = window.JSON2MD.Converter.toMarkdown({
|
|
28
30
|
'Hello, World!': 'It works!',
|
|
29
31
|
});
|
|
30
|
-
|
|
32
|
+
console.log(JSON.stringify(output));
|
|
31
33
|
// Output:
|
|
32
34
|
// # Hello, World!\n\nIt works!\n\n
|
|
35
|
+
</script>
|
|
33
36
|
```
|
|
34
37
|
|
|
35
38
|
## Development
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kklab/json2markdown",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.7",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
"lint": "eslint .",
|
|
12
12
|
"test": "vitest"
|
|
13
13
|
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"@kklab/stryle": "^0.0.1"
|
|
16
|
+
},
|
|
14
17
|
"devDependencies": {
|
|
15
18
|
"@eslint/js": "^9.11.0",
|
|
16
19
|
"@types/eslint__js": "^8.42.3",
|
|
@@ -34,6 +37,10 @@
|
|
|
34
37
|
"require": "./dist/index.umd.js"
|
|
35
38
|
}
|
|
36
39
|
},
|
|
40
|
+
"repository": {
|
|
41
|
+
"type": "git",
|
|
42
|
+
"url": "https://gitlab.com/kklab-com/vd/0-1-lab/chemi/json2markdown"
|
|
43
|
+
},
|
|
37
44
|
"keywords": [
|
|
38
45
|
"json",
|
|
39
46
|
"markdown"
|