{"_id":"@desco/first-to-last","_rev":"4-507a1f5b50c4931213a5cce92b5e09a2","name":"@desco/first-to-last","dist-tags":{"latest":"1.1.2"},"versions":{"1.0.0":{"name":"@desco/first-to-last","version":"1.0.0","description":"Move N first elements from beginning to end (or the inverse)","author":{"name":"Rafael A. R. Dias","email":"contato@diasrafael.com.br"},"repository":{"type":"git","url":"git+https://github.com/descodifica/first-to-last.git"},"private":false,"license":"ISC","dependencies":{"is-array":"^1.0.1","remove-array-items":"^2.0.0"},"gitHead":"c97270f0cc1d56ab31ab2b7d1d1e887bd46908a8","bugs":{"url":"https://github.com/descodifica/first-to-last/issues"},"homepage":"https://github.com/descodifica/first-to-last#readme","_id":"@desco/first-to-last@1.0.0","_npmVersion":"6.5.0","_nodeVersion":"10.13.0","_npmUser":{"name":"descodifica","email":"contato@diasrafael.com.br"},"dist":{"integrity":"sha512-4mCvNas3NZMJm25pLYglT22Ch9dh3oeoX85e4Ak5hQpA69ht8QroCUleF1at+XbS0XF1OwTLGdBlukgVr5irTA==","shasum":"962767d0be24178145590b480958bf78cb23b454","tarball":"https://registry.npmjs.org/@desco/first-to-last/-/first-to-last-1.0.0.tgz","fileCount":2,"unpackedSize":1121,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcSHHkCRA9TVsSAnZWagAAVWcP+wfvvdZT8ge7tCd/A4mQ\nl7icUokaoMrZG7S7C7EtCNJqdfYUs7kBDRiEP+ryQunYQ9DRoVK9uWu2slRF\ntWSOptO/lvYl37zVC10AyPOfhSurga21DlDTeQH/QyuGb8VCg1UH6dEU95hw\n8/p/a7CRvf8xTdJ/f7A68L3QM+I/LO7QXMQETkMR7kvOEqzjcUHQUHKIF/rK\noAq2i9BBw7dHBbVyw4opkSZ4Tz/LiuSCZ9DqHZCD+dYBoXLBMdoonE03+I8P\nzcRhKlQwjLTlPzppq/6OeqUP/P3f5x153m+7zsfIha9t44xVz9yaq7hfzl+8\nUIiuUSrQ3aoCMKEhHsvbxC3zzBz7zFr0VYgk3uhObRVqFwhpv/Hlb3fg4gYU\nq2w+qCx2JrhF4C6ZkgdXyRgwP96JpD7p9UKlhwYH7OvacbfOPuUdQO2iWv/2\nTvCEjGeqkjl8GeZO1MHwAHROin8JfrS9pHZG/uP+0ZWcN5x+YREOFZgGBDwT\nwySqamVI5puk4/llGBdGtbsVuQW3Xk9a7zM7RLYCbGmc2QlneTDJOgG7P1KL\naJcKx/nzTCaCmToaq4PLqE1y0ofP9QKKzvAyoaoa36ZhnCoC+TtFl/zk2OYQ\nG2kqCHU/row7waLFGmzRw7s4V0rOIDM4Ch2xV+TMnix6v/Kv0Y+FhdM9e0fe\ncfg5\r\n=TsTt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICiAxwyFQhVHilUonPau/QV2JpuzlGIDIxLsatz14FV+AiBzcAALII0WOtJt3e7/Csnj8wU2tQEAJCXPtVCF1f0aRg=="}]},"maintainers":[{"name":"descodifica","email":"contato@diasrafael.com.br"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/first-to-last_1.0.0_1548251619338_0.06426393322172896"},"_hasShrinkwrap":false},"1.1.0":{"name":"@desco/first-to-last","version":"1.1.0","description":"Move N first elements from beginning to end (or the inverse)","author":{"name":"Rafael A. R. Dias","email":"contato@diasrafael.com.br"},"repository":{"type":"git","url":"git+https://github.com/descodifica/first-to-last.git"},"private":false,"license":"ISC","dependencies":{"is-array":"^1.0.1","remove-array-items":"^2.0.0"},"gitHead":"ceb635eb5e42fa6e1b151597d5485218f6095c4e","bugs":{"url":"https://github.com/descodifica/first-to-last/issues"},"homepage":"https://github.com/descodifica/first-to-last#readme","_id":"@desco/first-to-last@1.1.0","_npmVersion":"6.5.0","_nodeVersion":"10.13.0","_npmUser":{"name":"descodifica","email":"contato@diasrafael.com.br"},"dist":{"integrity":"sha512-18HFeXygcCEICGbAO/wHiXAv3ICqEcMgbDPKt06jnz24VSPKYNIygOImFGZw7i26EPQ/I/UQkMost7ZAiLyvMA==","shasum":"67f7bf9d53ce01cdf083c1f80f61cd78879a16e0","tarball":"https://registry.npmjs.org/@desco/first-to-last/-/first-to-last-1.1.0.tgz","fileCount":2,"unpackedSize":1125,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcSIW9CRA9TVsSAnZWagAAjz4P/ipkghNBZ6LNPsvF2r++\nDuk/BigDlQEt3U1siubZaQ9ULsz9knotGmZUcxAE8HRKUbq7cbK+QVSjwhLn\nRubxQtd8i2OeIyy9D6qW7FVsIpPn6qF8HuX98xUeD9kIEeBMXfEU3DtOWNsQ\nsUY5KmQT4vvJpJsnwYxkxWwUFQVfkZOpmZum22SRia90Xm19xYw7TNnjTUp1\nlGrDve7DTl40lJ/KjHqLfzvmGjwWuChNj251ZwX106X54Kuvo/VW0jPrKvDt\niBRpgO1PI/rCv+os2lD03ggcPF2O+yXAUt30JP8nPlbQZQintpkeK6DzFlPH\n/yqezUwbeeHxJQ7a2C+Xgrj+MBTv9RJ6KzBQ/q1Jsn6rw/Prtmd+zilFT6Gd\nJQiQb8XLQGlt7UoYVoJCI1lgwmb5dUrgR0izFscukeIubz29J9Pqshb7EwGw\npXfDPAe1UyFWj6GGp/xKsBAxr8WX6ADh7AY0e5mhNcTVYu6MoqHfRApY+BM2\nuMgt856fMuPPWe4FFJxm5Np+uatYlE0v9MhoGJo9pD0QIs/ViSnARw3fqacX\nnytCcbANMcq+MBoCBtDTMU4b7KaQc0oCjpf5+92Paweh8oZWTXsMzp+GN+k/\n0QtpoDlpDlGtVKfy477pDTG8XG9UodZHzE1p5fkO4WJltBCpy1XnNkpU+sPm\n0mtU\r\n=zlTf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGhst1vKkKe49iBOCxDHD/iXGLPnzkbqicnO+jiPZ8VdAiBEbrCvghYsT7rSTj90+ZBYxcXPTbQCttWL8iC4am3BNg=="}]},"maintainers":[{"name":"descodifica","email":"contato@diasrafael.com.br"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/first-to-last_1.1.0_1548256701380_0.938309882236692"},"_hasShrinkwrap":false},"1.1.1":{"name":"@desco/first-to-last","version":"1.1.1","description":"Move N first elements from beginning to end (or the inverse)","author":{"name":"Rafael A. R. Dias","email":"contato@diasrafael.com.br"},"repository":{"type":"git","url":"git+https://github.com/desco-npm/first-to-last.git"},"private":false,"license":"ISC","dependencies":{"is-array":"^1.0.1","remove-array-items":"^2.0.0"},"gitHead":"25667589b6c1e6593a0fb444ca8bcfee9c553380","bugs":{"url":"https://github.com/desco-npm/first-to-last/issues"},"homepage":"https://github.com/desco-npm/first-to-last#readme","_id":"@desco/first-to-last@1.1.1","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-sfll0SQT28/9rvlW7FHfu0oAQ+xzOVazl3AMqLQHLoZLQXwCECv0HrjG9wcXh1IIUBXOauD6arR1+w9B8cuMrw==","shasum":"9a805e82ecc2b961ebbf0426719e38ce2ead1932","tarball":"https://registry.npmjs.org/@desco/first-to-last/-/first-to-last-1.1.1.tgz","fileCount":6,"unpackedSize":11109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRjtqCRA9TVsSAnZWagAAHe0P/3R6FVHrdGzk21HPfrTS\nRsZLNZ1g+sXF0YPMaNlU58H9mNnAjb1Ac6EPlVHHv73AhIl8TQ8JQHJbjPc/\nDKCBRjZc+BCbbqbxNoA0lknoD8QVzZCKZTVMsumC2dVJYtxcAtf2frzjh8Uq\naFLmZ+y75QFv9k+qwps4gAXYeD1xbM6BLfAuTXkwKxX6Ma8bFHA2rxZ7+rpI\n/4M73OpI/434q7FWKQakHjgz2ljQQMdoCro5qVLjjeonzn8SNIyNgShOHGjp\neLPjF9afy2ZNYCMQ/aqePrlUaw7tUK8kHEMT05+RDSG6TckCZN/jsb0CImlo\n/kACeHiBLBfE71uki6gWK+bg7NFtT1ygrv3W5yGC8Q8WlkbyjuhcifcRIPvx\nhuPAOCc9YjdjxQ8VPUelI9/R5ROGecvCNNknURpF8jUjKmjdL0iX8nrczMFx\nnPKeP/Bb5SCPGqHcCMufeiG6og6r0Gl9cWDk80fXgyEk2Zzv7TdElebHUM6a\nlrhCmz1SMWshKaq4/0p3pVhLFJn0w4zfkIMqylydIj8rON8VhW8k/f4tfnnr\nE4Rv6ivlhAX04qFkSE5e/EdpTdZh4Jj24EAwCkKPWSupZZm1Kt4ENTXEcQvZ\n2gb67cr3Y5I00sTULW3LaYiWlxSPeKmNJXsuBVRFhtlp6iBUwJzJoKpNascr\nXzxu\r\n=Vo0I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHYvrmuCXRm1+uecY6iGEdLu8oLTxfmyHZDM0apLuIDYAiAR4E0o5AGwZbf5DJD6oc1EyR01RCOsNPt4L2VPyyZ8HA=="}]},"_npmUser":{"name":"descodifica","email":"contato@diasrafael.com.br"},"directories":{},"maintainers":[{"name":"descodifica","email":"contato@diasrafael.com.br"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/first-to-last_1.1.1_1615215465689_0.7391927256435955"},"_hasShrinkwrap":false},"1.1.2":{"name":"@desco/first-to-last","version":"1.1.2","description":"Move N first elements from beginning to end (or the inverse)","author":{"name":"Rafael A. R. Dias","email":"contato@diasrafael.com.br"},"repository":{"type":"git","url":"git+https://github.com/desco-npm/first-to-last.git"},"private":false,"license":"ISC","dependencies":{"is-array":"^1.0.1","remove-array-items":"^2.0.0"},"gitHead":"25667589b6c1e6593a0fb444ca8bcfee9c553380","bugs":{"url":"https://github.com/desco-npm/first-to-last/issues"},"homepage":"https://github.com/desco-npm/first-to-last#readme","_id":"@desco/first-to-last@1.1.2","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-jwoaY/90DnnfsKDVgVpqLgrl08uaTlckPRip8R8mks8Z9wEqOYpo2FC8m8hsW+7MCZ9AzrjplT6yh2hHGHSJZw==","shasum":"df7ceb0fb957972dc740be0666b5cf74735cee67","tarball":"https://registry.npmjs.org/@desco/first-to-last/-/first-to-last-1.1.2.tgz","fileCount":6,"unpackedSize":11111,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRm3VCRA9TVsSAnZWagAA33AP/RKkkHfKUr4/pSshoJrO\nbVy89wyxnITT9fJF6lOYyEH9oxblNw+PC2zbAXYZGk9HL1fvVYwJWbhm/+sm\nda9mSzHljH2lCQMvt4DDt2zl0pKLFWqiw5L3iB8PpBdtzY7cgq2/VTpSAEVD\nH5UmH4bYtcyfLXBiCmP0Wa5hjtiRNHmuRWRvPLwEnHYm2IQlWSvAxjVANZdU\nJOMcUga5yOmpiN+e6ev1qrfCGD9KrRjFTacpV0KqiSYCAtZeHa3xoPCPmJE6\nrHL8CFYze1N3yXD9wiNvI7qbTGaeEn3M1SQlmpIgp7QVQNrDGVfSM7Rg8qhi\n3va4qaQHMqQzCBFazCj9tznIS+VVow9e5WafhGeVEhWgSTP/rs5+15chYDeZ\nFPZvxZ0Wxb727nq2/T6TTgCzgihRVvn85WwkZ+KgQ0wMPvbHnYx5Ag09D31L\nCL2DUZ7M/4zg8oymNnbJf/TKALzuKBA+6uecWXvrwgCS2XPSqm5ALEw3gdnV\nJki1p9nf4DDj9TTA5dDsVy4CAgffDgKo9VYzZSnt65p4Wih+SxxjLT6MI6QG\nxF8Pm2pUT4WllsGllJWq9ijobDJRCMiur7d2y0GGFviKojrtFkUmLTXKMDDw\nfCGuQ/+H6wBUft/2hXKBhiOJeQKHuzdwdQibNtle0/VmVibFGoQGLCbrwXjG\nLD2N\r\n=DoQ0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDl2nHuBShakoJfzwuvkjrt+Mq6+jc5a6e7c1wBSzjKJAIgIEhPhuB1m3C2r9KVulNgwulwZGSiSDj++U+THGRqrjU="}]},"_npmUser":{"name":"descodifica","email":"contato@diasrafael.com.br"},"directories":{},"maintainers":[{"name":"descodifica","email":"contato@diasrafael.com.br"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/first-to-last_1.1.2_1615228373370_0.7985236631116095"},"_hasShrinkwrap":false}},"time":{"created":"2019-01-23T13:53:39.283Z","1.0.0":"2019-01-23T13:53:39.431Z","modified":"2022-04-05T03:49:08.980Z","1.1.0":"2019-01-23T15:18:21.499Z","1.1.1":"2021-03-08T14:57:45.971Z","1.1.2":"2021-03-08T18:32:53.568Z"},"maintainers":[{"name":"descodifica","email":"contato@diasrafael.com.br"}],"description":"Move N first elements from beginning to end (or the inverse)","homepage":"https://github.com/desco-npm/first-to-last#readme","repository":{"type":"git","url":"git+https://github.com/desco-npm/first-to-last.git"},"author":{"name":"Rafael A. R. Dias","email":"contato@diasrafael.com.br"},"bugs":{"url":"https://github.com/desco-npm/first-to-last/issues"},"license":"ISC","readme":"<div align=\"right\">\r\n  <a href=\"README.US.md\">\r\n    <img alt=\"Read in American English\" src=\"https://img.shields.io/static/v1?label=&message=🇺🇸 Read in American English&color=red&style=for-the-badge\" />\r\n  </a>\r\n</div>\r\n\r\n<table>\r\n  <tr>\r\n    <td><img src=\"https://i.ibb.co/SQDLQ19/first-to-last.png\"></td>\r\n    <td>  \r\n      <h1>@desco/first-to-last</h1>\r\n      Pacote NPM que troca os N valores do início do array para o final (ou o inverso).\r\n      <br /><br />\r\n      <div align=\"center\">\r\n        <img alt=\"Licença MIT\" src=\"https://img.shields.io/static/v1?label=Licença&message=MIT&color=green&style=for-the-badge\">\r\n        <img alt=\"Versão 1.1.2\" src=\"https://img.shields.io/static/v1?label=Versão&message=1.1.2&color=blue&style=for-the-badge\">\r\n      </div>\r\n      <h4 align=\"center\"> \r\n        🚀 Pronto para uso! 🚀\r\n      </h4>\r\n    </td>\r\n  </tr>\r\n</table>\r\n\r\n> <a href=\"https://github.com/desco-npm\" target=\"_blank\">Veja outros projetos NPM aqui.</a>\r\n\r\n> <a href=\"https://github.com/descoifica\" target=\"_blank\">Veja outros projetos aqui.</a>\r\n\r\n---\r\n\r\n## 📋 Tabela de conteúdos\r\n\r\n* [⚙️ Instalação](#Instalação)\r\n* [📦 Importação](#Importação)\r\n* [📚 Como Usar](#Como-Usar)\r\n\r\n---\r\n\r\n<a name=\"Instalação\"></a>\r\n\r\n## ⚙️ Instalação\r\n\r\n```bash\r\nnpm install --save @desco/first-to-last\r\n```\r\n\r\n> Note que será necessário ter o **NPM** instalado para o comando funcionar.\r\n\r\n---\r\n\r\n<a name=\"Importação\"></a>\r\n\r\n## 📦 Importação\r\n\r\n### Node\r\n\r\n```js\r\nconst firstToLast = require('@desco/first-to-last')\r\n```\r\n\r\n### Browse\r\n\r\n```js\r\nimport firstToLast from '@desco/first-to-last'\r\n```\r\n\r\n---\r\n\r\n<a name=\"Como-Usar\"></a>\r\n\r\n## 📚 Como Usar\r\n\r\n```js\r\nconst list = [ 1, 2, 3, 4, 5, ]\r\nconst obj = { a: 1, b: 2, c: 3, d: 4, e: 5, }\r\n\r\nconsole.log(firstToLast(list, 2)) // [ 3, 4, 5, 1, 2, ]\r\nconsole.log(firstToLast(obj, 4)) // { e: 5, a: 1, b: 2, c: 3, d: 4, }\r\n\r\nconsole.log(firstToLast(list, 2, true)) // [ 4, 5, 1, 2, 3 ]\r\nconsole.log(firstToLast(obj, 4, true)) // { b: 2, c: 3, d: 4, e: 5, a: 1 }\r\n```\r\n\r\n### Parâmetros\r\n\r\n| Nome | Tipo | Padrão | Descrição |\r\n|---|---|---|---\r\n| list | Array/Object | - | Lista a ser ordenada |\r\n| count | Number | 1 | Quantidade de itens a serem remanejados |\r\n| reverse | Boolean | `false` | Se `true`, irá remanejar do fim para o início |\r\n\r\n---\r\n\r\n## Autor\r\n\r\n<table>\r\n  <tr>\r\n    <td width=\"150px\">\r\n      <img src=\"https://scontent.fsdu1-1.fna.fbcdn.net/v/t1.0-9/539886_235546170253505_5977326689811409130_n.jpg?_nc_cat=106&ccb=3&_nc_sid=174925&_nc_eui2=AeGgFWn_fWInwRkTo3mHSP993TbQ0TzG0Y3dNtDRPMbRjS-eZL1tr4I5maqz6O-jva9qWnIxKOsD3UtSm9CTeCys&_nc_ohc=Qw6NaDGrtIgAX9uFF2c&_nc_ht=scontent.fsdu1-1.fna&oh=5ebac9874d7a24e157c8c99fd965c2a4&oe=606539CE\" width=\"100px;\" alt=\"\"/>\r\n      <b>Rafael A. R. Dias</b>\r\n    </td>\r\n    <td>  \r\n      <a href=\"mailto:eu@diasrafael.com.br\" target=\"_blank\" >\r\n        <img alt=\"Email eu@diasrafael.com.br\" src=\"https://img.shields.io/static/v1?label=Email&message=eu@diasrafael.com.br&color=red&logo=gmail&style=for-the-badge\">\r\n      </a>\r\n      <a href=\"https://www.linkedin.com/in/diasrafael/\" target=\"_blank\">\r\n        <img alt=\"Linkedin @diasrafael\" src=\"https://img.shields.io/static/v1?label=Linkedin&message=@diasrafael&color=blue&logo=linkedin&style=for-the-badge\">\r\n      </a>\r\n      <a href=\"https://www.facebook.com/eudiasrafael\" target=\"_blank\">\r\n        <img alt=\"Facebook @eudiasrafael\" src=\"https://img.shields.io/static/v1?label=Facebook&message=@eudiasrafael&color=blue&logo=facebook&style=for-the-badge\">\r\n      </a>\r\n      <a href=\"https://github.com/descodifica\" target=\"_blank\">\r\n        <img alt=\"GitHub Overview @descodifica\" src=\"https://img.shields.io/static/v1?label=GitHub Overview&message=@descodifica&color=black&logo=github&style=for-the-badge\">\r\n      </a>\r\n      <a href=\"https://github.com/desco-npm\" target=\"_blank\">\r\n        <img alt=\"GitHub NPM @desco-npm\" src=\"https://img.shields.io/static/v1?label=GitHub NPM&message=@desco-npm&color=black&logo=github&style=for-the-badge\">\r\n      </a>\r\n      <a href=\"https://www.npmjs.com/org/desco\" target=\"_blank\">\r\n        <img alt=\"NPM @desco\" src=\"https://img.shields.io/static/v1?label=NPM&message=@desco&color=red&logo=npm&style=for-the-badge\">\r\n      </a>\r\n    </td>\r\n  </tr>\r\n</table>","readmeFilename":"README.md"}