{"name":"dayjs","version":"1.11.17","keywords":["dayjs","date","time","immutable","moment"],"author":{"name":"iamkun"},"license":"MIT","_id":"dayjs@1.11.17","maintainers":[{"name":"iamkun","email":"kunhello@outlook.com"}],"homepage":"https://day.js.org","bugs":{"url":"https://github.com/iamkun/dayjs/issues"},"dist":{"shasum":"c93ed881d6238dda4f4e5a61388e0ca399f999e7","tarball":"http://registry-npm.ywwl.com/dayjs/download/dayjs-1.11.17.tgz","fileCount":451,"integrity":"sha512-qgiVOerp5QCVMfE7hZ6z/gM+ug52I+xv70rCf6rWJXf0b4d8Kv6Yw9BmcLZlCvP3Xz8i3fjXbaU6Hwu7aGRXfA==","signatures":[{"sig":"MEUCIQC3HhLgLpaX2UQGlVk49rKdhV0LDpgL37M7X0Bid3HjCgIgGOnXvbjuan9lDjjRDkXtPyaAaBMTAE2KK2WCX9pm/Qs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":672262,"size":145535,"noattachment":false,"key":"/dayjs/-/dayjs-1.11.17.tgz"},"jest":{"roots":["test"],"testURL":"http://localhost","testRegex":"test/(.*?/)?.*test.js$","collectCoverage":true,"coverageDirectory":"./coverage/","collectCoverageFrom":["src/**/*"]},"main":"dayjs.min.js","types":"index.d.ts","gitHead":"7fcf939982437e50c08d33b6e1e53ab46f53c1f4","scripts":{"lint":"eslint src/* test/* build/*","size":"size-limit && gzip-size dayjs.min.js","test":"TZ=Pacific/Auckland npm run test-tz && TZ=Europe/London npm run test-tz && TZ=America/Whitehorse npm run test-tz && npm run test-tz && jest","babel":"cross-env BABEL_ENV=build babel src --out-dir esm --copy-files && node build/esm","build":"cross-env BABEL_ENV=build node build && npm run size","sauce":"npx karma start karma.sauce.conf.js","test-tz":"date && jest test/timezone.test --coverage=false","prettier":"prettier --write \"docs/**/*.md\"","test:sauce":"npm run sauce -- 0 && npm run sauce -- 1 && npm run sauce -- 2  && npm run sauce -- 3"},"_npmUser":{"name":"iamkun","email":"kunhello@outlook.com"},"deprecated":"This version has a bug that adds semantic-release dependencies by mistake. Please upgrade to 1.11.18.","pre-commit":["lint"],"repository":{"url":"git+https://github.com/iamkun/dayjs.git","type":"git"},"size-limit":[{"path":"dayjs.min.js","limit":"2.99 KB"}],"_npmVersion":"10.9.3","description":"2KB immutable date time library alternative to Moment.js with the same modern API ","directories":{},"_nodeVersion":"22.18.0","dependencies":{"semantic-release":"^24.2.7","@semantic-release/git":"^10.0.1","@semantic-release/changelog":"^6.0.3"},"_hasShrinkwrap":false,"devDependencies":{"ncp":"^2.0.0","jest":"^22.4.3","karma":"^2.0.2","eslint":"^4.19.1","moment":"2.29.2","rollup":"^2.45.1","mockdate":"^2.0.2","prettier":"^1.16.1","cross-env":"^5.1.6","@babel/cli":"^7.0.0-beta.44","babel-core":"^7.0.0-bridge.0","babel-jest":"^22.4.3","pre-commit":"^1.2.2","size-limit":"^0.18.0","typescript":"^2.8.3","@babel/core":"^7.0.0-beta.44","@babel/node":"^7.0.0-beta.44","jasmine-core":"^2.99.1","gzip-size-cli":"^2.1.0","karma-jasmine":"^1.1.2","moment-timezone":"0.5.31","@babel/preset-env":"^7.0.0-beta.44","eslint-plugin-jest":"^21.15.0","rollup-plugin-babel":"^4.4.0","eslint-plugin-import":"^2.10.0","karma-sauce-launcher":"^1.1.0","rollup-plugin-terser":"^7.0.2","@semantic-release/github":"^11.0.4","eslint-config-airbnb-base":"^12.1.0","babel-plugin-external-helpers":"^6.22.0"},"_npmOperationalInternal":{"tmp":"tmp/dayjs_1.11.17_1756489264871_0.716628939307747","host":"s3://npm-registry-packages-npm-production"},"readme":"English | [简体中文](./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) | [Türkçe](./docs/tr/README-tr.md) | [සිංහල](./docs/si/README-si.md) | [עברית](./docs/he/README-he.md)\n\n<p align=\"center\"><a href=\"https://day.js.org/\" target=\"_blank\" rel=\"noopener noreferrer\"><img width=\"550\"\n                                                                             src=\"https://user-images.githubusercontent.com/17680888/39081119-3057bbe2-456e-11e8-862c-646133ad4b43.png\"\n                                                                             alt=\"Day.js\" /></a></p>\n<p align=\"center\">Fast <b>2kB</b> alternative to Moment.js with the same modern API</p>\n<p align=\"center\">\n    <a href=\"https://bundlephobia.com/package/dayjs\"><img\n            src=\"https://img.shields.io/bundlephobia/minzip/dayjs?style=flat-square&color=%2345cc11\"\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://github.com/iamkun/dayjs/actions/workflows/check.yml\"><img\n            src=\"https://img.shields.io/github/actions/workflow/status/iamkun/dayjs/check.yml?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    <a href=\"https://saucelabs.com/u/dayjs\">\n        <img width=\"750\" src=\"https://user-images.githubusercontent.com/17680888/40040137-8e3323a6-584b-11e8-9dba-bbe577ee8a7b.png\" alt=\"Sauce Test Status\">\n    </a>\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```js\ndayjs().startOf('month').add(1, 'day').set('year', 2018).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 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```javascript\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 them.\n\n```javascript\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```javascript\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## Downloads\n![Day.js Chart](./docs/assets/download.png)\n\n## Sponsors\n\nSupport this project by becoming a sponsor. Your logo will show up here with a link to your website.\n\n[[Become a sponsor via Github](https://github.com/sponsors/iamkun/)] [[Become a sponsor via OpenCollective](https://opencollective.com/dayjs#sponsor)]\n\n<a href=\"https://github.com/ken-swyfft\" target=\"_blank\">\n  <img width=\"70\" src=\"https://avatars.githubusercontent.com/u/65305317?v=4\">\n</a>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<a href=\"https://opencollective.com/sight-sound\" target=\"_blank\">\n  <img width=\"70\" src=\"https://images.opencollective.com/sight-sound/54f7220/logo/256.png?height=256\">\n</a>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<a href=\"https://opencollective.com/filerev\" target=\"_blank\">\n  <img width=\"70\" src=\"https://images.opencollective.com/filerev/93a8f05/logo/256.png?height=256\" />\n</a>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<a href=\"https://opencollective.com/carboneio\" target=\"_blank\">\n  <img width=\"70\" src=\"https://images.opencollective.com/carboneio/fe2066c/logo/256.png?height=256\">\n</a>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<a href=\"https://www.netrouting.com\" target=\"_blank\" alt=\"Netrouting Dedicated Servers\">\n  <img width=\"70\" src=\"https://netrouting.com/wp-content/uploads/2026/04/Logo-netrouting.png\">\n</a>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<a href=\"https://anonstories.com\" target=\"_blank\">\n  <img alt=\"Instagram Story Viewer\" width=\"70\" src=\"https://avatars.githubusercontent.com/u/240702364?v=4\">\n</a>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<a href=\"https://www.sayfone.com/call-rates \" target=\"_blank\">\n  <img alt=\"Sayfone Cheap international calls\" width=\"70\" src=\"https://github.com/user-attachments/assets/68f91139-b190-421b-bcd7-43a8e3d84fe7\">\n</a>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<a href=\"https://automatio.ai\" target=\"_blank\" alt=\"Automatio AI\">\n  <img width=\"70\" src=\"https://avatars.githubusercontent.com/u/1984909?v=4\" />\n</a>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<a href=\"https://bestkru.com/\" target=\"_blank\">\n  <img width=\"70\" src=\"https://avatars.githubusercontent.com/u/159320286\" alt=\"BestKru\">\n</a>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<a href=\"https://handsontable.com/docs/react-data-grid/?utm_source=Dayjs_GH&utm_medium=sponsorship&utm_campaign=library_sponsorship\" target=\"_blank\">\n  <img width=\"70\" src=\"https://github.com/user-attachments/assets/426c3476-dc34-44d1-a904-ed58dbd20dd6\">\n</a>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<a href=\"https://route4me.com/\" target=\"_blank\">\n  <img width=\"70\" src=\"https://github.com/user-attachments/assets/3fbc86c5-98a9-49c2-beae-1969026fcd76\" alt=\"Route Optimizer and Route Planner Software\">\n</a>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<a href=\"https://github.com/sentdm\" target=\"_blank\">\n  <img width=\"70\" src=\"https://avatars.githubusercontent.com/u/153308555?s=200&v=4\">\n</a>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<a href=\"https://github.com/blacksandsmedia\" target=\"_blank\">\n  <img width=\"70\" src=\"https://avatars.githubusercontent.com/u/116517387?v=4\">\n</a>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<a href=\"https://github.com/mvpsnet\" target=\"_blank\">\n  <img width=\"70\" src=\"https://avatars.githubusercontent.com/u/89784111?s=96&v=4\">\n</a>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<a href=\"https://onlydoc.com/\" target=\"_blank\" alt><img alt=\"\" width=\"70\" src=\"https://github.com/user-attachments/assets/f5d5938e-48a1-420b-af72-c4012d3941c1\" /></a>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<a href=\"https://unaimytext.com\" target=\"_blank\">\n  <img width=\"70\" src=\"https://github.com/user-attachments/assets/8510473a-c097-4bc9-8c61-b7515194f6f5\">\n</a>\n\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#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","publish_time":1756489265142,"_cnpm_publish_time":1756489265142,"dist-tags":{"alpha":"2.0.0-alpha.4","latest":"1.11.23"}}