From 49e82e812812ba75175d98173379d2e416e17b8f Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Mon, 14 Oct 2019 09:47:28 +0200 Subject: Add getPost --- docs/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/README.md b/docs/README.md index 4b82b43..ebfdaa0 100644 --- a/docs/README.md +++ b/docs/README.md @@ -28,8 +28,9 @@ import Kronikarz from "kronikarz"; const k = new Kronikarz("path/to/posts"); ``` -At this point only one method is available. +At this point only two methods are available. ```js -k.getPosts(); +k.getPosts(); // returns array of all posts +k.getPost("2019", "11", "20", "title"); // returns post from path `2019/11/20/title.md` ``` -- cgit 1.4.1