Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@ac-dev/countries-service
Advanced tools
To get started with this library, you need to install it and add it to your project.
Countries States Cities Service is available as an npm package.
# npm
npm install @ac-dev/countries-service
# yarn
yarn add @ac-dev/countries-service
Import single named import as follow:
import { Countries } from '@ac-dev/countries-service'
The code snippet below shows how to put into action countries-service
in some common use cases.
const countries = Countries.getCountries()
asc
sort.const countries = Countries.getCountries({
sort: {
mode: 'asc',
},
})
desc
sort.const countries = Countries.getCountries({
sort: {
mode: 'desc',
},
})
const countries = Countries.getCountries({
sort: {
mode: 'alphabetical',
key: 'iso2',
},
})
const countries = Countries.getCountries({ locale: 'it' })
const countries = Countries.getCountries({ filters: { iso2: 'US' } })
const countries = Countries.getCountries({
filters: { iso2: 'IT' },
locale: 'it',
})
const countries = Countries.getCountries({ filters: { iso3: 'ITA' } })
Any contribution is appreciated. You can get started with the steps below:
Fork this repository (learn how to do this here).
Clone the forked repository.
Make your changes and create a pull request (learn how to do this).
I will attend to your pull request and provide some feedback.
Ping me on Twitter
This repository is licensed under the MIT License.
Don't be shy! 😜
FAQs
Get the World's countries
The npm package @ac-dev/countries-service receives a total of 140 weekly downloads. As such, @ac-dev/countries-service popularity was classified as not popular.
We found that @ac-dev/countries-service demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.