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

@npmtuanmap2024/commodi-neque-veritatis

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@npmtuanmap2024/commodi-neque-veritatis

Get the OSM relation id from a country code.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@npmtuanmap2024/commodi-neque-veritatis

Travis CI Codecov npm npm version npm dependencies npm dev dependencies

🔎 Get the OpenStreetMap relation id from a country code.

Install

$ npm install --save @npmtuanmap2024/commodi-neque-veritatis

Usage

const osmCountries = require('@npmtuanmap2024/commodi-neque-veritatis');

osmCountries.get('ITA');
// => '365331'

osmCountries.get('USA');
// => '148838'

API

get(code) ⇒ string

Converts an alpha-3 iso 3166-1 code to its corrispective relation id on OSM.

Returns: string - OSM relation id of the given country.

ParamTypeDescription
codestringAlpha-3 iso 3166-1 country code.

map() ⇒ object

Returns a map from alpha-3 iso 3166-1 codes to theyr corrispective relation ids on OSM.

Returns: object - Map of all OSM relation ids.

Authors

  • Simone Primarosa - simonepri

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Keywords

FAQs

Package last updated on 02 Apr 2024

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