world-countries-capitals
Advanced tools
Comparing version 1.2.0 to 1.2.1
{ | ||
"name": "world-countries-capitals", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "A simple NPM package to get capitals, currency, native language etc. of all the countries in the world", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -157,3 +157,3 @@ # world-countries-capitals | ||
##### where app.js is the fie containing the function call. | ||
##### where app.js is the file containing the function call. | ||
@@ -191,2 +191,68 @@ --- | ||
# Examples | ||
## #1 | ||
```javascript | ||
const wcc = require('world-countries-capitals'); | ||
console.log(wcc.getRandomCountry()); | ||
``` | ||
## #2 | ||
```javascript | ||
const wcc = require('world-countries-capitals'); | ||
console.log(wcc.getNRandomCountriesData(3)); | ||
``` | ||
## #3 | ||
```javascript | ||
const wcc = require('world-countries-capitals'); | ||
console.log(wcc.getCountryDetailsByCapital('delhi)); | ||
``` | ||
#### in this example the parameter (capital), which has to be a string can be a written in uppercase/lowercase etc. the response will be the same. | ||
## #4 | ||
```javascript | ||
const wcc = require('world-countries-capitals'); | ||
console.log(wcc.getCountryDetailsByName('India)); | ||
``` | ||
#### in this example the parameter (countryName), which has to be a string can be a written in uppercase/lowercase etc. the response will be the same. | ||
## #5 | ||
```javascript | ||
const wcc = require('world-countries-capitals'); | ||
console.log(wcc.getCountiesByLanguage('hindi)); | ||
``` | ||
#### in this example the parameter (languageSpoken), which has to be a string can be a written in uppercase/lowercase etc. the response will be the same. | ||
## #6 | ||
```javascript | ||
const wcc = require('world-countries-capitals'); | ||
console.log(wcc.getAllCountryDetails()); | ||
``` | ||
## #7 | ||
```javascript | ||
const wcc = require('world-countries-capitals'); | ||
console.log(wcc.getAllCountries()); | ||
``` | ||
--- | ||
# Want to contribute? | ||
@@ -193,0 +259,0 @@ |
84882
281