open-index/open-npm huggingface dataset:
npm package: @immortal-code/country-list
Description: List of contries data with alpha-2, alpha-3 and number codes
Author: NirvanaFlame
Latest version: 0.0.1

# @immortal-code/country-list

[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://opensource.org/licenses/MIT)
[![Known Vulnerabilities](https://snyk.io/test/github/nirvana-flame/countries-code/badge.svg?targetFile=package.json)](https://snyk.io/test/github/nirvana-flame/countries-code?targetFile=package.json)
[![npm](https://img.shields.io/badge/npm-0\.0\.1-yellow.svg)](https://www.npmjs.com/package/countries-code)

Data fetched from https://unstats.un.org/unsd/methodology/m49/ (UN)
and from Wikipedia

List of countries:
With country object containing Alpha-2 code (e.g.`IE`), Alpha-3 code (e.g. `IRL`), and Number codes.

## Example

```js
const countriesQuery = require("@immortal-code/country-list");

console.log(countriesQuery.allCountriesList());
/*
[....,
 {
    "country_name_en": "Ireland",
    "country_name_fr": "Irlande (l')",
    "alpha2": "IE",
    "alpha3": "IRL",
    "number": "372"
},...] 
*/
console.log(countriesQuery.getAllAlphaTwoCodes());
// ["AF",.....]
console.log(countriesQuery.getAllAlphaThreeCodes());
// ["AFG",.....]

// Use getCountry to get country name by alpha code-2 or 3
console.log(countriesQuery.getCountry("IE"));
// "Ireland"
console.log(countriesQuery.getCountry("IRL"));
// "Ireland"

// Use convertAlphaCode to convert alpha code-2 to 3 or vice versa
console.log(countriesQuery.convertAlphaCode("IE"));
// "IRL"
console.log(countriesQuery.convertAlphaCode("IRL"));
// "IE"
```

```js
import { countriesQuery } from "@immortal-code/country-list";

console.log(countriesQuery.allCountriesList());
/*
[....,
 {
    "country_name_en": "Ireland",
    "country_name_fr": "Irlande (l')",
    "alpha2": "IE",
    "alpha3": "IRL",
    "number": "372"
},...] 
*/
console.log(countriesQuery.getAllAlphaTwoCodes());
// ["AF",.....]
console.log(countriesQuery.getAllAlphaThreeCodes());
// ["AFG",.....]

// Use getCountry to get country name by alpha code-2 or 3
console.log(countriesQuery.getCountry("IE"));
// "Ireland"
console.log(countriesQuery.getCountry("IRL"));
// "Ireland"

// Use convertAlphaCode to convert alpha code-2 to 3 or vice versa
console.log(countriesQuery.convertAlphaCode("IE"));
// "IRL"
console.log(countriesQuery.convertAlphaCode("IRL"));
// "IE"
```

# License

MIT

:incoming_envelope: :four_leaf_clover:
npm package: @immortaldev/country-list
Description: List of contries data with alpha-2, alpha-3 and number codes
Author: NirvanaFlame
Latest version: 0.0.1

# @immortaldev/country-list

[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://opensource.org/licenses/MIT)
[![Known Vulnerabilities](https://snyk.io/test/github/nirvana-flame/countries-code/badge.svg?targetFile=package.json)](https://snyk.io/test/github/nirvana-flame/countries-code?targetFile=package.json)
[![npm](https://img.shields.io/badge/npm-0\.0\.1-yellow.svg)](https://www.npmjs.com/package/countries-code)

Data fetched from https://unstats.un.org/unsd/methodology/m49/ (UN)
and from Wikipedia

List of countries:
With country object containing Alpha-2 code (e.g.`IE`), Alpha-3 code (e.g. `IRL`), and Number codes.

## Example

```js
const countriesQuery = require("@immortaldev/country-list");

console.log(countriesQuery.allCountriesList());
/*
[....,
 {
    "country_name_en": "Ireland",
    "country_name_fr": "Irlande (l')",
    "alpha2": "IE",
    "alpha3": "IRL",
    "number": "372"
},...] 
*/
console.log(countriesQuery.getAllAlphaTwoCodes());
// ["AF",.....]
console.log(countriesQuery.getAllAlphaThreeCodes());
// ["AFG",.....]

// Use getCountry to get country name by alpha code-2 or 3
console.log(countriesQuery.getCountry("IE"));
// "Ireland"
console.log(countriesQuery.getCountry("IRL"));
// "Ireland"

// Use convertAlphaCode to convert alpha code-2 to 3 or vice versa
console.log(countriesQuery.convertAlphaCode("IE"));
// "IRL"
console.log(countriesQuery.convertAlphaCode("IRL"));
// "IE"
```

```js
import { countriesQuery } from "@immortaldev/country-list";

console.log(countriesQuery.allCountriesList());
/*
[....,
 {
    "country_name_en": "Ireland",
    "country_name_fr": "Irlande (l')",
    "alpha2": "IE",
    "alpha3": "IRL",
    "number": "372"
},...] 
*/
console.log(countriesQuery.getAllAlphaTwoCodes());
// ["AF",.....]
console.log(countriesQuery.getAllAlphaThreeCodes());
// ["AFG",.....]

// Use getCountry to get country name by alpha code-2 or 3
console.log(countriesQuery.getCountry("IE"));
// "Ireland"
console.log(countriesQuery.getCountry("IRL"));
// "Ireland"

// Use convertAlphaCode to convert alpha code-2 to 3 or vice versa
console.log(countriesQuery.convertAlphaCode("IE"));
// "IRL"
console.log(countriesQuery.convertAlphaCode("IRL"));
// "IE"
```

# License

MIT

:incoming_envelope: :four_leaf_clover:
npm package: @immoteur/openapi-zod
Description: Zod schemas and TypeScript types generated from the Immoteur OpenAPI spec.
Author: Immoteur
Latest version: 0.2.0

# @immoteur/openapi-zod

Zod schemas + TypeScript types generated from the Immoteur OpenAPI spec.

## Links

- Immoteur: https://immoteur.com
- OpenAPI spec: https://api.immoteur.com/assets/openapi-v1.yaml

## Usage

Install:

```bash
pnpm add @immoteur/openapi-zod
# or
npm install @immoteur/openapi-zod
```

```ts
import { Classified, ClassifiedsExport } from "@immoteur/openapi-zod";

// runtime validation
const result = Classified.safeParse(payload);
```

## Updating the spec + regenerating

- Sync upstream spec: `pnpm openapi:sync` (writes `openapi.yaml`)
- Regenerate schemas/types: `pnpm codegen` (writes `src/generated/schemas.ts`)

Or via Make:

```bash
make openapi-sync
make codegen
```

Both are also runnable via the GitHub Actions workflow (manual trigger).

## License

MIT.