Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 2 #255

Draft
wants to merge 88 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
1b29c09
refactor: Rename src to dist
kennarddh Aug 7, 2023
82c3dc5
chore: Gitignore
kennarddh Aug 7, 2023
0abab51
chore: Setup typescript
kennarddh Aug 7, 2023
d6280d4
docs: Changelog
kennarddh Aug 7, 2023
69b9e31
chore: Install node-html-parser
kennarddh Aug 7, 2023
2837f94
feat(types): ISO3166
kennarddh Aug 7, 2023
b678954
feat(types): Empty interface
kennarddh Aug 7, 2023
088f785
feat(types): Average height
kennarddh Aug 7, 2023
3f0d9cd
refactor(types): Move to file
kennarddh Aug 7, 2023
362d897
feat(types): More data files
kennarddh Aug 7, 2023
df7a40e
feat(types): Export average height
kennarddh Aug 7, 2023
357a7f7
feat(types): United nations member
kennarddh Aug 7, 2023
2659717
feat(types): GS1 code
kennarddh Aug 7, 2023
d7c4891
feat(types): Calling code
kennarddh Aug 7, 2023
7b8195c
feat(types): Capital city
kennarddh Aug 7, 2023
8b99fad
feat(types): Cities
kennarddh Aug 7, 2023
1773715
feat(types): Continent
kennarddh Aug 7, 2023
e823c83
feat(types): Coastline
kennarddh Aug 7, 2023
294ba9c
feat(types): Area
kennarddh Aug 7, 2023
1a5ef95
feat(types): ISO4217
kennarddh Aug 7, 2023
22c54c1
feat(types): Currency symbol
kennarddh Aug 7, 2023
d1ac522
feat(types): Currency name
kennarddh Aug 7, 2023
dc3abd5
feat(types): ccTLD
kennarddh Aug 7, 2023
4db6671
feat(types): Average elevation
kennarddh Aug 7, 2023
40108b8
feat(types): Flag
kennarddh Aug 7, 2023
da8fe0b
feat(types): Government
kennarddh Aug 7, 2023
79558e1
feat(types): Independence
kennarddh Aug 7, 2023
ec59be3
feat(types): Landlocked
kennarddh Aug 7, 2023
e6670bd
feat(types): Languages
kennarddh Aug 7, 2023
b3b6776
feat(types): Life expectancy
kennarddh Aug 7, 2023
eca68c1
feat(types): National dishes
kennarddh Aug 7, 2023
7652993
feat(types): National symbols
kennarddh Aug 7, 2023
c1adf04
feat(types): Population density
kennarddh Aug 7, 2023
b1bfc76
feat(types): Population
kennarddh Aug 7, 2023
3ec00ba
feat(types): Regions
kennarddh Aug 7, 2023
fc6befb
feat(types): Religion
kennarddh Aug 7, 2023
d9c593a
feat(types): Yearly average temperature
kennarddh Aug 7, 2023
c6cfe84
feat(types): National sports
kennarddh Aug 7, 2023
a83529f
feat(data): Scrap iso 3166
kennarddh Aug 8, 2023
f3610af
refactor: Change comment
kennarddh Aug 9, 2023
3684ad3
refactor: Enum string value
kennarddh Aug 9, 2023
d4cacb0
feat(utils): Month name to index
kennarddh Aug 9, 2023
8a88d48
feat(data): Scrap united nations member
kennarddh Aug 9, 2023
4372f39
feat(utils): Date string to unix epoch
kennarddh Aug 9, 2023
b3bdc13
feat(data): Use date string to unix epoch util
kennarddh Aug 9, 2023
5841d3c
feat(data): Return data from united nations member
kennarddh Aug 9, 2023
b1cfa40
feat(data): ISO3166 aggregate data
kennarddh Aug 9, 2023
6bb2508
feat(utils): Parse wikipedia float
kennarddh Aug 9, 2023
ea26f85
feat(constants): HTML entities
kennarddh Aug 9, 2023
35dc26f
feat(data): Scrap average height
kennarddh Aug 9, 2023
ee56315
feat(data): Average height null instead of nan
kennarddh Aug 9, 2023
bd5a81f
fix: Ts casing error
kennarddh Aug 14, 2023
6b410a4
feat(utils): Countries name from data
kennarddh Aug 14, 2023
4ac2324
feat(data): Change data structure
kennarddh Aug 14, 2023
fc009e1
feat(utils): Normalize data
kennarddh Aug 14, 2023
fd1cbc8
feat(data): Return data
kennarddh Aug 14, 2023
f534222
feat(utils): Wait
kennarddh Aug 14, 2023
65c43d0
feat: Delay between request
kennarddh Aug 14, 2023
433fff7
refactor: Rename dist to old
kennarddh Aug 14, 2023
504136a
feat(utils): Data writer
kennarddh Aug 14, 2023
6fe194e
feat: Write data
kennarddh Aug 14, 2023
3bee70b
feat: Resolve wikipedia redirect issue
kennarddh Aug 15, 2023
69d32ee
feat: Flag to enable or disable wikipedia redirect cache
kennarddh Aug 15, 2023
de05993
feat(utils): Ensure directory exist
kennarddh Aug 15, 2023
dba7a1a
feat(utils): Ensure directory exist and empty
kennarddh Aug 15, 2023
0fc95c4
refactor: Use ensure dir utils
kennarddh Aug 15, 2023
5527aec
refactor: Process data util
kennarddh Aug 15, 2023
0f8e3db
refactor: Remove wikipedia final redirect console log
kennarddh Aug 15, 2023
77f297e
feat(data): Countries name
kennarddh Aug 15, 2023
513b1d6
refactor: Add scrap return type
kennarddh Aug 15, 2023
f34df90
feat(types): GS1 code can have multiple ranges
kennarddh Aug 15, 2023
e503672
feat(constants): Wikipedia special unicode
kennarddh Aug 17, 2023
815120a
feat(utils): Is node wikipedia flag icon
kennarddh Aug 17, 2023
dae8967
feat(data): GS1 code
kennarddh Aug 17, 2023
c876558
fix: Inconsistent country name
kennarddh Aug 17, 2023
1f7a34a
feat: Partial calling codes
kennarddh Aug 22, 2023
27777e0
feat(utils): Normalize table
kennarddh Aug 22, 2023
ccf1f51
feat(data): Capital cities
kennarddh Aug 22, 2023
ae339f7
refactor: Remove unused imports
kennarddh Aug 22, 2023
de8655c
feat(types): Country code tld
kennarddh Aug 22, 2023
70d7e05
feat: Raw calling codes
kennarddh Aug 31, 2023
8d55def
fix: Info message instead of error when wikipedia redirect cache is m…
kennarddh Sep 4, 2023
9aecaf5
feat(data): Average elevation
kennarddh Sep 4, 2023
88c7a85
refactor(data): Rename yearly average temperature to average yearly t…
kennarddh Sep 4, 2023
69ecfa8
feat: Wikipedia special unicode minus sign
kennarddh Sep 4, 2023
ffa5c47
feat: Wikipedia special unicode minus sign replaced by html entity
kennarddh Sep 4, 2023
3e27050
feat(data): Average yearly temperature
kennarddh Sep 4, 2023
1c0c504
feat(data): National sports
kennarddh Sep 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
134 changes: 132 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,132 @@
web/*
npm-debug.log*
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

temp
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"tabWidth": 4,
"singleQuote": true,
"useTabs": true,
"jsxSingleQuote": true,
"semi": false,
"arrowParens": "avoid",
"endOfLine": "lf"
}
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Change Log

All notable changes to this project will be documented in this file. Starting from V2.

The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [UnreleasedV2] - dd/mm/yyyy

### Added

### Fixed

### Changed

### Removed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading