Skip to content

Commit

Permalink
Rename project
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Aleksandrov committed Jan 20, 2019
1 parent 0932105 commit 6d89903
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Countries
# Countries JSON

Installation:

Expand All @@ -10,7 +10,7 @@ npm install countries --save
Usage example:

```javascript
import countriesData from 'countries'; // warning: files size with all locales ~3Mb
import countriesData from 'countries-json'; // warning: files size with all locales ~3Mb

function getLang () { // browser
if (navigator.languages !== undefined && navigator.languages.length) {
Expand All @@ -34,7 +34,7 @@ function getLang () { // browser
return navigator.userLanguage || navigator.language || navigator.browserLanguage || navigator.systemLanguage;
}

let countries = require('countries/data/' + getLang()); // load countries only for single locale
let countries = require('countries-json/data/' + getLang()); // load countries only for single locale

console.log( countries );

Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "countries",
"name": "countries-json",
"version": "1.0.0",
"description": "List of all countries with names and ISO 3166-1 codes in all languages in JSON.",
"main": "index.json",
Expand All @@ -8,10 +8,10 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/koalex/countries.git"
"url": "git+https://github.com/koalex/countries-json.git"
},
"bugs": {
"url": "https://github.com/koalex/countries/issues"
"url": "https://github.com/koalex/countries-json/issues"
},
"keywords": [
"countries",
Expand All @@ -26,5 +26,5 @@
}
],
"license": "SEE LICENSE IN LICENSE.md",
"homepage": "https://github.com/koalex/countries#readme"
"homepage": "https://github.com/koalex/countries-json#readme"
}

0 comments on commit 6d89903

Please sign in to comment.