
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@ac-dev/cities-service
Advanced tools
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 334 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.