Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@ac-dev/cities-service
Advanced tools
Changelog
Readme
To get started with this library, you need to install it and add it to your project.
Cities Service is available as an npm package.
# npm
npm install @ac-dev/cities-service
# yarn
yarn add @ac-dev/cities-service
Import single named import as follow:
import { Cities } from '@ac-dev/cities-service'
The code snippet below shows how to put into action cities-service
in some common use cases.
const cities = Cities.getCities()
asc
sort.const cities = Cities.getCities({
sort: {
mode: 'asc',
},
})
desc
sort.const cities = Cities.getCities({
sort: {
mode: 'desc',
},
})
alphabetical
sort.const cities = Cities.getCities({
sort: {
mode: 'alphabetical',
key: 'name',
},
})
const cities = Cities.getCities({
filters: {
country_code: 'IT',
},
})
const cities = Cities.getCities({
filters: {
country_code: ['IT', 'FR'],
},
})
const cities = Cities.getCities({
filters: {
country_code: 'IT',
state_code: '42', // Region iso2
},
})
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 cities
The npm package @ac-dev/cities-service receives a total of 222 weekly downloads. As such, @ac-dev/cities-service popularity was classified as not popular.
We found that @ac-dev/cities-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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.