
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
c3-areas-db
Advanced tools
Get a list of areas for c3 apps
$ npm install c3-areas-db --save
$ yarn add c3-areas-db
var c3areas = require('c3-areas-db');
// Get all areas
var areas = c3areas.getAreas();
// OR
// Get all areas by passing the state slug.
var areas = c3areas.getAreas('nigeria_lagos');
//Sample response
console.log(areas);
[ { name: 'Iganmu/Costain',
slug: 'nigeria_lagos_apapa_iganmu-costain',
areaSlug: 'iganmu-costain',
city: 'nigeria_lagos_apapa',
state: 'nigeria_lagos',
country: 'nigeria' },
{ name: 'Ijora',
slug: 'nigeria_lagos_apapa_ijora',
areaSlug: 'ijora',
city: 'nigeria_lagos_apapa',
state: 'nigeria_lagos',
country: 'nigeria' },
{ name: 'Epe',
slug: 'nigeria_lagos_epe_epe',
areaSlug: 'epe',
city: 'nigeria_lagos_epe',
state: 'nigeria_lagos',
country: 'nigeria' },
{ name: 'Outside Lagos',
slug: 'nigeria_lagos_apapa_outside-lagos',
areaSlug: 'outside-lagos',
city: 'nigeria_lagos_apapa',
state: 'nigeria_lagos',
country: 'nigeria' } ]
// Filter areas
// Get all areas in lagos, nigeria that contain the string 'ab'.
var filteredStates = c3areas.getAreas('nigeria_lagos', 'Suru');
//Sample response
console.log(filteredStates);
[ { name: 'Surulere/Iponri',
slug: 'nigeria_lagos_surulere_surulere-iponri',
areaSlug: 'surulere-iponri',
city: 'nigeria_lagos_surulere',
state: 'nigeria_lagos',
country: 'nigeria' } ]
Note: You can get the state slug from the state-cities-db npm module getStates() method.
// Get by slug
var area = c3areas.getBySlug("nigeria_lagos_surulere_surulere-iponri");
//Sample response
console.log(area);
{ name: 'Surulere/Iponri',
slug: 'nigeria_lagos_surulere_surulere-iponri',
areaSlug: 'surulere-iponri',
city: 'nigeria_lagos_surulere',
state: 'nigeria_lagos',
country: 'nigeria' }
FAQs
c3 areas library
We found that c3-areas-db 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.