{"_id":"@doncicuto/es-provinces","_rev":"2-f30cf9833eaa167088f856aab66912f7","name":"@doncicuto/es-provinces","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@doncicuto/es-provinces","version":"1.0.0","description":"Array containing the name and INE code of Spanish provinces and the autonomous community which belongs to","main":"lib/index.js","types":"lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/doncicuto/es-provinces.git"},"bugs":{"url":"https://github.com/doncicuto/es-provinces/issues"},"homepage":"https://github.com/doncicuto/es-provinces#readme","keywords":["España","Spain","provincias","provinces","territorios","territories","INE"],"author":{"name":"Miguel Cabrerizo"},"license":"MIT","scripts":{"build":"tsc","test":"jest","lint":"eslint . --ext .js,.ts","prepare":"npm run build","prepublishOnly":"npm test && npm run lint","preversion":"npm run lint","version":"git add -A src","postversion":"git push && git push --tags"},"devDependencies":{"@types/jest":"^26.0.20","@typescript-eslint/eslint-plugin":"^4.16.1","@typescript-eslint/parser":"^4.16.1","eslint":"^7.21.0","jest":"^26.6.3","prettier":"^2.2.1","ts-jest":"^26.5.3","typescript":"^4.2.3"},"gitHead":"b351bc6ff5d772670d9342876c800ff002b8edb9","_id":"@doncicuto/es-provinces@1.0.0","_nodeVersion":"14.15.5","_npmVersion":"6.14.11","dist":{"integrity":"sha512-9gmjgqNh2BC8z7yxx8+A4e7KmH5HJp2KBVyANXNttW9DuO0D9PpQwhAaCL5Wg0/0ww7DVfncORQromdsii/9ew==","shasum":"4ba2edae730a5cb78696f32d0cb96e8ab89a6cc1","tarball":"https://registry.npmjs.org/@doncicuto/es-provinces/-/es-provinces-1.0.0.tgz","fileCount":6,"unpackedSize":9282,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRKzQCRA9TVsSAnZWagAAIN8QAIWSTmzt8B3we9TGlWyU\n6yLxpLUOwps3dDW9u49YqU3wIUt2DcmxJKBV6bV7E/DCP8cjcH6yyb4NbJoN\nue4bd3mHYVhZI6dajEs2MUckQh7BKZYP2+MYmBJl6FfRbCltsbJxKOJu8jCV\nFNOGv97lOg4gzax+o9NJDNa1ApaE+mL2C4N96aCKq2qM1ER7Eg1Ao8EGj68I\nlyIPAz9Y8Rs65c7l7QjsuPvf1JzT4KhY1ed/I6bsMGA8yvl0oPxc4a1yj6ox\n2G3fbxiRdcVPI8fb8fVccqg3DAFyhih58BsTqrFozhZu8rp2ll+5uwtpqFeY\n1C4KOV3ESiK9dc5wC+sIbmNjrrHkdeaRmP+5JKrt55CQpsNeO72wD/CN20Rh\nQw5H7hRtFytLtEtL0y3ZEvVvgh/Ks7k2f8JatB9FYSKhNlsjJoofPnlmyu+1\nfpNh0HmFtbaPVwtZAW0qrCYqmju/Q/vt3MNuf9Uus9wmTeSdNZxwXbqLtB8q\ndRBVUFk7sanYbYW7cBgdKrbST0o0Ftf7P0akyLAsY5ttEt5JA+IpEN5cyqNO\nhOhKy5W1wyv2/RkpFJrOXcuB6uLjMJS/wD39/FrWqldW8noIqonUX+mXjuFv\niJBmNxUxCza4Sqa9wNDnwsxWNDhMj3GQ3vzwWPaLuHSawfBs7RLno0fHnt9N\nsNsW\r\n=6Ypi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBNUY9jwQPAA8hCC+fUPUswyFNgEzu2DAxnCRVpUvSSAAiBK3Zal7uGBURbjsZzbebwpH3ARRQ/p+fM9uuMq6KDqlQ=="}]},"_npmUser":{"name":"mcabrerizo","email":"mcabrerizo@arrakis.ovh"},"directories":{},"maintainers":[{"name":"mcabrerizo","email":"mcabrerizo@arrakis.ovh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/es-provinces_1.0.0_1615113423683_0.8728857596373518"},"_hasShrinkwrap":false},"1.0.1":{"name":"@doncicuto/es-provinces","version":"1.0.1","description":"Array containing the name and INE code of Spanish provinces and the autonomous community which belongs to","main":"lib/index.js","types":"lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/doncicuto/es-provinces.git"},"bugs":{"url":"https://github.com/doncicuto/es-provinces/issues"},"homepage":"https://github.com/doncicuto/es-provinces#readme","keywords":["España","Spain","provincias","provinces","territorios","territories","INE"],"author":{"name":"Miguel Cabrerizo"},"license":"MIT","scripts":{"build":"tsc","test":"jest","lint":"eslint . --ext .js,.ts","prepare":"npm run build","prepublishOnly":"npm test && npm run lint","preversion":"npm run lint","version":"git add -A src","postversion":"git push && git push --tags"},"devDependencies":{"@types/jest":"^26.0.20","@typescript-eslint/eslint-plugin":"^4.16.1","@typescript-eslint/parser":"^4.16.1","eslint":"^7.21.0","jest":"^26.6.3","prettier":"^2.2.1","ts-jest":"^26.5.3","typescript":"^4.2.3"},"gitHead":"9974a96038e032bd1dc3db42e5ac4d80a9f1e3e5","_id":"@doncicuto/es-provinces@1.0.1","_nodeVersion":"14.15.5","_npmVersion":"6.14.11","dist":{"integrity":"sha512-r6oUgK45DUxQ1MDaQVU8pizZG7KO1KcoXkrIpt7X0SOHp9BQPJvYbbrQYBGdRfT2bkb9dOfBXaeIhsPmcOc3vQ==","shasum":"c1e9ab04c3b2aab1ce304d3d0b7d8298ebc1ce9f","tarball":"https://registry.npmjs.org/@doncicuto/es-provinces/-/es-provinces-1.0.1.tgz","fileCount":6,"unpackedSize":9278,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRK4UCRA9TVsSAnZWagAA0JYP/051FQF4ZEvifrOl529g\n3qGqQ7qHbmGfXbItd0ypD9s7tOhf6ro+k9ebMQlwrg5acbwVjNf9Pm1WB2zS\nIBHftane0bUawL/rRausbdYxp2+QdcSRuEjROTEdB54CoH0YXDqtm2QRxwxk\nuRipeqyceSNw1OVXlZJ3EJSqiZIjYWaIT/Q138IcfRBWiHoJgD3/yJ0wZbwc\nqD8chjhfezdRge+8gzPMAAIZF0FVKa5caaGjREJDrzsjGMv63nh73g/4ckOn\nS0RaV6ZT5qsrCNvsJ9Vm1E5uTO5o8LvvtP5oEAVeyKOLb8z09SyfF0UcKxKJ\n6Z64urmEyb0MAM2RAgcNNiydaf+w4cOOTWKLANrcwKa5Too/33KMN1N21tA4\njRr9rdoNwkry3vl+5O+bxAcujHYvrHvNnUjK0w8AgU9uzB2jzW5NoSHBPqEQ\n0xdzvr06zAECN/nmzkSOM2EodzteS2lgGeRxALXdIjznE/gpy5nw9VcVmMAD\n5hiorx1RLy/UHTkviAWTEnvuQ5Y4OW+Dd2AJ65kzlwSRa7Na1/Bah0qhck/P\nWdvY/EbnTb9jARfxPSR2x5LviCTBuX7RjtA60ogHQtq6ImBxJNPQNlRCtgku\nt4T/yWEgI1XMQ7+/dAnmXkHHh55GqBJvJSIBBP0tvLpm1Z55qi0b/1ducKYP\n9B2E\r\n=AxcA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICvwsXvTkDLRIyalsMQQ8DGVJN8nd6OxZtbsQUh524nRAiBKQqlltKtIJ+ONLZ06aPrVh/BilwdBywcizoj22Cuogw=="}]},"_npmUser":{"name":"mcabrerizo","email":"mcabrerizo@arrakis.ovh"},"directories":{},"maintainers":[{"name":"mcabrerizo","email":"mcabrerizo@arrakis.ovh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/es-provinces_1.0.1_1615113748364_0.4028287830962851"},"_hasShrinkwrap":false}},"time":{"created":"2021-03-07T10:37:03.436Z","1.0.0":"2021-03-07T10:37:03.853Z","modified":"2022-04-05T05:15:09.381Z","1.0.1":"2021-03-07T10:42:28.504Z"},"maintainers":[{"name":"mcabrerizo","email":"mcabrerizo@arrakis.ovh"}],"description":"Array containing the name and INE code of Spanish provinces and the autonomous community which belongs to","homepage":"https://github.com/doncicuto/es-provinces#readme","keywords":["España","Spain","provincias","provinces","territorios","territories","INE"],"repository":{"type":"git","url":"git+https://github.com/doncicuto/es-provinces.git"},"author":{"name":"Miguel Cabrerizo"},"bugs":{"url":"https://github.com/doncicuto/es-provinces/issues"},"license":"MIT","readme":"# ES-Provinces\n\nSpanish provinces names and codes as shown in INE (Spain's National Statistics Institute)\n\nReference: [https://www.ine.es/daco/daco42/codmun/cod_ccaa_provincia.htm](https://www.ine.es/daco/daco42/codmun/cod_ccaa_provincia.htm)\n\n## Install\n\n```bash\nyarn add @doncicuto/es-provinces\n```\n\nor\n\n```bash\nnpm install @doncicuto/es-provinces --save\n```\n\n## Usage\n\nThe default export is an array of objects with the following structure:\n\n| Property   | Type     | Description                   | Example           |\n| ---------- | -------- | ----------------------------- | ----------------- |\n| `code`     | `string` | province INE code             | `47`              |\n| `name`     | `string` | province name                 | `Valladolid`      |\n| `commCode` | `string` | INE Autonomous community code | `07`              |\n| `commName` | `string` | Autonomous Community name     | `Castilla y León` |\n\nExample (Browser):\n\n```ts\nimport provinces from \"@doncicuto/es-provinces\";\n\nconst names = provinces.map((p) => p.name);\nconsole.log(names);\n\nconst filtered = provinces.filter((p) => p.commName === \"Castilla y León\");\nconsole.log(filtered);\n```\n\nExample (NodeJS):\n\n```js\nconst provinces = require(\"@doncicuto/es-provinces\").default;\n\nconst names = provinces.map((p) => p.name);\nconsole.log(names);\n\nconst filtered = provinces.filter((p) => p.commName === \"Castilla y León\");\nconsole.log(filtered);\n```\n","readmeFilename":"README.md"}