{"name":"dayjs","version":"2.0.0-alpha.4","description":"2KB immutable date time library alternative to Moment.js with the same modern API ","main":"./dist/index.js","module":"./dist/esm/index.mjs","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs","types":"./dist/index.d.ts"},"./locale/*":{"require":"./dist/locale/*.js","import":"./dist/locale/*.mjs","types":"./dist/locale/*.d.ts"},"./plugin/*":{"require":"./dist/plugin/*.js","import":"./dist/plugin/*.mjs","types":"./dist/plugin/*.d.ts"}},"typesVersions":{"*":{"*":["*","dist/*"]}},"scripts":{"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","test-tz":"date && jest test/timezone.test --coverage=false","lint":"eslint src/* test/* build/*","prettier":"prettier --write \"docs/**/*.md\"","build":"cross-env BABEL_ENV=build node build/index.js && npm run build:esm && npm run size","build:esm":"node build/esm.mjs","sauce":"npx karma start karma.sauce.conf.js","test:sauce":"npm run sauce -- 0 && npm run sauce -- 1 && npm run sauce -- 2  && npm run sauce -- 3","size":"size-limit && gzip-size dist/index.js"},"pre-commit":["lint"],"size-limit":[{"limit":"2.99 KB","path":"./dist/index.js"}],"jest":{"roots":["test"],"testRegex":"test/(.*?/)?.*test.js$","testURL":"http://localhost","coverageDirectory":"./coverage/","collectCoverage":true,"collectCoverageFrom":["src/**/*"]},"release":{"prepare":[{"path":"@semantic-release/changelog"},["@semantic-release/git",{"assets":["CHANGELOG.md"]}]]},"keywords":["dayjs","date","time","immutable","moment"],"author":{"name":"iamkun"},"license":"MIT","homepage":"https://day.js.org","repository":{"type":"git","url":"git+https://github.com/iamkun/dayjs.git"},"devDependencies":{"@babel/cli":"^7.0.0-beta.44","@babel/core":"^7.0.0-beta.44","@babel/node":"^7.0.0-beta.44","@babel/preset-env":"^7.0.0-beta.44","@rollup/plugin-alias":"^3.1.9","@rollup/plugin-node-resolve":"^14.1.0","babel-core":"^7.0.0-bridge.0","babel-jest":"^22.4.3","babel-plugin-external-helpers":"^6.22.0","cross-env":"^5.1.6","eslint":"^8.24.0","eslint-config-airbnb-base":"^15.0.0","eslint-plugin-import":"^2.16.0","eslint-plugin-jest":"^21.15.0","fast-glob":"^3.2.12","gzip-size-cli":"^2.1.0","jasmine-core":"^2.99.1","jest":"^22.4.3","karma":"^2.0.2","karma-jasmine":"^1.1.2","karma-sauce-launcher":"^1.1.0","mockdate":"^2.0.2","moment":"2.29.2","moment-timezone":"0.5.31","ncp":"^2.0.0","pre-commit":"^1.2.2","prettier":"^1.16.1","rollup":"^2.79.0","rollup-plugin-babel":"^4.4.0","rollup-plugin-terser":"^7.0.2","size-limit":"^0.18.0","typescript":"^2.8.3"},"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)\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://unpkg.com/dayjs\"><img\n            src=\"https://img.badgesize.io/dayjs?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    <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 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```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 it.\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📚[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## 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/alan-eu\" target=\"_blank\">\n  <img width=\"70\" src=\"https://avatars.githubusercontent.com/u/18175329?s=52&v=4\">\n</a>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<a href=\"https://www.exoflare.com/open-source/?utm_source=dayjs&utm_campaign=open_source\" target=\"_blank\">\n  <img width=\"70\" src=\"https://user-images.githubusercontent.com/17680888/162761622-1407a849-0c41-4591-8aa9-f98114ec2092.png\">\n</a>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<a href=\"https://github.com/vendure-ecommerce\" target=\"_blank\"><img width=\"70\" src=\"https://avatars.githubusercontent.com/u/39629390?s=52&v=4\"></a>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<a href=\"https://github.com/dc7290\" target=\"_blank\"><img width=\"70\" src=\"https://avatars.githubusercontent.com/u/48201151?v=4\"></a>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<a href=\"https://github.com/Velc\" target=\"_blank\"><img width=\"70\" src=\"https://avatars.githubusercontent.com/u/1551649?s=52&v=4\"></a>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<a href=\"https://github.com/projectdiscovery\" target=\"_blank\"><img width=\"70\" src=\"https://avatars.githubusercontent.com/u/50994705?s=52&v=4\"></a>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<a href=\"https://opencollective.com/datawrapper\" target=\"_blank\"><img width=\"70\" src=\"https://images.opencollective.com/datawrapper/c13e229/logo.png\"></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":"1bf6e2d729c344ef25d908431f480ad4e76b5cc4","bugs":{"url":"https://github.com/iamkun/dayjs/issues"},"_id":"dayjs@2.0.0-alpha.4","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-1iNcyGuh1/uip1b3tP2LSK8pWIO0CZuBC3XI4ShYO9oeJUJP7DfvDEOkr1I8aElvATTYKeY4J+N1b4d+qA5XEg==","shasum":"7a3981964caf96ad58a6bec6a0cc508149c100f2","tarball":"http://registry-npm.ywwl.com/dayjs/download/dayjs-2.0.0-alpha.4.tgz","fileCount":583,"unpackedSize":814880,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDMprRitFxQ6D3ykR8a27ODK5Cdfh8iTpeown//JnYvnAiArCwoxM+VNC12ULyrE+BPHnC91HeamI287hCZ0rqaD6A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMStVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqmhw/+OlwsNKByUMvvRCtibEdr039aZMPJXm8Fcj9Y8kwUYvTFCKmx\r\no3d9YK2MPyDzrUyttqNkZ3/x3UK//Dk/UkxXu6elym3zlcYZTmFMszdsBg/W\r\nt/JcpL2e7x4HmX+pSvE5/fuPcwLi5577hHeUlhzIRq7EQeVHwK74n6/bO5V9\r\nHbysjBchDwAAUYTityobMzd/IvQ6/xRI6PYyO/FkRvG2skxj27kUEBTAevbx\r\nlsfvV4ZfHoRfEas5JGQnvlbK0GJ5tPPzw+3TY3EG3qUFe1JFWlKDra1IQeqz\r\nsZFDHZWN24YpJmU52Z06j9j5XIvG2n85hn1Bwj+gRXEqNRmv9vTpcIIu/dwR\r\n8Bbxj+mCSR93GyiP3jHB3PxLgP03hFTxOTgHUJrDqkIUZGrv7K/cSCzIux26\r\np76vmAyk0JPsyyAE1oZA40oT7NgV5mP9Z8JsB/vln6BqIbM/wDzQH8+f/TC7\r\nCxeyf2ibPmPzQDqktCCFbTN7s6+chAWpkAhRzYKCvbwxr7m7HOPmoii8cXs9\r\n8VWkUbS77x0Pls1QmJItse/SECQVznNLURvxpA5S0ITrFuVdeFOZx0VjF9ws\r\ng1eHDzFXXxWNKVDn87XoIiiuMIveYJus3T3QWSqxsZkbaA7ZZK2Pkuoxf/N1\r\npiyG7jYmaahivpsCGDhuQ7oxWS7ipPima5g=\r\n=vTr6\r\n-----END PGP SIGNATURE-----\r\n","size":141620,"noattachment":false,"key":"/dayjs/-/dayjs-2.0.0-alpha.4.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.4_1664166740773_0.7296402101427639"},"_hasShrinkwrap":false,"publish_time":1664166741015,"_cnpm_publish_time":1664166741015,"dist-tags":{"alpha":"2.0.0-alpha.4","latest":"1.11.23"}}