Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sun-country

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sun-country

Sun Country is the package that helps you to get country name and dialing code by the country ISO 3166-1 Alpha-2 code.

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Country

Build Status Total Downloads Version License

Sun Country is the package that helps you to get country name and dialing code by the country ISO 3166-1 Alpha-2 code.

Installation Process

Node
npm install --save sun-country
Browser
<script src="/path/to/country.min.js"></script>

Basic Uses

Get all countries name and dialing code
var country = new Country;
country.get();
Get a country name and dialing code
var country = new Country;
country.get('BD');
Get multiple countries name and dialing code
var country = new Country;
country.get(['BD', 'US']);
Get a country name
var country = new Country;
country.getName('BD');
Get a country dialing code
var country = new Country;
country.getDialingCode('BD');

Build

npm run build

Test

Run tests
npm test
Run tests in watch mode
npm test:watch

License

This package is licensed under the MIT License

Keywords

FAQs

Package last updated on 10 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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