jis 2.2.0-preview.1 → 2.2.0
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 +2 -0
- package/README.md +24 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -36,6 +36,30 @@ const jis = require('jis')
|
|
|
36
36
|
import jis from 'jis'
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
+
#### On browser
|
|
40
|
+
|
|
41
|
+
```html
|
|
42
|
+
<script src="https://unpkg.com/jis@latest"></script>
|
|
43
|
+
|
|
44
|
+
<!-- or
|
|
45
|
+
<script src="https://cdn.jsdelivr.net/npm/jis@latest"></script>
|
|
46
|
+
-->
|
|
47
|
+
|
|
48
|
+
<script>
|
|
49
|
+
// jis is exposed globally as window.jis
|
|
50
|
+
var is = jis.types.is;
|
|
51
|
+
console.log(is(new Date(), 'Date'))
|
|
52
|
+
</script>
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
You can also pin a specific version (≥2.2.0-preview.1), e.g.:
|
|
56
|
+
|
|
57
|
+
- jis@preview
|
|
58
|
+
- jis@rc
|
|
59
|
+
- jis@2.2.0-preview.1
|
|
60
|
+
- jis@2.2.0-rc.1
|
|
61
|
+
- jis@2.2.0
|
|
62
|
+
|
|
39
63
|
### ⚠️ Backward compatibility
|
|
40
64
|
|
|
41
65
|
In `v2.x`, legacy access via `jis.is` and `jis.$*` **still works for compatibility reasons**, but it is **deprecated** and will be removed in `v3.0.0`.
|