Skip to content

Commit

Permalink
Add deno usage docs (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
subeshb1 authored Jun 7, 2020
1 parent 576ed31 commit 0c66a1d
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ A small Javascript/Typescript Library to convert English Date to Nepali and Vice
## Installation

CDN:

```html
<script src="https://cdn.jsdelivr.net/npm/nepali-date-converter/dist/nepali-date-converter.umd.js"></script>
```
Expand All @@ -18,10 +17,22 @@ Node JS:
npm i nepali-date-converter
```

```js
import NepaliDate from 'nepali-date-converter'
// or

const NepaliDate = require('nepali-date-converter');
```

Deno:

```js
import NepaliDate from 'https://cdn.jsdelivr.net/npm/nepali-date-converter/dist/nepali-date-converter.es5.js'
```

## Basic Usage

```js
import NepaliDate from 'nepali-date-converter'
// NepaliDate (year,month,date)
let date1 = new NepaliDate(2051, 05, 24)
// Javascript Date object
Expand Down

0 comments on commit 0c66a1d

Please sign in to comment.