{"_id":"isoformat","_rev":"4-8a5fe6ba64ca66df1b08454ef3a0b488","name":"isoformat","dist-tags":{"latest":"0.2.1"},"versions":{"0.1.0":{"name":"isoformat","version":"0.1.0","description":"A tidy ISO 8601 date formatter","homepage":"https://github.com/mbostock/isoformat/","license":"ISC","author":{"name":"Mike Bostock","url":"https://bost.ocks.org/mike"},"type":"module","main":"src/index.js","repository":{"type":"git","url":"git+https://github.com/mbostock/isoformat.git"},"scripts":{"test":"mocha test/**/*-test.js && eslint src test","prepublishOnly":"yarn test","postpublish":"git push && git push --tags"},"sideEffects":false,"devDependencies":{"eslint":"^7.18.0","mocha":"^8.3.2"},"gitHead":"28124e83abe41f07b7e4e0514aa8d0f0794d1b7a","bugs":{"url":"https://github.com/mbostock/isoformat/issues"},"_id":"isoformat@0.1.0","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-4wCSk50Ov1PKbZ2m+YN0rUgQfF4NRkIavbhpW1mANEqD9HxBZ+j/fWk8hERq1yxn+CfWqvOac4m9axLuF0NfEw==","shasum":"b693c1c9ee9ab02f1af5af41ceeae52bf501b233","tarball":"https://registry.npmjs.org/isoformat/-/isoformat-0.1.0.tgz","fileCount":4,"unpackedSize":2548,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeb21CRA9TVsSAnZWagAAxNkP/j6fYNB8ekUY7ZPa6gXh\nggD7jn8U8fcrxej1z0pojpU/3kl3GnhUmSBuCiuN6Aqn52xPbZLMPY4ppaoV\ntUANDILBN2WEzO07S4/RDAkfMxowHNmZzrifgcnsmS7xL8XDxy8YNxmoaXhy\nxIMfRb8CDLjHoVPrDY2bbpr0kUoNLWKZLtNw9rscwxprB5yG+5qbL1CBVIgx\ncrW8hbZHBtXFiiqikSgtFOhSsFRqRDpjiThJJ6bQBnqhuJ2Gf16HiTShdZGT\nfJD4Kp1/iTCO9D0WE0MSgSJKC6gAoMU1+GUBrdsq81YzIBv8ES9OCtBBeg2d\nCwpQgt+SfBE/21t/d6SUVEMXDuxw4rKaDoiCyhTH7qhQzycizUiFvs7kJ50W\nQk/HTUu+FiU01bHldw6l/AkcOcfglOWDwvtfX/4G/WsYrFnl5uxy8ngszU+0\noIV05R9cBFAeDHnJmwjvR486R9V+qW+IC0rcxxD22+cRjD3uQuXUy1R0ci3S\nF7H1PD/aRcQzzpt47bBLpQugaH3JL8qhCJhS9UriODDTdQvsuIzFQrr2W1+r\nch9h03TOoao4vI8lIhfK2Profp4xdE2NwCPz/tUrHX42qqg1wCOTE2oEMITY\nnKczAQa+lvKxmbLE9fLQUy+0TDfpugo87stLol7ByL2u7bkKb/i7atLDbGSR\n50Xm\r\n=cLq2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHvrD+hfo66w446QXNJqBzPP2SSwEfS1r1fWR7rD1wspAiEAwdnaNgiVfJC0in7k810QdChMCX0F6mcbBIQnDgrEHok="}]},"_npmUser":{"name":"mbostock","email":"mike@ocks.org"},"directories":{},"maintainers":[{"name":"mbostock","email":"mike@ocks.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isoformat_0.1.0_1618591156771_0.7242465172585804"},"_hasShrinkwrap":false},"0.2.0":{"name":"isoformat","version":"0.2.0","description":"A tidy ISO 8601 date formatter and parser","homepage":"https://github.com/mbostock/isoformat/","license":"ISC","author":{"name":"Mike Bostock","url":"https://bost.ocks.org/mike"},"type":"module","main":"src/index.js","repository":{"type":"git","url":"git+https://github.com/mbostock/isoformat.git"},"scripts":{"test":"mocha test/**/*-test.js && eslint src test","prepublishOnly":"yarn test","postpublish":"git push && git push --tags"},"sideEffects":false,"devDependencies":{"eslint":"^7.32.0","mocha":"^9.1.1"},"gitHead":"0fa5f60635a58cb211acd1e752946178c16e520a","bugs":{"url":"https://github.com/mbostock/isoformat/issues"},"_id":"isoformat@0.2.0","_nodeVersion":"14.17.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-iyxQ94xMvUZryoHVaXg/TSLM318/aO7xS7Ute+t4MkvZ17IDfe9MkI/MQuu7XgxbmTiGkeggNj+1f6wmxF876Q==","shasum":"52c3dce6c281adb6cb7f060895a731b7b2d52c1b","tarball":"https://registry.npmjs.org/isoformat/-/isoformat-0.2.0.tgz","fileCount":6,"unpackedSize":4983,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhNnO2CRA9TVsSAnZWagAAmQAP/0Z5jCBv2a5ZBHWodwvK\n49ArNis95N+uja9uCPGgswZMOtV3EVWaNX/ZkvwCg0yMLC0GE9jcjynr5BQf\nIsyBdxbM4ixa4L47JolaGSErhfbBeYwe9YhTGZLpui/YFl3yMZuGJempQWA6\nvEr44WJMylZEObGQuSok/XtIFWojbd8cAuYF+1R9QCnT1PFVIkN10DLc/omb\nuDsN/1YVKkvOdipzWsMpo66sZ1YiHOXcJrqy0XC0HGn1v/CrZ4lAPx8yAysR\n16XFt4Je0rfYTAL17DucjYLQCw8OWib7UmvZuTGyXlZ6UACm5LPBf9d7RqEj\nHoeSSKQWLGsKqwz2e2CB2R6oOrcZGg4yEw1bsZUDjN/LZHiiZS3llY1zfU1Z\nGpbfjMKE9+Ztp/DetEJ17fP0lnFrN5/LpGMlmXixrGkiC3mWwXhLlSF4A+zZ\nJKJP8+uWX8LY4Mqgf3VIoxpnSRzctJFFiEolA4/YqHvAi9WuKcNZcGsn3r1T\nv8EOZNpwSsAmLbATqzsZxauXhDL5F5Grcy1I+d6ls1ZaRGcBa7T7CysUGIXf\nFDZxN1Y/zPoWFWac0aXrPNJqTVyo3WlPBFv7AjLK7CF3EuMJU7nPhUR+UUUQ\nXuYjcWqn0pF+e0yWm5fz20ahhmaaJbb7kbZBYIA7NV2cBDPRMUMgDCL+N2tK\njdQi\r\n=ae2Q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICv2V2fpGe9KKuuQp/fuPYhFNXTgPjxAxNrQQ8HbdGCrAiBgEjZsVq2QZGRyoQOqiF3+jJj8KdnOyCkr+vHmUlh+Aw=="}]},"_npmUser":{"name":"mbostock","email":"mike@ocks.org"},"directories":{},"maintainers":[{"name":"mbostock","email":"mike@ocks.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isoformat_0.2.0_1630958518280_0.776561974620323"},"_hasShrinkwrap":false},"0.2.1":{"name":"isoformat","version":"0.2.1","description":"A tidy ISO 8601 date formatter and parser","homepage":"https://github.com/mbostock/isoformat/","license":"ISC","author":{"name":"Mike Bostock","url":"https://bost.ocks.org/mike"},"type":"module","main":"src/index.js","repository":{"type":"git","url":"git+https://github.com/mbostock/isoformat.git"},"scripts":{"test":"mocha test/**/*-test.js && eslint src test","prepublishOnly":"yarn test","postpublish":"git push && git push --tags"},"sideEffects":false,"devDependencies":{"eslint":"^7.32.0","mocha":"^9.1.1"},"gitHead":"785ad91225ce3359c99f77d53bec728d0c7468c6","bugs":{"url":"https://github.com/mbostock/isoformat/issues"},"_id":"isoformat@0.2.1","_nodeVersion":"14.17.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-tFLRAygk9NqrRPhJSnNGh7g7oaVWDwR0wKh/GM2LgmPa50Eg4UfyaCO4I8k6EqJHl1/uh2RAD6g06n5ygEnrjQ==","shasum":"2526344a4276a101b2881848dc337d1d2ae74494","tarball":"https://registry.npmjs.org/isoformat/-/isoformat-0.2.1.tgz","fileCount":6,"unpackedSize":5341,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2wIVCRA9TVsSAnZWagAAFzgQAJZR1i3xj/dGjhxtJzMY\nxhKwHQoPjgARhePLzIwiaWKDkspmknZPMK1vumi9tt7Xs/WSIu3KroKlzeqL\n+QwzFGGrOwbwIZ/VEInIXQ4YsgrcA2Y0qxx4uBLrepX1oX5g5GCaER28lUT6\nxJQ2mdAPjtW/BU/jCgDKKCtC0K7buSBPBSZerSlx9TseYWo5yuU49lAVTc/t\nNqDzgYHCFwfZH+aqna3BoWnFC8KXwbaWTRSUutGD+L1kRYM0nE1Be/DnPFMI\no7wPaViJuJY3fgcW5tclNGTLAUO/PD3CmDS+txmdLmcxMabxic3mfzDjpX3J\nTTVH46ITLxHxfGWpwhg1Cqsb3S2L65Vtwfy+cJxjQh+USa7yex0lPLQIrOCt\nAmOfmCukz3Y4IpBUw2NB6G9XQMRZXnHbbiI8DVPfnUjeRjQWNM8nc5Bqaspz\npB15W4cG8LAEXxLyjLLuX8HhYu7WlqW6W7NxkkcRImBUnvb2Pdmd2A7gTgso\nbmos6Yo/bU5GETpRcyo5GXHEx9gq7y9Eh0nC/jhAOpP/Aam1Z3+jCwlRWI2+\nLYhYkGTwOIhN9N8ZbMLQOfwuJLJTWSdh9cL9kjU8ybE2iWKksEJKvTmV4FGU\nhsix1tkfYEwSrvI7Ro4CJ0ApvglxOsV0GMC1o/vajZmRCKMJabjbie41/dg5\n+iFO\r\n=moiC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+68ljG83Fb4aoaNLw0HGGOyr/Pdm4eDbnLuRqbUM0dAIgXi7lDLw3YV61LlDnUpuq3PKVej5XtkM4BJG+8WvkrDE="}]},"_npmUser":{"name":"mbostock","email":"mike@ocks.org"},"directories":{},"maintainers":[{"name":"mbostock","email":"mike@ocks.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isoformat_0.2.1_1632493851592_0.6043479597577623"},"_hasShrinkwrap":false}},"time":{"created":"2021-04-16T16:39:16.771Z","0.1.0":"2021-04-16T16:39:16.905Z","modified":"2022-05-06T06:12:16.397Z","0.2.0":"2021-09-06T20:01:58.421Z","0.2.1":"2021-09-24T14:30:51.768Z"},"maintainers":[{"name":"mbostock","email":"mike@ocks.org"}],"description":"A tidy ISO 8601 date formatter and parser","homepage":"https://github.com/mbostock/isoformat/","repository":{"type":"git","url":"git+https://github.com/mbostock/isoformat.git"},"author":{"name":"Mike Bostock","url":"https://bost.ocks.org/mike"},"bugs":{"url":"https://github.com/mbostock/isoformat/issues"},"license":"ISC","readme":"# isoformat\n\nThis library implements a concise formatter and parser for ISO 8601 date and date-times. It is intended for use as an interchange format, for example in CSV, that is more human-readable than the full ISO date-time string used by [*date*.toISOString](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString).\n\nTo use:\n\n```js\nimport {format, parse} from \"isoformat\";\n```\n\n### format(*date*, *fallback*)\n\nGiven a Date, **format**(*date*) returns the shortest equivalent ISO 8601 UTC string. If *date* is not a Date instance, it is assumed to represent milliseconds since UNIX epoch. If *date* is not a valid date, returns the given *fallback* value, which defaults to undefined; if *fallback* is a function, it is invoked to produce a fallback value if needed, being passed the *date*.\n\n```js\nformat(new Date(Date.UTC(2001, 0, 1))) // \"2001-01-01\"\nformat(new Date(Date.UTC(2020, 0, 1, 12, 23))) // \"2020-01-01T12:23Z\"\n```\n\nThe following forms may be returned by format:\n\n* YYYY-MM-DD\n* YYYY-MM-DDTHH:MMZ\n* YYYY-MM-DDTHH:MM:SSZ\n* YYYY-MM-DDTHH:MM:SS.MMMZ\n\nThe year YYYY may also be represented as +YYYYYY or -YYYYYY. Note that while YYYY and YYYY-MM are valid ISO 8601 date strings, these forms are never returned by format; YYYY can be easily misinterpreted as a number, and YYYY-MM… well, I guess that would be okay, but it felt simpler to stop at YYYY-MM-DD to make it more obvious that it was a date.\n\n### parse(*date*, *fallback*)\n\nGiven an ISO 8601 date or date-time string, **parse**(*string*) returns an equivalent Date instance. If *string* is not a valid ISO 8601 date or date-time string, returns the given *fallback* value, which defaults to undefined; if *fallback* is a function, it is invoked to produce a fallback value if needed, being passed the *string*.\n\n```js\nparse(\"2001-01-01\") // new Date(Date.UTC(2001, 0, 1))\nparse(\"2020-01-01T12:23Z\") // new Date(Date.UTC(2020, 0, 1, 12, 23))\n```\n\nThe following forms are accepted by parse:\n\n* YYYY\n* YYYY-MM\n* YYYY-MM-DD\n* YYYY-MM-DDTHH:MM\n* YYYY-MM-DDTHH:MMZ\n* YYYY-MM-DDTHH:MM:SS\n* YYYY-MM-DDTHH:MM:SSZ\n* YYYY-MM-DDTHH:MM:SS.MMM\n* YYYY-MM-DDTHH:MM:SS.MMMZ\n\nThe year YYYY may also be represented as +YYYYYY or -YYYYYY. The time zone Z may be represented as a literal Z for UTC, or as +HH:MM, -HH:MM, +HHMM, or -HHMM. (The two-digit time zone offset +HH or -HH is not supported; although part of ISO 8601, this format is not recognized by Chrome or Node. And although ISO 8601 does not allow the time zone -00:00, it is allowed here because it is widely supported in implementations.)\n","readmeFilename":"README.md"}