Skip to content

Commit

Permalink
finalize docs
Browse files Browse the repository at this point in the history
  • Loading branch information
0wain committed Nov 22, 2023
1 parent 9dad476 commit 7375f3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ For example, you could use this package to easily send a POST request when a use
Install the package with the following command:

```
npm i <notyetsetup>
npm i alpinejs-requests
```

Import and register the package:

```
import Alpine from 'alpinejs'
import requests from '@owainjones74/alpinejs-requests'
import requests from 'alpinejs-requests'
Alpine.plugin(requests)
Expand All @@ -33,7 +33,7 @@ Alpine.start()

```
<html>
<script src="<notyetsetup>" defer></script>
<script src="https://cdn.jsdelivr.net/npm/@owainjones/alpinejs-requests@1.x.x/dist/plugin.min.js" defer></script>
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
</html>
```
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@owainjones/alpinejs-requests",
"version": "1.0.0",
"name": "alpinejs-requests",
"version": "1.0.2",
"description": "Inline HTTP requests made simple for Alpine.js",
"main": "dist/plugin.cjs.js",
"module": "dist/plugin.esm.js",
Expand Down

0 comments on commit 7375f3c

Please sign in to comment.