Skip to content

Commit

Permalink
feat(es6): esm build support
Browse files Browse the repository at this point in the history
  • Loading branch information
Raj Nandan Sharma authored and Raj Nandan Sharma committed May 24, 2024
1 parent 6258a6f commit c2cfc57
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ It uses client-server design pattern to communicate between parent and child win
```html
<script src="https://cdn.jsdelivr.net/gh/rajnandan1/ruto/dist/ruto.min.js"></script>
```
### ES6

```bash
npm i @rajnandan1/ruto
```


## API

Expand Down
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "ruto",
"name": "@rajnandan1/ruto",
"version": "1.0.0",
"description": "Ruto is a lightweight(4KB), fast and easy-to-use JS library that streamlines the communication between parent and child window(iframe/popup).",
"type": "module",
Expand All @@ -16,7 +16,15 @@
"build": "rollup --bundleConfigAsCjs -c rollup.config.js",
"prettify": "prettier --write ."
},
"keywords": ["ruto", "postMessage", "iframe", "popup", "promise", "rajnandan", "library"],
"keywords": [
"ruto",
"postMessage",
"iframe",
"popup",
"promise",
"rajnandan",
"library"
],
"author": "Raj Nandan Sharma <rajnandan1@gmail.com> (https://www.rajnandan.com)",
"license": "MIT",
"devDependencies": {
Expand Down

0 comments on commit c2cfc57

Please sign in to comment.