@shgysk8zer0/polyfills 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/README.md +75 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,2 +1,77 @@
|
|
|
1
1
|
# polyfills
|
|
2
2
|
A set of JavaScript polyfills
|
|
3
|
+
|
|
4
|
+
[](https://github.com/shgysk8zer0/polyfills/actions/workflows/codeql-analysis.yml)
|
|
5
|
+

|
|
6
|
+

|
|
7
|
+
|
|
8
|
+
[](https://github.com/shgysk8zer0/polyfills/blob/master/LICENSE)
|
|
9
|
+
[](https://github.com/shgysk8zer0/polyfills/commits/master)
|
|
10
|
+
[](https://github.com/shgysk8zer0/polyfills/releases)
|
|
11
|
+
[](https://github.com/sponsors/shgysk8zer0)
|
|
12
|
+
|
|
13
|
+
[](https://www.npmjs.com/package/@shgysk8zer0/polyfills)
|
|
14
|
+
<!--  -->
|
|
15
|
+

|
|
16
|
+
[](https://www.npmjs.com/package/@shgysk8zer0/polyfills)
|
|
17
|
+
|
|
18
|
+
[](https://github.com/shgysk8zer0)
|
|
19
|
+

|
|
20
|
+

|
|
21
|
+
[](https://twitter.com/shgysk8zer0)
|
|
22
|
+
|
|
23
|
+
[](https://liberapay.com/shgysk8zer0/donate "Donate using Liberapay")
|
|
24
|
+
- - -
|
|
25
|
+
|
|
26
|
+
- [Code of Conduct](./.github/CODE_OF_CONDUCT.md)
|
|
27
|
+
- [Contributing](./.github/CONTRIBUTING.md)
|
|
28
|
+
<!-- - [Security Policy](./.github/SECURITY.md) -->
|
|
29
|
+
|
|
30
|
+
## Installation / Usage
|
|
31
|
+
This may be used via [unpkg.com](https://unpkg.com/browse/@shgysk8zer0/polyfills/),
|
|
32
|
+
as an [npm package](https://www.npmjs.com/package/@shgysk8zer0/polyfills), or
|
|
33
|
+
as a submodule.
|
|
34
|
+
|
|
35
|
+
Simply adding the `<script>`, `import`, or `require()` is all you need to do.
|
|
36
|
+
|
|
37
|
+
### From CDN
|
|
38
|
+
|
|
39
|
+
### The simplest
|
|
40
|
+
|
|
41
|
+
```html
|
|
42
|
+
<script src="https://unpkg.com/@shgysk8zer0/polyfills/all.min.js" referrerpolicy="no-referrer" crossorigin="anonymous" defer=""></script>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### With version and SRI
|
|
46
|
+
|
|
47
|
+
```html
|
|
48
|
+
<script src="https://unpkg.com/@shgysk8zer0/polyfills@0.0.4/all.min.js" referrerpolicy="no-referrer" crossorigin="anonymous" integrity="sha384-xoY6kDRPTvbDfGdGA3S6Ercudev5mWGBWZIErLB38f7TeN6hV7zof6WBpzMdx/z0" fetchpriority="high" defer=""></script>
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Using specific polyfills via `<script>`
|
|
52
|
+
|
|
53
|
+
**Note** that some polyfills require `type="module"`
|
|
54
|
+
|
|
55
|
+
```html
|
|
56
|
+
<script src="https://unpkg.com/@shgysk8zer0/polyfills/math.js" referrerpolicy="no-referrer" crossorigin="anonymous" defer=""></script>
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Selecting specific polyfills as `import`s
|
|
60
|
+
|
|
61
|
+
```js
|
|
62
|
+
import 'https://unpkg.com/@shgysk8zer0/polyfills/abort.js';
|
|
63
|
+
import 'https://unpkg.com/@shgysk8zer0/polyfills/elementInternals.js';
|
|
64
|
+
/* ... */
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## As an npm package
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
npm i @shgysk8zer0/polyfills
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## As a git submodule
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
git submodule add https://github.com/shgysk8zer0/polyfills.git :path
|
|
77
|
+
```
|