{"_id":"vue-date-fns","_rev":"5-c268a81317f1354e0b80f82ae419c84f","name":"vue-date-fns","dist-tags":{"latest":"2.0.2"},"versions":{"1.0.0":{"name":"vue-date-fns","version":"1.0.0","description":"Date filter for Vue based on the date-fns.","main":"src/index.js","scripts":{"lint":"eslint .","lint:fix":"npm run lint -- --fix","test":"mocha --require ./test/setup.js './src/**/*.spec.js'","test:watch":"npm run test -- --watch"},"repository":{"type":"git","url":"git+https://github.com/mcibique/vue-date-fns.git"},"keywords":["vuejs","date","filter","date-filter","date-fns"],"author":{"name":"mcibique"},"license":"MIT","bugs":{"url":"https://github.com/mcibique/vue-date-fns/issues"},"homepage":"https://github.com/mcibique/vue-date-fns#readme","dependencies":{"date-fns":"^1.29.0"},"devDependencies":{"@vue/test-utils":"1.0.0-beta.25","chai":"4.2.0","eslint":"5.7.0","eslint-config-semistandard":"12.0.1","eslint-config-standard":"12.0.0","eslint-plugin-import":"2.14.0","eslint-plugin-node":"7.0.1","eslint-plugin-promise":"4.0.1","eslint-plugin-standard":"4.0.0","husky":"1.1.2","jsdom-global":"3.0.2","lint-staged":"7.3.0","mocha":"5.2.0","mocha-jsdom":"2.0.0","vue":"2.5.17","vue-template-compiler":"2.5.17"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint --fix","git add"]},"gitHead":"a0ab93fcef051252e275f4d1d652653d85542fe9","_id":"vue-date-fns@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.10.0","_npmUser":{"name":"mcibique","email":"mcibique@hotmail.com"},"dist":{"integrity":"sha512-Tvv4+6TBeqaRiBTZT1jW28xb7PPGHLfaIfqNHXDq6oKlCoQMhKrX7nNX19xLb+dghd+ezEpxFdpZfxgiUxMR9w==","shasum":"2d41f8679e3f3110065ec45872afe0d48759a622","tarball":"https://registry.npmjs.org/vue-date-fns/-/vue-date-fns-1.0.0.tgz","fileCount":8,"unpackedSize":19705,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbz38qCRA9TVsSAnZWagAAC9gP/2V7Cp8ydwghAnDTXdic\noSAUE3/ewIemplWxDl2sst8NBeNiYTQKLrBPX5Q3xPP4zHmym2VedxA7wt4D\nEuDMLfk2rf5ltYHL45wh5/hGqx3V1W/20Ae9T7GDkrQGqP/JMDBqFx/J4dAO\nRQQ9dAlYH0JkYvx/z40MRFekUZ87wx01Cv13flFEPAqRSzCcmIoh3LoGwfAO\njt3zIbsvZmJvl8aZ8QhB1JNMlUxZg3JXQYzPd19kUcGLxjUTlCykJ3dIRD6R\nyiy7eIlVWC3AWbvx9eZYCechylmpizHdSP7Xwa78RIMvZ9i6hB9hlkAecRGU\nYlYmAROtz0RCsUkQzu7aqz9XOsYjTVj71wEGiFtmJe5u3Z+++ZcTJFZaThCd\n/hsmSbGpS5gEbgmYhI7zloLK38cax7l2V3LqN4nOe46QngebUhfrbjkXL/Am\nXsO9LHcxSEGGBbV9DMGGGVq5TQKKkBn+zobJjV63Pz6L72cwMxEoLIqv+k28\nz5/tNPXPRepaWgjnAREJ652uawaNyDDbpf6406RcbLO1mDz9EadRsAxvzGVN\nrHC1tXcTYRIcmQuCwu4kgpCiWt7T2qZGBr4ZDJLO7Xfv4X5gw3QAJpnWeKMi\n3ZeoA5MOV80ZJ75myA1iB6KTwXeQFq+MjeeKEdhk7phu9NlWRciuNBgh8nq0\nkZH1\r\n=asCG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDP63lLehDC57H5IOmWwbyj9SxI8E8mjRUn9z6/TERn6wIgDnaUNcOPFNM/x+GoBz3kCN5wF/6ytwDE8IAi3dQGtW0="}]},"maintainers":[{"name":"mcibique","email":"mcibique@hotmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-date-fns_1.0.0_1540325161902_0.3728111373239609"},"_hasShrinkwrap":false},"1.1.0":{"name":"vue-date-fns","version":"1.1.0","description":"Date filter for Vue based on the date-fns.","main":"src/index.js","scripts":{"lint":"eslint .","lint:fix":"npm run lint -- --fix","test":"mocha --require ./test/setup.js './src/**/*.spec.js'","test:watch":"npm run test -- --watch"},"repository":{"type":"git","url":"git+https://github.com/mcibique/vue-date-fns.git"},"keywords":["vuejs","date","filter","date-filter","date-fns"],"author":{"name":"mcibique"},"license":"MIT","bugs":{"url":"https://github.com/mcibique/vue-date-fns/issues"},"homepage":"https://github.com/mcibique/vue-date-fns#readme","dependencies":{"date-fns":"^1.29.0"},"devDependencies":{"@vue/test-utils":"1.0.0-beta.29","chai":"4.2.0","eslint":"5.16.0","eslint-config-semistandard":"13.0.0","eslint-config-standard":"12.0.0","eslint-plugin-import":"2.17.3","eslint-plugin-node":"9.1.0","eslint-plugin-promise":"4.1.1","eslint-plugin-standard":"4.0.0","husky":"2.4.1","jsdom-global":"3.0.2","lint-staged":"8.2.0","mocha":"6.1.4","mocha-jsdom":"2.0.0","vue":"2.6.10","vue-template-compiler":"2.6.10"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint --fix","git add"]},"gitHead":"996707da7f324448052dd5b6d62794b3f0e356a8","_id":"vue-date-fns@1.1.0","_nodeVersion":"10.15.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-9xgVtDtK97C5ztLAelecfd+lfUpYn6nGRVxuD6SCk/FiN9pr7C81qP83STcsFw4hz0MfcOinfqd8ctBarMsmpA==","shasum":"f487046197e168dc2c44a385f79518715394aa02","tarball":"https://registry.npmjs.org/vue-date-fns/-/vue-date-fns-1.1.0.tgz","fileCount":8,"unpackedSize":23971,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdAmTzCRA9TVsSAnZWagAAyj0P/RUa28FBrdB51jhSaZYE\nwrQlPmjjRNT8ds5zeZwLLNs5pE1dk1909ItqZvH3z0IXK6iMaUSRI0/Ex9tk\nbs39bAfN3MmqpbHjD0v2Z7+1vIZV/80LeqTvHSNMl5hvMXSiuVHXI5m2vhSD\nJCQWJxxRuud9MLSwz5R/W90iHfvtcLvWHvFuFK5ImocX1dTMmdxlncaykXQ9\ntNOgOXTKBc5cXedV/gh7rS59yoBlaUFUzqPgqjdw1BBBvTS2y5ex0Lnekq/K\nCFkSKl47HyLW1Hty4w57erKGzcvfJYiSZ2ubHvEA5rDMf7JhCPbsitf0k6KK\nZsaQrfzoHqEZwV1DOrA2gA3vJtYMoE8rg43YK22+6AfZnm9HssAL4mSfH87I\nOKn9CnD4m7+tCAsHZqCE0tDzN7HbJz8ao+L5+xTsAO5hUUIeNSB70C6SqG8x\nrXZN2TISi/TgaOFKGrN8UjMWHFfClYmijt4K1j6WLtrc9/cteyQkYQtczgpO\nxPpeSr7sJu43wZW7ZONgnH8LC3XIDdWtVBeB0CQq12kEp33RbrZ3IovIAjgs\n4zSxz6pax6WLpFDkOpvSGgDVNTFRJUMeARHQi82bDlWUFKaFYDBgNaEtjJ1a\nRs+rxxW7FbHKgHkLi9negoLS0Beu00SKskOi/vTsQBCQGaSpTd1HdOfw4U4c\n4BWu\r\n=mZ5y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIACxX0TU6KuKMC7N8HApLPD80ny5yAA9jOADdV+s6WxuAiAnRdTqUVILdFkvhWhbVjXzNd222k51CeNt/gqJE1ETvA=="}]},"maintainers":[{"name":"mcibique","email":"mcibique@hotmail.com"}],"_npmUser":{"name":"mcibique","email":"mcibique@hotmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-date-fns_1.1.0_1560438002542_0.5860688056575458"},"_hasShrinkwrap":false},"2.0.0":{"name":"vue-date-fns","version":"2.0.0","description":"Date filter for Vue based on the date-fns.","main":"src/index.js","scripts":{"lint":"eslint .","lint:fix":"npm run lint -- --fix","test":"mocha --require ./test/setup.js './src/**/*.spec.js'","test:watch":"npm run test -- --watch"},"repository":{"type":"git","url":"git+https://github.com/mcibique/vue-date-fns.git"},"keywords":["vuejs","date","filter","date-filter","date-fns"],"author":{"name":"mcibique"},"license":"MIT","bugs":{"url":"https://github.com/mcibique/vue-date-fns/issues"},"homepage":"https://github.com/mcibique/vue-date-fns#readme","dependencies":{"date-fns":"^2.0.0"},"devDependencies":{"@vue/test-utils":"1.0.3","chai":"4.2.0","eslint":"7.1.0","eslint-config-semistandard":"15.0.0","eslint-config-standard":"14.1.1","eslint-plugin-import":"2.20.2","eslint-plugin-node":"11.1.0","eslint-plugin-promise":"4.2.1","eslint-plugin-standard":"4.0.1","husky":"4.2.5","jsdom-global":"3.0.2","lint-staged":"10.2.7","mocha":"7.2.0","mocha-jsdom":"2.0.0","vue":"2.6.11","vue-template-compiler":"2.6.11"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint --fix","git add"]},"gitHead":"0b31c4730fa9801389d325a41d7e99d33929cfca","_id":"vue-date-fns@2.0.0","_nodeVersion":"10.15.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-EfdBLCHzxHU55WQniwRTfC2Zf2WVHAz+TVwsbGdqsuFHXUz6Wis1DR3WDjxCBy5jXl2UyYKdttE5F9Lm9ndugw==","shasum":"5a843589e9384e9ad98bfd4e0e6d6ca0694524f8","tarball":"https://registry.npmjs.org/vue-date-fns/-/vue-date-fns-2.0.0.tgz","fileCount":6,"unpackedSize":11189,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0k48CRA9TVsSAnZWagAAS6cP/iRaZ4UOcaIxIWcDEJ4t\nZ6tzcdknlMeC498ggU114mJcX9gtQlgwrmr75ewar9YaSM8kFrBVhA0cKaRO\ngfAYXC6JJS237+NYA+MechYOBVFz6dBcvHXfMw/dTblTklXN9JVRodC78FK6\nPMIXAX8qvMvFjJIw3wxo6IVdLJWEwjuLaMRRQaA3r4nRJ8CiR52hepQ7L4WF\neJDwo+ajbIZE2+EykQn/7AZ9JclTtViBubd9eA4GNZoKR9ZNzz9Slqts8CKW\nB2JS9cjhERvb8jU9iLbJIhPMoenph9Z2gRyl6uKN14kJLAPS7HajGKp/SfOp\nNyFqXNRO6WxX7wm1SabuJvKx2Y38UNb5o1KycfoUvVT9ved1qg3Cb/5KHC9P\n1+i3TatxysLvIJ5ziCRgocSMgS/kP6/HeszFTzYaHq9r0Z75WxdOqC1V1ex1\nf6XfSg2Eo8R5gqIpYdm8QxgERkyTGRzx64aVxSvdmuxQFkavYN0fatMLauRh\nFH3CFKhuUgUMlEZKj4BZ8tBc5bAm68mVJF86Kni2A8yp43hzzpekFgbD76dX\nvZ4TRv4xfRFaVh58fZjuDunNxqwCsojFqNmnOn/DKftnhqSzJxppinwS449j\nPcAxyN4ujjRf+w3/uZZLxisKNW9oToy1061o6VDCXiLmjJ0wjyMhNI2KjkxF\nYD2z\r\n=abzc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEBel1QKitHl2OxMcprVCY8x7FEwEvnZInzO/O7K+usxAiEA5mSfqQ8H71qsFSuHqZZudQG99YiwLxfoj0svCZxYfpM="}]},"maintainers":[{"name":"mcibique","email":"mcibique@hotmail.com"}],"_npmUser":{"name":"mcibique","email":"mcibique@hotmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-date-fns_2.0.0_1590840891817_0.5300593003633784"},"_hasShrinkwrap":false},"2.0.1":{"name":"vue-date-fns","version":"2.0.1","description":"Date filter for Vue based on the date-fns.","main":"src/index.js","scripts":{"lint":"eslint .","lint:fix":"npm run lint -- --fix","test":"mocha --require ./test/setup.js './src/**/*.spec.js'","test:watch":"npm run test -- --watch"},"repository":{"type":"git","url":"git+https://github.com/mcibique/vue-date-fns.git"},"keywords":["vuejs","date","filter","date-filter","date-fns"],"author":{"name":"mcibique"},"license":"MIT","bugs":{"url":"https://github.com/mcibique/vue-date-fns/issues"},"homepage":"https://github.com/mcibique/vue-date-fns#readme","dependencies":{"date-fns":"^2.0.0"},"devDependencies":{"@vue/test-utils":"1.0.3","chai":"4.2.0","eslint":"7.1.0","eslint-config-semistandard":"15.0.0","eslint-config-standard":"14.1.1","eslint-plugin-import":"2.20.2","eslint-plugin-node":"11.1.0","eslint-plugin-promise":"4.2.1","eslint-plugin-standard":"4.0.1","husky":"4.2.5","jsdom-global":"3.0.2","lint-staged":"10.2.7","mocha":"7.2.0","mocha-jsdom":"2.0.0","vue":"2.6.11","vue-template-compiler":"2.6.11"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint --fix","git add"]},"gitHead":"ce575da2f61303ec78a84d9e6743a5dc114da8e0","_id":"vue-date-fns@2.0.1","_nodeVersion":"10.15.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-j2G97bVOKO0mVfFEnzCu5dQU0dgD8jLAAVU0dGRDqxZzzNXqep7d3WEGuuJ6mNOP5PM7GE+UqpKYfkL/LNmDKQ==","shasum":"a2a0d42552badd57f9ffd9a7a09d75331933495a","tarball":"https://registry.npmjs.org/vue-date-fns/-/vue-date-fns-2.0.1.tgz","fileCount":6,"unpackedSize":11189,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe5swfCRA9TVsSAnZWagAAxocQAIbdKCV2AeBjK331jhfY\nSyRsJFy8xYzG7yrKZldgBuZTxhP3lruMx69HsmR316wneZDHx7khFgIKsMzG\n84L4bOgHf7b94mEhY2/vPfPnIr0+IuXKbPqYmm13wwajnIZwZL4cnhLs1cgQ\nAm/k9TouKd+RKX0Ru6173lqWBtVrgYR9dk6ibxwWsrQKOWj1dOybTZfelSQ4\nli07ziKwJnlHCiOKSuNb/8URpL0TAgELJgF15kXOwUTkr9Z2klFFQnhm1I7r\nVENCeNy+TwDt1HMR2fRIQ2+lTT18iOtsep8REbHcrHV/rmsfVgEd8r3J7g8B\nU/0emc/nzDQGoU9Crb5Ec4IkwDye3UNwIFgrToXLUSmuqWrVNpN1tRvnWj98\nfoEQY+2R/cRDxAhMKpQFo5SWXpjfpbId+oqp1QbXuV9dK3a8MaViVez08+2+\nNhhjhfSZChSz6k/WLXroXz1UMzljk168gTySq3/Pafy1QSk2RQLw2Sic/Dlv\ntH4BIVxzBYupTMsrcJNj890jjRGXHItWle9QD1t25z7z39cZpeBaU5B+w7RW\neOEZwzokyGVyKvC9v/pK0jrnlsbZW6Gg7hOd5dUqtqU8+ouuM9JTv1VMyjtZ\nHjZY5PEr89v32ypP3N4Jz7kCIfwMzK8EZ1sClmy9GxnB/n7LOQGs2W7mzTvf\nQ2Za\r\n=CUON\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEx68jkYxFs+qs9ODf1EIT/GB+DXY6qakbkIy9Bm48UqAiAiXjTGknJ4mhvk6Jij5N18mGepyhHy9kio3GX3EPoDdw=="}]},"maintainers":[{"name":"mcibique","email":"mcibique@hotmail.com"}],"_npmUser":{"name":"mcibique","email":"mcibique@hotmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-date-fns_2.0.1_1592183839305_0.5284078806567529"},"_hasShrinkwrap":false},"2.0.2":{"name":"vue-date-fns","version":"2.0.2","description":"Date filter for Vue 2.X based on the date-fns.","main":"src/index.js","scripts":{"lint":"eslint .","lint:fix":"npm run lint -- --fix","test":"mocha --require ./test/setup.js './src/**/*.spec.js'","test:watch":"npm run test -- --watch"},"repository":{"type":"git","url":"git+https://github.com/mcibique/vue-date-fns.git"},"keywords":["vuejs","date","filter","date-filter","date-fns"],"author":{"name":"mcibique"},"license":"MIT","bugs":{"url":"https://github.com/mcibique/vue-date-fns/issues"},"homepage":"https://github.com/mcibique/vue-date-fns#readme","dependencies":{"date-fns":"^2.0.0"},"devDependencies":{"@vue/test-utils":"1.3.0","chai":"4.3.6","eslint":"7.15.0","eslint-config-semistandard":"15.0.1","eslint-config-standard":"16.0.3","eslint-plugin-import":"2.26.0","eslint-plugin-node":"11.1.0","eslint-plugin-promise":"4.2.1","husky":"4.3.8","jsdom-global":"3.0.2","lint-staged":"10.5.3","mocha":"9.2.2","mocha-jsdom":"2.0.0","vue":"2.6.14","vue-template-compiler":"2.6.14"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint --fix","git add"]},"gitHead":"8d036a552a8eac1226ddfb7d16c348daaa3e08f1","_id":"vue-date-fns@2.0.2","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-XHd2oYZY0AfWJohCwREhvfziJdiUHit6HYKUPTyvx5wDUaFA4TWDdkFp78IIrn0nl86oTGM1/5yXtNvqYXL5ew==","shasum":"dc548041e85e49582ac429df1a44834bfa29ba55","tarball":"https://registry.npmjs.org/vue-date-fns/-/vue-date-fns-2.0.2.tgz","fileCount":5,"unpackedSize":10928,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFQheItZraO3v7nEkRz6tDB3Uyh19Kk8LnhKOX/1SI1AIhAOcQINZzcq7vSTykZF+00vFwPBhgAdvq5G5r4stDpt50"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiUuEeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr4EA/8DefHvWvNoZJinL9HS4w8/gwpsDQG9V5DjX2Tr2qgf01GqlsG\r\n5VDMkvluOHS6O1b2HgTRbV2WCYtZCJIU96Qp/Ge+A7iDGe9fOOX3ObDaLCGK\r\nOW82DrwDQAhNfedtqn278/zvuHyQ34KyugDAHQfgOOKEiHg7EKI9hFzKY7Cr\r\nHgqC7Kv65nY8019a7mU9HNba/hd8KM4Z2ImDs22Gxbc7GQJcnbBci4KWNstU\r\nBktoa1Y73kLKsSY7Uq/c0ranaUic+oRVXo7RNxXmwMTQ9Np0otSUcqmFUanp\r\nd4UcMNxIYI9UTijIJm9V/2DvO2tMTq2IXm0BJ0t5w4+Zg0VgRwswFfazfzju\r\nLshWXwjwNQ3oDKhoE7eP4RLEs3PJsWaPMoA14VP26L80wYVaD1lINW6w9M3E\r\nrEHrernEzApPq2UO+9YGZfv8mMPYRhBEF+syN9pguTb3C9bneip2KvEHs0/Q\r\ne/iPYIhTB6fva2/gXIB645vBZkY1Gvb98jPUI4msrTlQ+EXklxhquENAMmO4\r\nvlNFaRP5qaB1e7pxWTCtR94WqD/qaZj3TznqMhvnTypyexVc7oE6pLSuspq4\r\n4jwi2whetkWQUWdqV3tuQpVRUBOrfOtR00MH8n3RHHVp6RAiyaYF2eMNUntB\r\nxl3Y0KFmvYVXX04wslxUN84vvuPerE2aBZQ=\r\n=WCn5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mcibique","email":"mcibique@hotmail.com"},"directories":{},"maintainers":[{"name":"mcibique","email":"mcibique@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-date-fns_2.0.2_1649598750699_0.17778726615884421"},"_hasShrinkwrap":false}},"time":{"created":"2018-10-23T20:06:01.900Z","1.0.0":"2018-10-23T20:06:02.044Z","modified":"2022-05-23T14:01:11.715Z","1.1.0":"2019-06-13T15:00:02.688Z","2.0.0":"2020-05-30T12:14:51.952Z","2.0.1":"2020-06-15T01:17:19.477Z","2.0.2":"2022-04-10T13:52:30.855Z"},"maintainers":[{"name":"mcibique","email":"mcibique@hotmail.com"}],"description":"Date filter for Vue 2.X based on the date-fns.","homepage":"https://github.com/mcibique/vue-date-fns#readme","keywords":["vuejs","date","filter","date-filter","date-fns"],"repository":{"type":"git","url":"git+https://github.com/mcibique/vue-date-fns.git"},"author":{"name":"mcibique"},"bugs":{"url":"https://github.com/mcibique/vue-date-fns/issues"},"license":"MIT","readme":"# Date filter for Vue 2.X based on [date-fns](https://date-fns.org/)\n\n[![npm version](https://badgen.net/npm/v/vue-date-fns)](https://www.npmjs.com/package/vue-date-fns)\n[![minzipped size](https://badgen.net/bundlephobia/minzip/vue-date-fns)](https://bundlephobia.com/result?p=vue-date-fns)\n\nThe `format` function from [date-fns](https://date-fns.org/) available as a filter for Vue apps. Why date-fns and not moment.js? There are already few [articles](https://medium.com/@k2u4yt/momentjs-vs-date-fns-6bddc7bfa21e), [covering](https://hackernoon.com/why-you-should-choose-date-fns-over-moment-js-in-your-nodejs-applications-116d1a709c43), [that](https://github.com/you-dont-need/You-Dont-Need-Momentjs).\n\n## Disclaimer\n\nThis package is just a Vue 2.X wrapper around `date-fns`. All important (and excellent) stuff is happening inside the `date-fns` library. If you found a bug please report it in their [issue tracker](https://github.com/date-fns/date-fns/issues) or help them and [contribute the PR](https://github.com/date-fns/date-fns/blob/master/CONTRIBUTING.md). If you like their package, [support them](https://opencollective.com/date-fns), because they're doing an amazing job.\n\n## Installation\n\n```sh\nnpm install vue-date-fns --save\n```\n\nor\n\n```sh\nyarn add vue-date-fns\n```\n\n`vue-date-fns` depends on `date-fns` version 2. If you are using the version 1 of `date-fns`, then install `vue-date-fns@1`, which is compatible.\n\n### Breaking changes in version 2\n\n`vue-date-fns@2` inherits all **breaking changes** from `date-fns@2`, because it's just a wrapper around their `format` function. There were major breaking changes in the format API, e.g. `DD MMMM YYYY` should be from now on `dd MMMM yyyy`.\n\nBefore upgrading to `date-fns@2` and `vue-date-fns@2`, please check `date-fns` docs for [format function](https://date-fns.org/v2.14.0/docs/format#v2.0.0-breaking-changes), their [blog explaining changes in the format](https://blog.date-fns.org/post/unicode-tokens-in-date-fns-v2-sreatyki91jg/) and their changelog for [common breaking changes](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes) in the `date-fns` library. It is very likely that your existing code will break.\n\n## Usage\n\n### Filter in individual component\n\nYou can use filter directly in your component.\n\n```js\n// my-component.js\nimport { dateFilter } from \"vue-date-fns\";\n\nexport default {\n    filters: {\n        date: dateFilter\n    }\n}\n```\n\n```html\n<!-- my-component.vue -->\n<template>\n    <div>Now: {{ new Date() | date }}</div>\n</template>\n```\n\n### Global filter\n\nYou can register the filter globally in your app.\n\n```js\n// main.js\nimport { dateFilter } from \"vue-date-fns\";\n\nVue.filter(\"date\", dateFilter);\n```\n\n```html\n<!-- my-component.vue -->\n<template>\n    <div>Now: {{ new Date() | date }}</div>\n</template>\n```\n\n### Global filter and mixin\n\nYou can also use the filter as a mixin if you install the entire plugin.\n\n```js\n// main.js\nimport VueDateFns from \"vue-date-fns\";\n\nVue.use(VueDateFns);\n```\n\n```js\n// my-component.js\nexport default {\n    computed: {\n        now() {\n            return this.$date(new Date());\n        }\n    }\n}\n```\n\n```html\n<!-- my-component.vue -->\n<template>\n    <div>\n        <div>Now: {{ now }}</div>\n        <div>Now: {{ new Date() | date }}</div>\n        <div>Now: {{ $date(new Date()) }}</div>\n    </div>\n</template>\n```\n\n## Options\n\nThe filter and mixin support the same arguments as the original `format` function (see [docs](https://date-fns.org/v2.14.0/docs/format)):\n\n`format(date, format, [options])`\n\nSo you can do this:\n\n```html\n<!-- my-component.vue -->\n<template>\n    <div>\n        <div>Now: {{ new Date() | date('dd MMMM yyyy') }}</div>\n        <div>Now: {{ $date(new Date(), 'dd MMMM yyyy') }}</div>\n    </div>\n</template>\n```\n\nor provide custom locale:\n\n```js\n// my-component.js\nimport locale from \"date-fns/locale/sk\";\n\nexport default {\n    computed: {\n        now() {\n            return this.$date(new Date(), \"dd MMMM yyyy\", { locale });\n        }\n    }\n}\n```\n\n## Overriding default options\n\nThe default date format and default locale options are the same as for the original `format` function (see the [docs](https://date-fns.org/v2.14.0/docs/format#arguments)). There is a way how to set your own:\n\n### Filter in individual component\n\nInstead of importing the `dateFilter`, import `createDateFilter` factory function and use it for creating the dateFilter with your own defaults:\n\n```js\n// my-component.js\nimport { createDateFilter } from \"vue-date-fns\";\nimport locale from \"date-fns/locale/sk\";\n\nexport default {\n    filters: {\n        date: createDateFilter(\"dd MMMM yyyy\", { locale })\n    }\n}\n```\n\n### Global filter\n\nInstead of importing the `dateFilter`, import `createDateFilter` factory function and use it for creating the dateFilter with your own defaults:\n\n```js\n// main.js\nimport { createDateFilter } from \"vue-date-fns\";\nimport locale from \"date-fns/locale/sk\";\n\nVue.filter(\"date\", createDateFilter(\"dd MMMM yyyy\", { locale }));\n```\n\n### Global filter and mixin\n\nPass the new defaults as other parameters to the `.use()` call. The defaults are applied for global filter and mixin.\n\n```js\n// main.js\nimport VueDateFns from \"vue-date-fns\";\n\nVue.use(VueDateFns, \"dd MMMM yyyy\", { locale });\n```\n\n## Customize the global filter name\n\nIf you want to change the global name of the filter and mixin, pass the fourth argument into the `.use()` call. If the value is falsy, it defaults to `\"date\"`.\n\n```js\n// main.js\nimport VueDateFns from \"vue-date-fns\";\n\nVue.use(VueDateFns, /* custom format */, /* custom options */, \"myDateFilter\");\n```\n\n```html\n<!-- my-component.vue -->\n<template>\n    <div>\n        <div>Now: {{ new Date() | myDateFilter }}</div>\n        <div>Now: {{ new Date() | myDateFilter('dd MMMM yyyy') }}</div>\n        <div>Now: {{ $myDateFilter(new Date(), 'dd MMMM yyyy') }}</div>\n    </div>\n</template>\n```\n\n## Default date format\n\nIf you don't set up any default format for your custom filters, `vue-date-fns` will automatically set it to `yyyy-MM-dd'T'HH:mm:ss.SSSxxx`, following [the migration guide](https://date-fns.org/v2.14.0/docs/format#v2.0.0-breaking-changes) of `date-fns`.\n\nIf you would like to change the default format, follow the [Overriding default options](#overriding-default-options) section and create a custom filter with custom defaults.\n","readmeFilename":"README.md"}