@lexho111/plainblog 0.0.4 → 0.0.5

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 +9 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  ```
2
2
  import { Blog, Article } from "@lexho111/plainblog";
3
3
 
4
- const blog = new Blog();
4
+ const bl og = new Blog();
5
5
  blog.setTitle("My Blog");
6
6
  blog.setStyle("body { font-family: Arial, sans-serif; } h1 { color: #333; }");
7
7
 
@@ -15,3 +15,11 @@ const article2 = new Article(
15
15
  blog.addArticle(article2);
16
16
  blog.startServer(8080);
17
17
  ```
18
+
19
+ ```
20
+ # save your blog to 'myblog.json'
21
+ await blog.save("myblog.json");
22
+
23
+ # load data from 'myblog.json'
24
+ await blog.load("myblog.json");
25
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lexho111/plainblog",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "A tool for creating and serving a minimalist, single-page blog.",
5
5
  "main": "index.js",
6
6
  "type": "module",