is-language-code 4.0.6 → 4.0.12

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2010-2021 Roy Revelt and other contributors
3
+ Copyright (c) 2010-2022 Roy Revelt and other contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
package/README.md CHANGED
@@ -26,18 +26,17 @@
26
26
 
27
27
  ## Install
28
28
 
29
- This package is ESM only: Node 12+ is needed to use it and it must be imported instead of required:
29
+ The latest version is **ESM only**: Node 12+ is needed to use it and it must be `import`ed instead of `require`d. If your project is not on ESM yet and you want to use `require`, use an older version of this program, `3.1.0`.
30
30
 
31
31
  ```bash
32
32
  npm i is-language-code
33
33
  ```
34
34
 
35
- If you need a legacy version which works with `require`, use version 3.1.0
36
-
37
35
  ## Quick Take
38
36
 
39
37
  ```js
40
38
  import { strict as assert } from "assert";
39
+
41
40
  import { isLangCode } from "is-language-code";
42
41
 
43
42
  assert.deepEqual(isLangCode("de-419-DE"), {
@@ -53,7 +52,7 @@ assert.deepEqual(isLangCode("sr-Latn"), {
53
52
 
54
53
  ## Documentation
55
54
 
56
- Please [visit codsen.com](https://codsen.com/os/is-language-code/) for a full description of the API, examples and even a test <a href="https://codsen.com/os/is-language-code/play">playground</a>.
55
+ Please [visit codsen.com](https://codsen.com/os/is-language-code/) for a full description of the API and even a test <a href="https://codsen.com/os/is-language-code/play">playground</a>.
57
56
 
58
57
  ## Contributing
59
58
 
@@ -63,6 +62,6 @@ To report bugs or request features or assistance, [raise an issue](https://githu
63
62
 
64
63
  MIT License
65
64
 
66
- Copyright (c) 2010-2021 Roy Revelt and other contributors
65
+ Copyright (c) 2010-2022 Roy Revelt and other contributors
67
66
 
68
67
  <img src="https://codsen.com/images/png-codsen-ok.png" width="98" alt="ok" align="center"> <img src="https://codsen.com/images/png-codsen-1.png" width="148" alt="codsen" align="center"> <img src="https://codsen.com/images/png-codsen-star-small.png" width="32" alt="star" align="center">