Skip to content

Commit efeb067

Browse files
committed
Update description for CDN download
1 parent c190750 commit efeb067

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,20 @@ import {AbstractPhoneValidation} from 'javascript-phone-validation'
3030
AbstractPhoneValidation.configure('API_KEY')
3131
```
3232

33+
### Browser, from the CDN
34+
35+
You can have the browser download the library from its closest location through jsDeliver CDN:
36+
37+
```js
38+
<script src="https://cdn.jsdelivr.net/npm/@abstractapi/javascript-core@latest/dist/javascript-core.js"></script>
39+
<script src="https://cdn.jsdelivr.net/npm/@abstractapi/javascript-phone-validation@latest/dist/javascript-phone-validation.js"></script>
40+
<script>
41+
AbstractEmailValidation.configure('API_KEY');
42+
43+
// use the library
44+
</script>
45+
```
46+
3347
### Browser, from the built file
3448

3549
You can build the library yourself, or get the already built file from the `dist` directory and load it:

0 commit comments

Comments
 (0)