New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

world-countries-capitals

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

world-countries-capitals - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc