From 407517acad05048d9d0aee26d95b2453c064f094 Mon Sep 17 00:00:00 2001 From: Binij Shrestha <93417120+thebinij@users.noreply.github.com> Date: Fri, 17 Feb 2023 20:08:05 +0545 Subject: [PATCH] Update README.md --- README.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1bffe7e..46df2c9 100644 --- a/README.md +++ b/README.md @@ -14,12 +14,21 @@ yarn add date-convert-ad-bs ## Usage -How to Use +How to Use +#### ES6 Syntax ```javascript - +``` + +### CommonJS Syntax +```javascript + const converter = require('date-convert-ad-bs'); + + console.log(converter.ADTOBS(2023,5,29)); // ~ 2080-03-14 + console.log(converter.BSTOAD(2080,2,15)); // ~ 2023-06-29 ```