{"_id":"@bepo65/dayjs-demo-submodule","_rev":"3-7664d665771a8cb925aa795d14828ab4","name":"@bepo65/dayjs-demo-submodule","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@bepo65/dayjs-demo-submodule","version":"1.0.0","description":"A simple node module with dayjs","main":"src/index.js","scripts":{"lint":"eslint src/*.js","test":"node --experimental-vm-modules node_modules/jest/bin/jest.js","build":"cpy src/index.js dist/ && cpy package.json dist/ && cpy LICENSE dist/ && cpy README.md dist/"},"engines":{"node":">=14.0.0"},"type":"module","author":{"name":"BePo65"},"license":"MIT","repository":{"type":"git","url":"git://github.com/bepo65/dayjsDemoSubmodule.git"},"private":false,"dependencies":{"dayjs":"^1.10.5"},"devDependencies":{"cpy-cli":"^3.1.1","eslint":"^7.32.0","eslint-plugin-jest":"^24.5.2","eslint-plugin-jest-formatting":"^3.0.0","eslint-plugin-jsdoc":"^36.1.0","eslint-plugin-node":"^11.1.0","eslint-plugin-prefer-arrow":"^1.2.3","eslint-plugin-security":"^1.4.0","eslint-plugin-security-node":"^1.0.14","jest":"^27.2.4","jest-runner-groups":"^2.1.0","mockdate":"^3.0.5"},"bugs":{"url":"https://github.com/bepo65/dayjsDemoSubmodule/issues"},"homepage":"https://github.com/bepo65/dayjsDemoSubmodule#readme","_id":"@bepo65/dayjs-demo-submodule@1.0.0","_nodeVersion":"14.17.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-UR/UaWKmUSDIO1fgi0rIikXjMKcDBd5KmJyhi+v55Gr4ataiL1Y7fz0AvgYvamhv6GE8mfTwO3LSZVzfLEc92Q==","shasum":"cfde2879ea4975f277298c7f6fbc9d07ab13bbee","tarball":"https://registry.npmjs.org/@bepo65/dayjs-demo-submodule/-/dayjs-demo-submodule-1.0.0.tgz","fileCount":4,"unpackedSize":3951,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBTYAMy322pTjNuIyKB1YjPOeEcPsbldqf22Z2DTyfU3AiAw/1jI+bOkpnxsWoEc2i8WAFq9kFkKt8TgElbG2erblg=="}]},"_npmUser":{"name":"bepo65","email":"bepo65@t-online.de"},"directories":{},"maintainers":[{"name":"bepo65","email":"bepo65@t-online.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dayjs-demo-submodule_1.0.0_1633705721506_0.12565756476459988"},"_hasShrinkwrap":false},"1.0.1":{"name":"@bepo65/dayjs-demo-submodule","version":"1.0.1","description":"A simple node module with dayjs","main":"src/index.js","scripts":{"lint":"eslint src/*.js","test":"node --experimental-vm-modules node_modules/jest/bin/jest.js","build":"cpy src/index.js dist/ && cpy package.json dist/ && cpy LICENSE dist/ && cpy README.md dist/"},"engines":{"node":">=14.0.0"},"type":"module","author":{"name":"BePo65"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/BePo65/dayjs-demo-submodule.git"},"private":false,"dependencies":{"dayjs":"^1.10.5"},"devDependencies":{"cpy-cli":"^3.1.1","eslint":"^7.32.0","eslint-plugin-jest":"^24.5.2","eslint-plugin-jest-formatting":"^3.0.0","eslint-plugin-jsdoc":"^36.1.0","eslint-plugin-node":"^11.1.0","eslint-plugin-prefer-arrow":"^1.2.3","eslint-plugin-security":"^1.4.0","eslint-plugin-security-node":"^1.0.14","jest":"^27.2.4","jest-runner-groups":"^2.1.0","mockdate":"^3.0.5"},"bugs":{"url":"https://github.com/BePo65/dayjs-demo-submodule/issues"},"homepage":"https://github.com/BePo65/dayjs-demo-submodule#readme","_id":"@bepo65/dayjs-demo-submodule@1.0.1","_nodeVersion":"14.17.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-t9cFY4iLkvcueBcQbZBucYg7X3HIsBIS2qzv9UGb3CJZ+3vLTZpEhwtFSqJCgy5k5T2lWDqfgA33L3cZNC26JA==","shasum":"5c53219c4fff095449ba5b002a18059750056d43","tarball":"https://registry.npmjs.org/@bepo65/dayjs-demo-submodule/-/dayjs-demo-submodule-1.0.1.tgz","fileCount":4,"unpackedSize":4151,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzHi4CRA9TVsSAnZWagAAOVEP/2r9jv0gwaL9D1Adh6Tv\n1j11iukQl4vghGOr4nLcDXh8EE0O7XJB6opXG3lc+zrsXGtbGnUoGRueqw3j\nNAzU3na4yUJzk6TJCWWMKwxX3gbVbe9j1aeI8CMYy5OewcLKbcFRAa9MC612\nG79+zMZzvraFEqnShWn+wrAwh+IJitG1ohIOEqZ+cOxaL5nkR7J9wOguPGt/\nwqRQNKzkAFhQPMDm/TlEYwmGJ6AT8w80wOg4rHYoeV2I6DxIJbrinOy4hFN5\njRrQHzNXsrn9asV7sBVQv/EhJZOcZOXs2spEzxOVle6U/5YHiIirVTHhVU5L\nLklUYYl7OjBCoAGsV+Y6FM94feCwzqMybeOyNZMXL4O3EUZEWa5FD1PVkSoR\nlOX84GnQXs8jcPqzIstjtPGHa6aiIAlhlg1OZr1DRdBXGJtdgY4Cx4IW8E9Z\n3Dsnl77tuVsPw89T2EyMwqqOmwLNfMtdanx1p45XprQmbUaJAN3ik2SsaAPO\nVLAC4M5myxjwnC8TYxp1ZRqj/rIrLkkJJWPoRMRZit5WYkO366EdETIp8uFR\ns7YPT7TX9tbGtiEGSJanbhbjSLwZaU20yp8ZncSMWlQRHclkvh/K53wfirlF\nmhMQ15qD0MzNgv/IHUnYMKcEzPsj7Spy//NEudDXBJkWRZLd7eGaK2unyJHr\nCLJt\r\n=lB8j\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgrAsDNW+ob79Z2ffMwTwfyGHZQWAS6hysE8nDtcIXGgIgR0OUZVhx9fAyoDnIlmHv6x+3pFURKpGDmNwp1vB0Cso="}]},"_npmUser":{"name":"bepo65","email":"bepo65@t-online.de"},"directories":{},"maintainers":[{"name":"bepo65","email":"bepo65@t-online.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dayjs-demo-submodule_1.0.1_1633778286503_0.679207371495602"},"_hasShrinkwrap":false}},"time":{"created":"2021-10-08T15:08:41.438Z","1.0.0":"2021-10-08T15:08:41.635Z","modified":"2022-04-04T18:28:38.175Z","1.0.1":"2021-10-09T11:18:06.686Z"},"maintainers":[{"name":"bepo65","email":"bepo65@t-online.de"}],"description":"A simple node module with dayjs","homepage":"https://github.com/BePo65/dayjs-demo-submodule#readme","repository":{"type":"git","url":"git+ssh://git@github.com/BePo65/dayjs-demo-submodule.git"},"author":{"name":"BePo65"},"bugs":{"url":"https://github.com/BePo65/dayjs-demo-submodule/issues"},"license":"MIT","readme":"# @bepo65/dayjs-demo-submodule\r\n\r\n![Version](https://img.shields.io/badge/version-1.0.1-blue.svg?cacheSeconds=2592000)\r\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/kefranabg/readme-md-generator/blob/master/LICENSE)\r\n\r\nMinimal package to show what happens, when package using dayjs uses different plugin configuration than program that uses this package (See [dayjs issue #1577](https://github.com/iamkun/dayjs/issues/1577#issuecomment-926149823) for the corresponding question).\r\n\r\n\r\n\r\n## Use this package in a program\r\n\r\n> npm install @bepo65/dayjs-demo-submodule\r\n\r\nand then in the test program\r\n\r\n```\r\nimport dayjs from 'dayjs';\r\nimport updateLocale from 'dayjs/plugin/updateLocale.js';\r\nimport relativeTime from 'dayjs/plugin/relativeTime.js';\r\nimport { formatNow } from '@bepo65/dayjs-demo-submodule';\r\n\r\ndayjs.extend(relativeTime);\r\ndayjs.extend(updateLocale);\r\n\r\n// update locale\r\ndayjs.updateLocale('en', {\r\n  relativeTime: {\r\n    future: 'in %s',\r\n    past: '%s ago',\r\n    s: 'a few modified seconds',\r\n    m: '1 minute',\r\n    mm: '%d modified minutes',\r\n    h: '1 hour',\r\n    hh: '%d modified hours',\r\n    d: '1 day',\r\n    dd: '%d days',\r\n    M: 'a month',\r\n    MM: '%d months',\r\n    y: 'a year',\r\n    yy: '%d years'\r\n  }\r\n});\r\n\r\nconsole.log(`dayjs in this program gets '${dayjs(new Date()).fromNow()}' from dayjs.fromNow()`);\r\nconsole.log(`dayjs in the imported package gets '${formatNow()}' from the formatNow`);\r\n```\r\n\r\nThe test programm will show twice `a few seconds ago`.\r\n","readmeFilename":"README.md"}