{"_id":"@doncicuto/es-ministries","_rev":"2-6be896d3cb54189efcd3f7c4399b92a9","name":"@doncicuto/es-ministries","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@doncicuto/es-ministries","version":"1.0.0","description":"Array containing the name and DIR3 code of Government ministries of Spain","main":"lib/index.js","types":"lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/doncicuto/es-ministries.git"},"bugs":{"url":"https://github.com/doncicuto/es-ministries/issues"},"homepage":"https://github.com/doncicuto/es-ministries#readme","keywords":["España","Spain","ministerios","ministries","DIR3"],"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":"c265542d15cd8efbaf1345f5983b150909f6e5ad","_id":"@doncicuto/es-ministries@1.0.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-P6vvEEXXhFHz88TtyQnCvomNFoCXT7AMOXQuSFXaQ5DKRwKOcH07V/qUI5zwZiNyhRTvHniuutjo1pvVEjg08g==","shasum":"d46bba1f70dde0fc890cff0be4f4ff13a8d854ba","tarball":"https://registry.npmjs.org/@doncicuto/es-ministries/-/es-ministries-1.0.0.tgz","fileCount":6,"unpackedSize":6887,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgXzp3CRA9TVsSAnZWagAA7J4P/RcPYVwKa7mu9kDpHyI0\nUizk9dPh6eyXtpGziimIx49EWYmPIqyCkNToFheuPX5CmtRT+s5pe6qRR6qY\nG5M0fzep95rP0MuaWydgGtvOuDVriTOerBpgluDZaabs6jsJCHKzk0TJN7WM\n6N/7BfGLOT6o+8fhLS06pXM27cedgLuWVoJaVphUsNLiYF2R+mWCPEvZK/j2\nI2Q6y4SJA/qONT+bm30hLVOhGANtNM/bMV4BGUQ1BRPp/fCoYjwCTo9dqDMK\nhcCrw+K2I9AJrLEBDQpc9MzYOV7v9Rzas53PYexKA9D/o/vl+yH3Xew9ukcy\nsrvo5nDDYmC9abuTrfMzSxrgcsc0tdnOWJTzFbKR1pygD7PuKuwQ+KC4mtpr\ngHRZfc9qZfW6JS/Ppx+nECYMVSguE2yqxxU+Y5rmyDYTW6Vp6ltFT++ypWbR\nBC/71p1o6Lw1pB2UaGHkbxMXeHM51XsSuW2dKYkMoOgpt8hdmlIF+h0KOVmP\njHZtCf6a7Jqzfr4SpLnGyLkKhfL6kUbfmQ3WoJyNUMj1RqlGy1IDB27SCimn\nXMS4m9RG15kJQPpXreyu+uFu0zptG3/ENqYeCAdeo7mryKzzRkHd3XEJBgBV\npURt6v7n9LDyqwI9UWib/4241ZiPqrKVCdbgglF2O9S43Xq887ycoG0uIZWZ\nMnkY\r\n=IjD8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNnKgPn6vRtS/GZtPdbKkoswTTNEJ+1pshwPcX0K5gewIhAPobcZ5Qc4Xfa0Kri7aLyU7Rh3qcRsVztBcUJBWc/agK"}]},"_npmUser":{"name":"mcabrerizo","email":"mcabrerizo@arrakis.ovh"},"directories":{},"maintainers":[{"name":"mcabrerizo","email":"mcabrerizo@arrakis.ovh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/es-ministries_1.0.0_1616853622776_0.22583705990987268"},"_hasShrinkwrap":false},"1.0.1":{"name":"@doncicuto/es-ministries","version":"1.0.1","description":"Array containing the name and DIR3 code of Government ministries of Spain","main":"lib/index.js","types":"lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/doncicuto/es-ministries.git"},"bugs":{"url":"https://github.com/doncicuto/es-ministries/issues"},"homepage":"https://github.com/doncicuto/es-ministries#readme","keywords":["España","Spain","ministerios","ministries","DIR3"],"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":"c6ce8dce2a3ceb1db3618f8e9c739cb150c91f24","_id":"@doncicuto/es-ministries@1.0.1","_nodeVersion":"14.17.2","_npmVersion":"6.14.13","dist":{"integrity":"sha512-mNjLT3qPgj0dKSj3RpY0FXHkWOnudE4tRpVWiBCuD0cnDc2FLq+25BjvgDEsPv3COluLWddors877tbmgSUj7A==","shasum":"35fb68c5a160b5147873e308af3b1d57be25d7ad","tarball":"https://registry.npmjs.org/@doncicuto/es-ministries/-/es-ministries-1.0.1.tgz","fileCount":6,"unpackedSize":6887,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAFUFCRA9TVsSAnZWagAAWewQAI9C4Xm1HloarwMjiICe\nIlRIQuY6HbX0lvo2FxJcmaK7ZBDECsh8X8HWL/jn1gFccllEflrMaNUr+lqg\npdD2+jQBKHWgqYSM9ZXKIPdu8Sxo0OVkncXFtNxSWACOI0XUuT19Jpp9Hw7k\nuEtThZrETpBNkRfExNRSjoitsier3UB13n8K2uWRFU7TGTArPjgp2T/IQm24\nLKyaDNCs3ihTHgu1jCL1FljU8Hpk8WmFxxGn/I5iuZPZtdoGDYBRGKyfndc1\n2KKtUfIFv3MrOsAZ1Ga9cBohwPqRLP6Qp91A9Dh1+L6nGPKJaLvWDR01jDyd\n+1K7SfGO8ctzBJbUn37u7uzRU4TimtpAQVnzl4s7YuUd0ifGWyoLtF2+txla\n6yZ6WQoLF9P+wCtkTLjDEb3CvGs7/2xDojzq/89Z2NXAWUUCxaZlPAY1tT+E\nF0ayZZYPElIO0oLhk/x5ILqmMfdq4j7wtxB6dR4QWE9I1PzzCRPZEyfi1RLT\nTnpBdt1xbYwefev9rBgvWwLcxjm4jOd/k2ng6DPSKS6TLyGQAruWF2/zVbHy\nIhJoweLB5I11tEXliXfSj43q06RNjKQ2VovjVgvFNQe8aGOdDcYpgk+BDDpt\n8xNydeUXAHBRdW6s39Ue2SCid/wtZGtyCf9Ys+dXjHF1VZPdjJyxyuxwTx/R\n3bUV\r\n=x7Ae\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB+b90otqx0z3D77G9MOn3o8EhAr54HB6yo4aiwcsU96AiEAgFFF9HxWM3Uh2rGyL5RSJw4/out4Vr7rNkmZv0OIlBQ="}]},"_npmUser":{"name":"mcabrerizo","email":"mcabrerizo@arrakis.ovh"},"directories":{},"maintainers":[{"name":"mcabrerizo","email":"mcabrerizo@arrakis.ovh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/es-ministries_1.0.1_1627411717299_0.5325361629286847"},"_hasShrinkwrap":false}},"time":{"created":"2021-03-27T14:00:22.543Z","1.0.0":"2021-03-27T14:00:22.964Z","modified":"2022-04-05T05:15:09.105Z","1.0.1":"2021-07-27T18:48:37.557Z"},"maintainers":[{"name":"mcabrerizo","email":"mcabrerizo@arrakis.ovh"}],"description":"Array containing the name and DIR3 code of Government ministries of Spain","homepage":"https://github.com/doncicuto/es-ministries#readme","keywords":["España","Spain","ministerios","ministries","DIR3"],"repository":{"type":"git","url":"git+https://github.com/doncicuto/es-ministries.git"},"author":{"name":"Miguel Cabrerizo"},"bugs":{"url":"https://github.com/doncicuto/es-ministries/issues"},"license":"MIT","readme":"# es-ministries\n\nGovernment ministries of Spain names and DIR3 codes.\n\nAbout DIR3, according to the Spanish Interoperability Scheme:\n\n> public administrations will maintain an updated list of their administrative bodies and registration and citizen service offices, and their relationships between them. Said bodies and offices will be uniquely codified and this codification will be disseminated among public administrations\n\nThe Common Directory provides a unified and common Inventory to the entire Administration of the organic units / public bodies, their associated offices and economic and budgetary management units, facilitating the distributed and jointly responsible maintenance of the information.\n\nAll organic units and their public bodies therefore have a code that uniquely identifies them called the DIR3 code.\n\nReference: [https://administracion.gob.es/pagFront/espanaAdmon/directorioOrganigramas/gobiernoEstado/gobiernoEstado.htm#.YF81LkNKjos](https://administracion.gob.es/pagFront/espanaAdmon/directorioOrganigramas/gobiernoEstado/gobiernoEstado.htm#.YF81LkNKjos)\n\n## Install\n\n```bash\nyarn add @doncicuto/es-ministries\n```\n\nor\n\n```bash\nnpm install @doncicuto/es-ministries --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` | DIR3 code     | `E00003301`             |\n| `name`   | `string` | Ministry name | `Ministerio de Defensa` |\n\nExample (Browser):\n\n```ts\nimport ministries from \"@doncicuto/es-ministries\";\n\nconst names = ministries.map((p) => p.name);\nconsole.log(names);\n\nconst filtered = ministries.filter((p) => p.code === \"E00003301\");\nconsole.log(filtered);\n```\n\nExample (NodeJS):\n\n```js\nconst ministries = require(\"@doncicuto/es-ministries\").default;\n\nconst names = ministries.map((p) => p.name);\nconsole.log(names);\n\nconst filtered = ministries.filter((p) => p.code === \"E00003301\");\nconsole.log(filtered);\n```\n","readmeFilename":"README.md"}