-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix nuxt-js
window not defined
issue and modify group by first name…
… function (#41) * add missing countries * added group by name function * bug fixed for nuxt js window is not defined * update version and cdn link * update readme * fix duplicate group by
- Loading branch information
1 parent
684eaaa
commit 764d6fc
Showing
7 changed files
with
65 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
This package provide all country list with their flag emoji, flag svg and dial number code. | ||
|
||
## [Full Documentation](https://zin-kyaw-kyaw.gitbook.io/country/) | ||
## [Full Documentation](https://zin-kyaw-kyaw.gitbook.io/country-flags/) | ||
|
||
## Installation | ||
|
||
|
@@ -14,10 +14,37 @@ This package provide all country list with their flag emoji, flag svg and dial n | |
npm install country-list-with-dial-code-and-flag | ||
``` | ||
|
||
```ts | ||
import CountryList from 'country-list-with-dial-code-and-flag' | ||
|
||
CountryList.getAll() | ||
// Response => Array<Country> | ||
|
||
CountryList.findOneByCountryCode('MM') | ||
// Response => Country | ||
|
||
CountryList.findOneByDialCode('+95') | ||
// Response => Country | ||
|
||
CountryList.findByDialCode('+95') | ||
// Response => Array<Country> | ||
|
||
CountryList.findByKeyword('united') | ||
// Response => Array<Country> | ||
``` | ||
|
||
#### Via CDN | ||
|
||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/country-list-with-dial-code-and-flag/dist/main.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/country-list-with-dial-code-and-flag@latest/dist/main.js"></script> | ||
|
||
https://cdn.jsdelivr.net/npm/country-list-with-dial-code-and-flag@latest/dist/main.js | ||
``` | ||
|
||
##### With specific version number | ||
|
||
```bash | ||
https://cdn.jsdelivr.net/npm/[email protected]/dist/main.js | ||
``` | ||
|
||
##### Country Flag SVG (optional) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters