{"name":"dayjs","version":"2.0.0-alpha.1","description":"2KB immutable date time library alternative to Moment.js with the same modern API.","keywords":["dayjs","date"],"homepage":"https://day.js.org","license":"MIT","author":{"name":"iamkun"},"contributors":[{"name":"三咲智子","email":"sxzz@sxzz.moe","url":"https://github.com/sxzz"}],"funding":"https://opencollective.com/dayjs","main":"./dist/index.js","module":"./dist/index.mjs","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs"},"./*":{"require":"./dist/*.js","import":"./dist/*.mjs"}},"unpkg":"./dist/index.iife.min.js","jsdelivr":"./dist/index.iife.min.js","repository":{"type":"git","url":"git+https://github.com/iamkun/dayjs.git"},"scripts":{"clean":"rimraf dist","build":"esno build/index.ts","size":"pnpm run build && size-limit","lint":"eslint . --ext .js,.ts,.json","lint:fix":"pnpm run lint -- --fix","format":"prettier . --write","test":"vitest"},"devDependencies":{"@size-limit/file":"^7.0.8","@sxzz/eslint-config-prettier":"^2.1.1","@sxzz/eslint-config-ts":"^2.1.1","@types/node":"*","c8":"^7.11.2","esbuild":"^0.14.36","eslint":"^8.13.0","eslint-define-config":"^1.3.0","esno":"^0.14.1","fast-glob":"^3.2.11","moment":"^2.29.3","prettier":"^2.6.2","rimraf":"^3.0.2","size-limit":"^7.0.8","ts-morph":"^14.0.0","typescript":"^4.6.3","utility-types":"^3.10.0","vitest":"^0.9.3"},"engines":{"node":">=14.17.0"},"size-limit":[{"limit":"2.99 KB","path":"dist/index.min.js"},{"limit":"2.99 KB","path":"dist/index.min.mjs"},{"limit":"2.99 KB","path":"dist/index.iife.min.js"}],"types":"./dist/index.d.ts","readme":"## TODO\n\n- [x] locale\n- migrate plugins\n- docs\n\n---\n\nEnglish | [简体中文](./docs/zh-cn/README.zh-CN.md) | [日本語](./docs/ja/README-ja.md) | [Português Brasileiro](./docs/pt-br/README-pt-br.md) | [한국어](./docs/ko/README-ko.md) | [Español (España)](./docs/es-es/README-es-es.md) | [Русский](./docs/ru/README-ru.md)\n\n<p align=\"center\">\n  <a href=\"https://day.js.org/\" target=\"_blank\" rel=\"noopener noreferrer\">\n    <img width=\"550\"\n      src=\"https://user-images.githubusercontent.com/17680888/39081119-3057bbe2-456e-11e8-862c-646133ad4b43.png\"\n      alt=\"Day.js\"\n    >\n  </a>\n</p>\n\n<p align=\"center\">Fast <b>2kB</b> alternative to Moment.js with the same modern API</p>\n\n<p align=\"center\">\n    <a href=\"https://unpkg.com/dayjs/dayjs.min.js\"><img\n            src=\"https://img.badgesize.io/https://unpkg.com/dayjs/dayjs.min.js?compression=gzip&style=flat-square\"\n            alt=\"Gzip Size\"></a>\n    <a href=\"https://www.npmjs.com/package/dayjs\"><img src=\"https://img.shields.io/npm/v/dayjs.svg?style=flat-square&colorB=51C838\"\n                                                       alt=\"NPM Version\"></a>\n    <a href=\"https://travis-ci.com/iamkun/dayjs\"><img\n            src=\"https://img.shields.io/travis/iamkun/dayjs/master.svg?style=flat-square\" alt=\"Build Status\"></a>\n    <a href=\"https://codecov.io/gh/iamkun/dayjs\"><img\n            src=\"https://img.shields.io/codecov/c/github/iamkun/dayjs/master.svg?style=flat-square\" alt=\"Codecov\"></a>\n    <a href=\"https://github.com/iamkun/dayjs/blob/master/LICENSE\"><img\n            src=\"https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\" alt=\"License\"></a>\n    <br>\n</p>\n\n> Day.js is a minimalist JavaScript library that parses, validates, manipulates, and displays dates and times for modern browsers with a largely Moment.js-compatible API. If you use Moment.js, you already know how to use Day.js.\n\n```ts\ndayjs()\n  .startOf('month')\n  .add(1, 'day')\n  .set('year', 2018)\n  .format('YYYY-MM-DD HH:mm:ss')\n```\n\n- 🕒 Familiar Moment.js API & patterns\n- 💪 Immutable\n- 🔥 Chainable\n- 🌐 I18n support\n- 📦 2kb mini library\n- 👫 All browsers supported\n\n---\n\n## Getting Started\n\n### Documentation\n\nYou can find for more details, API, and other docs on [day.js.org](https://day.js.org/) website.\n\n### Installation\n\n```console\nnpm install dayjs --save\n```\n\n📚[Installation Guide](https://day.js.org/docs/en/installation/installation)\n\n### API\n\nIt's easy to use Day.js APIs to parse, validate, manipulate, and display dates and times.\n\n```ts\ndayjs('2018-08-08') // parse\n\ndayjs().format('{YYYY} MM-DDTHH:mm:ss SSS [Z] A') // display\n\ndayjs().set('month', 3).month() // get & set\n\ndayjs().add(1, 'year') // manipulate\n\ndayjs().isBefore(dayjs()) // query\n```\n\n📚[API Reference](https://day.js.org/docs/en/parse/parse)\n\n### I18n\n\nDay.js has great support for internationalization.\n\nBut none of them will be included in your build unless you use it.\n\n```ts\nimport 'dayjs/locale/es' // load on demand\n\ndayjs.locale('es') // use Spanish locale globally\n\ndayjs('2018-05-05').locale('zh-cn').format() // use Chinese Simplified locale in a specific instance\n```\n\n📚[Internationalization](https://day.js.org/docs/en/i18n/i18n)\n\n### Plugin\n\nA plugin is an independent module that can be added to Day.js to extend functionality or add new features.\n\n```ts\nimport advancedFormat from 'dayjs/plugin/advancedFormat' // load on demand\n\ndayjs.extend(advancedFormat) // use plugin\n\ndayjs().format('Q Do k kk X x') // more available formats\n```\n\n📚[Plugin List](https://day.js.org/docs/en/plugin/plugin)\n\n## Sponsors\n\nSupport this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/dayjs#sponsor)]\n\n<a href=\"https://opencollective.com/dayjs/sponsor/0/website\" target=\"_blank\"><img src=\"https://opencollective.com/dayjs/sponsor/0/avatar.svg\"></a>\n<a href=\"https://opencollective.com/dayjs/sponsor/1/website\" target=\"_blank\"><img src=\"https://opencollective.com/dayjs/sponsor/1/avatar.svg\"></a>\n<a href=\"https://opencollective.com/dayjs/sponsor/2/website\" target=\"_blank\"><img src=\"https://opencollective.com/dayjs/sponsor/2/avatar.svg\"></a>\n<a href=\"https://opencollective.com/dayjs/sponsor/3/website\" target=\"_blank\"><img src=\"https://opencollective.com/dayjs/sponsor/3/avatar.svg\"></a>\n\n## Contributors\n\nThis project exists thanks to all the people who contribute.\n\nPlease give us a 💖 star 💖 to support us. Thank you.\n\nAnd thank you to all our backers! 🙏\n\n<a href=\"https://opencollective.com/dayjs/backer/0/website?requireActive=false\" target=\"_blank\"><img src=\"https://opencollective.com/dayjs/backer/0/avatar.svg?requireActive=false\"></a>\n<a href=\"https://opencollective.com/dayjs/backer/1/website?requireActive=false\" target=\"_blank\"><img src=\"https://opencollective.com/dayjs/backer/1/avatar.svg?requireActive=false\"></a>\n<a href=\"https://opencollective.com/dayjs/backer/2/website?requireActive=false\" target=\"_blank\"><img src=\"https://opencollective.com/dayjs/backer/2/avatar.svg?requireActive=false\"></a>\n<a href=\"https://opencollective.com/dayjs/backer/3/website?requireActive=false\" target=\"_blank\"><img src=\"https://opencollective.com/dayjs/backer/3/avatar.svg?requireActive=false\"></a>\n<a href=\"https://opencollective.com/dayjs#backers\" target=\"_blank\"><img src=\"https://opencollective.com/dayjs/contributors.svg?width=890\" /></a>\n\n## License\n\nDay.js is licensed under a [MIT License](./LICENSE).\n","readmeFilename":"README.md","gitHead":"d1a9e60affe132bfaa975f643dd77d2659edbbec","bugs":{"url":"https://github.com/iamkun/dayjs/issues"},"_id":"dayjs@2.0.0-alpha.1","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-GEduILVwuVMSRMv5L1RRP6pGLz5u1oKh7p/+NIJVI5qNQX0MlMwiTyAgrlFItGlTzMikj68ECQouZEqzCm0+xA==","shasum":"d71be1f241d8aaceec1e5d188393335869593bf4","tarball":"http://registry-npm.ywwl.com/dayjs/download/dayjs-2.0.0-alpha.1.tgz","fileCount":40,"unpackedSize":245594,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDRtZOApfgiQA+kzrNc+bdRTT/8wFcEDbTfLdaHm4R4NAiAgEGzGA4mFFlhB+F8ozWsG1z0tCtejXsCJU3d/+KvkGg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJia9UUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrjQA//QLAadgL1Bmcy0a9yKWQoTr2Za/9n81eAoU2vOPuAyIiFtC/J\r\n32pNrRkvfTdvnDzwsXFGx2Oh2OZaZx4S1QH19j7sbmJIwAQX4Dh/NB2Q1acX\r\ny46rv2yCFFdbKuO1I7aejkAqrrhZ4UqymLvUNP0xPXGAeRZhVw1SPTMv39yW\r\noZXUddg6bLhnMsf4idht3O2/+OL1EEmXhda7qOrl+G1BbehRflNLgdqtIVkL\r\nSzEaZBVOdmnJPUQqQ4dXfRSxobkWr4ez9qSAPgRlE03pLiZgxc1ePfDco3ys\r\n1OlPHAb04PerVAq0ozPEbbIEAbNQ42KFXqZ9yQ2CBlMNIutkPB0quRh1aAbp\r\nOsD0nzQIgRuIvX1OJ6ejKlDV92ZmG684rtmGjoYoo+5ohNAVw4hHdcABwLuu\r\nq6GqMFG/ZByqsrmsF5xAOh2wY+sriV6+ygzZXTGlPN+niU2uwRi9z/SDGU1r\r\nvjXlt8nzDJsKh1hUhdvKoyBcMLb2yJ/NqrHhg2eQ+v0K1jwN+oJhVzOt4eWt\r\nDhcsT4EOaQa5K4JqjTXFBixZnawok9pgP7Qo1Jxi6Q8VxiknwLdtuFkJdQPQ\r\n8A40mu50jjVVSJ5a3MxWmm4az85Mt/2BRTVkff3l1UtcaECXSEq5aPIBM0dA\r\nOUPsp8j8RM9ptT5TenvePBBjcjCr/myks9w=\r\n=BlVz\r\n-----END PGP SIGNATURE-----\r\n","size":70880,"noattachment":false,"key":"/dayjs/-/dayjs-2.0.0-alpha.1.tgz"},"_npmUser":{"name":"iamkun","email":"kunhello@outlook.com"},"directories":{},"maintainers":[{"name":"iamkun","email":"kunhello@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dayjs_2.0.0-alpha.1_1651234067926_0.3240346821144704"},"_hasShrinkwrap":false,"publish_time":1651234068114,"_cnpm_publish_time":1651234068114,"dist-tags":{"alpha":"2.0.0-alpha.4","latest":"1.11.23"}}