Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
svenkatreddy committed Nov 18, 2016
0 parents commit a9b008b
Show file tree
Hide file tree
Showing 29 changed files with 11,972 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"env": {
"node": true,
"mocha": true
},
"globals": {
"expect": true
},
"rules": {

Error: Parse error on line 9:
...}, "rules": { // Ignore Rules
---------------------^
Expecting 'STRING', '}'
// Ignore Rules
"strict": 0,
"no-underscore-dangle": 0,
"no-mixed-requires": 0,

// Warnings
"no-debugger": 1,
"no-empty": 1,
"no-invalid-regexp": 1,
"no-warning-comments": 1,
"no-unused-expressions": 1,
"no-native-reassign": 1,
"no-fallthrough": 1,
"handle-callback-err": 1,
"camelcase": 1,

// Errors
"no-undef": 2,
"no-dupe-keys": 2,
"no-empty-class": 2,
"no-self-compare": 2,
"valid-typeof": 2,
"no-unused-vars": 2,
"handle-callback-err": 2,
"no-shadow-restricted-names": 2,
"radix": 2,
"no-new-require": 2,
"no-mixed-spaces-and-tabs": 2,

// stylistic errors
"new-cap": 2,
"no-spaced-func": 2,
"no-space-before-semi": 2,
"space-unary-word-ops": 2,
"quotes": [2, "single"]
}
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.idea
node_modules
npm-debug.log
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: node_js

install:
- npm install --quiet

136 changes: 136 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
# Changes

## v0.0.31

* fixed deleted countries appearing in countries[alpha2] instead of the current active country - thanks @silverwind

## v0.0.30

* Added emoji flags for countries - thanks @livedo

## v0.0.29

* Added or corrected Olympic codes for Kosovo, Federated States of Micronesia and British Virgin Islands - thanks @giedrius-timinskis

## v0.0.28

* Added notes on getting this package to work with webpack - thanks @luxflux and others in issue #57
* Added missing IOC code for South Sudan (SSD) - thanks @marchah

## v0.0.27

* Fixed Trinidad and Tobago IOC code (was TRI, now TTO) - thanks @mrmckeb

## v0.0.26

* Fixed typo and added tests to prevent it happening again (#56) - thanks @dbellavista

## v0.0.25

* Added previously deleted countries as "deleted" (thanks @mattvadrise in pull request #53)
* Changed name of "Sao Tome and Principe" (thanks @Laboratory)

## v0.0.24

* Added Kosovo as a "user assigned" entry (thanks @doapp-ryanp)

## v0.0.23

* Change license from AGPL3 to MIT (thanks @aduis)

## v0.0.22

* changed "Taiwan, Province Of China" to just "Taiwan" - thanks @azai-yahoo

## v0.0.21

* Added callingCountries - thanks @chemerisuk
* Updated docs to remove things that have been implemented from future additions list

## v0.0.20

* Fix to some language references - thanks @jussi-kalliokoski
* Added csv normalizing utility - so csv diffs should be easy in future
* Fix to East Timor and continent groupings - thanks #iancrowther
* Added currency symbols - thanks @CjS77

## v0.0.19

* Added Malay as a language for Malaysia (thanks to @lpsBetty)
* Removed redundant calling code +521 from Mexico (thanks to @spmarin)

## v0.0.18

* updated several languages, country names and added many regions - thanks to @iancrowther

## v0.0.17

* changed Latvian and Lithuanian currencies to EUR - thanks @gytisgreitai

## v0.0.16

* minor bug fix - thanks @alanshaw

## v0.0.15

* List all calling codes in an expected order - thanks @alanshaw

## v0.0.14

* Added languages - many thanks to Moritz Lawitschka (@lawitschka) for doing the initial work.

## v0.0.13

* @carlosleopoldo added 521 calling code to Mexico

## v0.0.12

* @bebrow contributed `lookup()`

## v0.0.11

* Corrected Georgia calling code (thanks niftylettuce)

## v0.0.10

* Corrected Grenada calling code (thanks niftylettuce)

## v0.0.9

* Added `country-data.regions`
* Added South Sudan
* Added proper accents to São Tomé and Príncipe

## v0.0.8

* Added IOC country codes (thanks fnogatz)

## v0.0.7

* Corrected several calling codes (GB, GA, GF, GG)

## v0.0.6

* Added link to libphonenumber
* Repo name change - to OpenBookPrices from LinkToBooks

## v0.0.5

* in currencies make the `decimals` an integer

## v0.0.4

* added country ISO status
* added country calling codes

## v0.0.3

* got rid of the `countries.alpha2.` style accessors.

## v0.0.2

* added currencies

## v0.0.1

* Initial release
21 changes: 21 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License

Copyright (c) 2010-2015 Google, Inc. http://angularjs.org

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
all:
node data/normalize_csv.js name < data/countries.csv > data/countries.csv.new
mv data/countries.csv.new data/countries.csv

node data/normalize_csv.js name < data/deleted_countries.csv > data/deleted_countries.csv.new
mv data/deleted_countries.csv.new data/deleted_countries.csv

node data/normalize_csv.js code < data/currencies.csv > data/currencies.csv.new
mv data/currencies.csv.new data/currencies.csv

node data/normalize_csv.js name < data/languages.csv > data/languages.csv.new
mv data/languages.csv.new data/languages.csv

node data/country_csv_to_json.js > data/countries.json
node data/currency_csv_to_json.js > data/currencies.json
node data/language_csv_to_json.js > data/languages.json
Loading

0 comments on commit a9b008b

Please sign in to comment.