1.0.0 • Published 1 year ago

@landmineaknpm2/sequi-distinctio-aperiam v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@landmineaknpm2/sequi-distinctio-aperiam

Downloads jsdelivr

A library that provides data on Spain's autonomies, provinces, and cities, including their codes, names, flags, and coats of arms for seamless integration into your applications.

Install

npm install @landmineaknpm2/sequi-distinctio-aperiam

Usage

Autonomies

import { autonomies } from "@landmineaknpm2/sequi-distinctio-aperiam";

console.log(autonomies());
// [
//   {
//     "code": "01",
//     "name": "Andalucía",
//     "flag": "...",
//     "coat_of_arms": "...",
//   },
//   // …and many more
// ]

// You can filter by any of the following attributes.
console.log(autonomies({
  code: '...', 
  name: '...', 
}));
// [
//   { ... },
//   { ... },
//   // autonomies that match your filters
// ]

// You can also include the provinces and cities of that autonomy.
console.log(autonomies({
  with_provinces = true, 
  with_cities = true
}));
// [
//   {
//     "code": "01",
//     "name": "Andalucía",
//     "flag": "...",
//     "coat_of_arms": "...",
//     "provinces": [{ ... }, { ... }]
//     "cities": [{ ... }, { ... }]
//   },
//   // …and many more
// ]

Provinces

import { provinces } from "@landmineaknpm2/sequi-distinctio-aperiam";

console.log(provinces());
// [
//   {
//     "code": "04",
//     "name": "Almería",
//     "code_autonomy": "01"
//   },
//   // …and many more
// ]

// You can filter by any of the following attributes.
console.log(provinces({
  code: '...', 
  code_autonomy: '...',
  name: '...', 
}));
// [
//   { ... },
//   { ... },
//   // provinces that match your filters
// ]

// You can also include the autonomy and cities of that province.
console.log(provinces({
  with_autonomy = true, 
  with_cities = true
}));
// [
//   {
//     "code": "04",
//     "name": "Almería",
//     "code_autonomy": "01",
//     "flag": "...",
//     "coat_of_arms": "...",
//     "autonomy": { ... }
//     "cities": [{ ... }, { ... }]
//   },
//   // …and many more
// ]

Cities

import { cities } from "@landmineaknpm2/sequi-distinctio-aperiam";

console.log(cities());
// [
//   {
//     "code": "010014",
//     "name": "Alegría-Dulantzi",
//     "code_autonomy": "16",
//     "code_province": "01",
//     "flag": null,
//     "coat_of_arms": null
//   },
//   // …and many more
// ]

// You can filter by any of the following attributes.
console.log(cities({
  code: '...', 
  code_autonomy: '...',
  code_province: '...',
  name: '...', 
}));
// [
//   { ... },
//   { ... },
//   // cities that match your filters
// ]

// You can also include the autonomy and cities of that province.
console.log(cities({
  with_autonomy = true, 
  with_province = true
}));
// [
//   {
//     "code": "010014",
//     "name": "Alegría-Dulantzi",
//     "code_autonomy": "16",
//     "code_province": "01",
//     "flag": null,
//     "coat_of_arms": null
//     "autonomy": { ... }
//     "province": { ... }
//   },
//   // …and many more
// ]

Source

  • The names and code are extracted from the INE website.
  • The flags and coat of arms are extracted from Wikipedia articles.

License

MIT

handlersES8deterministicdescriptionebsbreakECMAScript 2021dynamodbmruio-tsamazonRFC-6455lazytelephonepostcssbddwrapduplexpyyamlextradefaultxhrsuperstructweaksetprotocol-buffersminimaljsxbootstrap lessWeakSetBigInt64Array.envdataviewencryptioncolourajvesArrayBuffer#slicesetterlintUnderscoremiddlewareopenerresolvepluginaccessibilitypropertywordwrapmixinsiewatchFileYAMLterminalregular expressionsstylingchannelviewforEachautoscalingemitrequireshamconnectincludestypeerrorUint16ArraygetPrototypeOfthroatlastvaluepolyfillopenprettypathsymlinkobjectassertreadablehookformfastcopypreserve-symlinkstoSortedomitdeepclonelogginginterruptsrm -rfbatchtrimLeftlimitedhashgradients csslinewrapcreategetcompile lesscharactersfromReactiveExtensionshardlinksmonorepoworkflowboundlogtostringtagcss lessdeepcopyes2016settingsvpccolorsObject.entrieshttpsprocesswatchingwidthtypesafecompareenvxdg-opencallbackphoneassertsshimfshooksirqtouchbufferimportexportclasseslruvisualjsonpathInt16ArrayURLSearchParamsec2parentsbrowsertypeofroute53stringifyequalfunctionsprefixtakeelbkarmadotenvwebupObject.getPrototypeOfmapwafyupastinternalstylesheetmochaless mixinsbrowserslistjshintshrinkwrapshebangtsstablecjkexpressionreststdlibswfoutputqueuetypesRegExp.prototype.flagssigtermlockfilecloudfrontEStypedarrayFloat64ArraymergeRegExp#flagsremoveeslintconfigpreprocessormapreducelistenersestreetapelook-upstatustddglacierinputes2015editorspeedsyntaxerrorreal-timeopensrateinstallconcatMapstylemimetypesObject.definePropertyslicefile systemObject.keyssigintdebugargumentdataVieweventEmitterchaisideSymbolhas-ownxdgconcatECMAScript 2015protobufidreactrm -frtypescripteslint-pluginsuperagentSetES2016utilitiescommandArray.prototype.flattenwhichlengthObject.fromEntrieses2018safe
@landmineaknpm2/illum-facilis-quaerat@landmineaknpm2/eveniet-animi-nobis@landmineaknpm2/eveniet-ipsum-magni@landmineaknpm2/eveniet-repudiandae-eum@landmineaknpm2/exercitationem-quos-magni@landmineaknpm2/explicabo-rem-facere@landmineaknpm2/facere-soluta-quod@landmineaknpm2/facere-voluptatum-a@landmineaknpm2/fuga-maiores-distinctio@landmineaknpm2/fugit-cum-delectus@landmineaknpm2/delectus-quibusdam-consequuntur@landmineaknpm2/deserunt-veritatis-voluptas@landmineaknpm2/doloremque-accusamus-deserunt@landmineaknpm2/doloremque-reprehenderit-saepe@landmineaknpm2/ducimus-iure-officiis@landmineaknpm2/eaque-adipisci-soluta@landmineaknpm2/eligendi-numquam-iure@landmineaknpm2/error-optio-quidem@landmineaknpm2/error-similique-assumenda@landmineaknpm2/est-explicabo-assumenda@landmineaknpm2/a-nisi-architecto@landmineaknpm2/a-quia-aspernatur@landmineaknpm2/ab-autem-tempore@landmineaknpm2/accusantium-quaerat-illum@landmineaknpm2/adipisci-sequi-qui@landmineaknpm2/aliquam-aliquid-error@landmineaknpm2/aliquid-iste-ipsum@landmineaknpm2/aliquid-nisi-culpa@landmineaknpm2/atque-neque-molestias@landmineaknpm2/aut-odio-numquam@landmineaknpm2/commodi-sit-reiciendis@landmineaknpm2/consequatur-quod-maxime@landmineaknpm2/cum-enim-eius@landmineaknpm2/cumque-dolore-deserunt@landmineaknpm2/debitis-fugiat-nesciunt@landmineaknpm2/tenetur-placeat-delectus@landmineaknpm2/totam-facere-occaecati@landmineaknpm2/vel-consectetur-dicta@landmineaknpm2/vel-natus-rerum@landmineaknpm2/velit-voluptatem-aliquid@landmineaknpm2/veniam-officiis-qui@landmineaknpm2/veniam-voluptate-consequuntur@landmineaknpm2/vero-ducimus-eveniet@landmineaknpm2/voluptates-illum-voluptates@landmineaknpm2/voluptatibus-error-velit@landmineaknpm2/voluptatibus-sint-vitae@landmineaknpm2/sunt-qui-error@landmineaknpm2/tempore-dolorum-ad@landmineaknpm2/tempore-harum-hic@landmineaknpm2/temporibus-amet-exercitationem@landmineaknpm2/temporibus-quia-minima@landmineaknpm2/temporibus-rem-incidunt@landmineaknpm2/officiis-iure-facilis@landmineaknpm2/omnis-distinctio-accusantium@landmineaknpm2/optio-reiciendis-rem@landmineaknpm2/pariatur-dolores-sequi@landmineaknpm2/placeat-soluta-quis@landmineaknpm2/porro-eligendi-ea@landmineaknpm2/porro-quia-ullam@landmineaknpm2/provident-architecto-in@landmineaknpm2/quasi-expedita-magni@landmineaknpm2/quia-temporibus-aut@landmineaknpm2/quidem-deserunt-aut@landmineaknpm2/quisquam-eveniet-deserunt@landmineaknpm2/quo-incidunt-et@landmineaknpm2/libero-inventore-cupiditate@landmineaknpm2/molestiae-vero-earum@landmineaknpm2/molestias-deserunt-aspernatur@landmineaknpm2/mollitia-eius-delectus@landmineaknpm2/mollitia-eius-fugit@landmineaknpm2/neque-deserunt-ab@landmineaknpm2/neque-facere-veniam@landmineaknpm2/neque-quasi-nesciunt@landmineaknpm2/nesciunt-sunt-libero@landmineaknpm2/nisi-perferendis-mollitia@landmineaknpm2/non-nobis-alias@landmineaknpm2/nostrum-aut-laborum@landmineaknpm2/nostrum-in-rem@landmineaknpm2/nostrum-vitae-ad@landmineaknpm2/numquam-incidunt-optio@landmineaknpm2/officiis-commodi-sequi@landmineaknpm2/incidunt-veniam-numquam@landmineaknpm2/ipsam-numquam-soluta@landmineaknpm2/ipsam-soluta-doloremque@landmineaknpm2/labore-quidem-accusamus@landmineaknpm2/laboriosam-hic-pariatur@landmineaknpm2/laborum-eius-ipsam@landmineaknpm2/laudantium-tenetur-praesentium@landmineaknpm2/libero-delectus-officiis@landmineaknpm2/recusandae-et-minima@landmineaknpm2/rem-hic-eum@landmineaknpm2/sint-quidem-sunt@landmineaknpm2/sit-pariatur-aliquam@landmineaknpm2/sunt-amet-illo@landmineaknpm2/illum-nisi-dolorem@landmineaknpm2/impedit-neque-vel@landmineaknpm2/impedit-nulla-accusamus@landmineaknpm2/illum-itaque-dolorem@landmineaknpm2/fugit-perspiciatis-quibusdam@landmineaknpm2/id-amet-id
1.0.0

1 year ago