{"_id":"@segment/isodate","_rev":"889-b7538e5eed0fec2c3c1fffefb9a251af","name":"@segment/isodate","dist-tags":{"latest":"1.0.3"},"versions":{"0.0.2":{"name":"@segment/isodate","version":"0.0.2","keywords":["isodate"],"author":{"name":"Segment.io"},"license":"MIT","_id":"@segment/isodate@0.0.2","maintainers":[{"name":"segment","email":"tools+npm@segment.com"}],"homepage":"https://github.com/segmentio/isodate#readme","bugs":{"url":"https://github.com/segmentio/isodate/issues"},"dist":{"shasum":"511f3e8d07a363124b1cffdb9718c5eebe2536bb","tarball":"https://registry.npmjs.org/@segment/isodate/-/isodate-0.0.2.tgz","integrity":"sha512-o7/1QYJZCFH5/p1Jy5FaAMqgtSBBx4kCIe7S/SYwISZ+ra6QWXgS/4q2EKc3BY4AMjxmlUIUu+gzdr5TzejGrw==","signatures":[{"sig":"MEUCIQDYbMegC08p5u+NpPZbdQJpbVSGoiOZz6ihw0ue0kyNgAIge+lpKjhXCjMCWLWwK4efSXmkXDMYSv8hRUyeIcvpm0E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"511f3e8d07a363124b1cffdb9718c5eebe2536bb","gitHead":"98527e7e1acb8f8edf16830f883dd94c9bcb05e0","scripts":{"test":"make test"},"_npmUser":{"name":"segment","email":"tools+npm@segment.com"},"repository":{"url":"git+https://github.com/segmentio/isodate.git","type":"git"},"_npmVersion":"2.14.12","description":"Parse an ISO date string into a Date","directories":{"test":"test"},"_nodeVersion":"4.2.4","devDependencies":{"mochify":"^2.17.0","phantomjs":"^2.1.3","browserify":"^13.0.0","component-each":"^0.2.6"},"_npmOperationalInternal":{"tmp":"tmp/isodate-0.0.2.tgz_1460068096763_0.043763934867456555","host":"packages-12-west.internal.npmjs.com"}},"1.0.0":{"name":"@segment/isodate","version":"1.0.0","keywords":["isodate"],"author":{"name":"Segment.io"},"license":"MIT","_id":"@segment/isodate@1.0.0","maintainers":[{"name":"segment","email":"tools+npm@segment.com"}],"homepage":"https://github.com/segmentio/isodate#readme","bugs":{"url":"https://github.com/segmentio/isodate/issues"},"dist":{"shasum":"28daee27bf6d11656b941d2c916f8cea6fb305f9","tarball":"https://registry.npmjs.org/@segment/isodate/-/isodate-1.0.0.tgz","integrity":"sha512-/Mzth4tsZSQ4oQJCYSjYRynobRXHz5dTVXFajB2ECHZjegeEio/LZiTcaaJjyFqstOi2Tr4tXtuJe4KlO8dMTA==","signatures":[{"sig":"MEYCIQDkokiLEtWbgEK5OF577W9sBKvjk1IVwRL2c9iIVmllKgIhALrY0aYQ+q8BVr/Ryd1EaqENV5ZC3jsTUCcqgL38Ux9R","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"28daee27bf6d11656b941d2c916f8cea6fb305f9","gitHead":"5f79463e8bc61aa186841bf182db8f405c3e82fc","scripts":{"test":"make test"},"_npmUser":{"name":"segment","email":"tools+npm@segment.com"},"repository":{"url":"git+https://github.com/segmentio/isodate.git","type":"git"},"_npmVersion":"2.14.12","description":"Parse an ISO date string into a Date","directories":{"test":"test"},"_nodeVersion":"4.2.4","devDependencies":{"mochify":"^2.17.0","phantomjs":"^2.1.3","browserify":"^13.0.0","component-each":"^0.2.6"},"_npmOperationalInternal":{"tmp":"tmp/isodate-1.0.0.tgz_1460068269915_0.03523873072117567","host":"packages-12-west.internal.npmjs.com"}},"1.0.2":{"name":"@segment/isodate","version":"1.0.2","keywords":["date","isodate"],"author":{"name":"Segment","email":"friends@segment.com"},"license":"SEE LICENSE IN LICENSE","_id":"@segment/isodate@1.0.2","maintainers":[{"name":"segment","email":"tools+npm@segment.com"}],"homepage":"https://github.com/segmentio/isodate#readme","bugs":{"url":"https://github.com/segmentio/isodate/issues"},"dist":{"shasum":"71fef69e816b77593a80b4cfbf2d22443222eafe","tarball":"https://registry.npmjs.org/@segment/isodate/-/isodate-1.0.2.tgz","integrity":"sha512-noQUUtKi9rsQPwG6pG5sPqd2qFJJDk2qUMuAKtCbjOHCdjQSqTIjJXpb0bGF1OZ6bHSnLkrNTYehPMzXJi3uwg==","signatures":[{"sig":"MEUCIB/KL2LWs1PDzCZ70nFPQ+zXUnmpD+EEwM55N04IyuIYAiEAvoQYtsa4aRQe0WWEv9/YXHxWZyLQU1NB0uvl9XK24YY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/index.js","_from":".","_shasum":"71fef69e816b77593a80b4cfbf2d22443222eafe","scripts":{"test":"make test"},"_npmUser":{"name":"segment","email":"tools+npm@segment.com"},"repository":{"url":"git+https://github.com/segmentio/isodate.git","type":"git"},"_npmVersion":"2.15.1","description":"Parse an ISO date string into a Date","directories":{},"_nodeVersion":"4.4.4","devDependencies":{"karma":"^0.13.22","mocha":"^2.2.5","eslint":"^2.9.0","istanbul":"^0.4.3","proclaim":"^3.4.1","watchify":"^3.7.0","browserify":"^13.0.0","karma-mocha":"^1.0.1","component-each":"^0.2.6","karma-coverage":"^1.0.0","karma-browserify":"^5.0.4","phantomjs-prebuilt":"^2.1.7","browserify-istanbul":"^2.0.0","karma-spec-reporter":"0.0.26","karma-sauce-launcher":"^1.0.0","karma-chrome-launcher":"^1.0.1","@segment/eslint-config":"^3.0.0","karma-phantomjs-launcher":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/isodate-1.0.2.tgz_1463034475596_0.6537380109075457","host":"packages-16-east.internal.npmjs.com"}},"1.0.3":{"name":"@segment/isodate","version":"1.0.3","keywords":["date","isodate"],"author":{"name":"Segment","email":"friends@segment.com"},"license":"SEE LICENSE IN LICENSE","_id":"@segment/isodate@1.0.3","maintainers":[{"name":"dscrobonia","email":"davidscrobonia@gmail.com"},{"name":"emilio-gomez-lavin","email":"emilio@segment.com"},{"name":"vdemedes","email":"vdemedes@gmail.com"},{"name":"sahilp","email":"sahil@segment.com"},{"name":"segment-ulysse","email":"ulysse@segment.com"},{"name":"erickimsegment","email":"eric@segment.com"},{"name":"segment-andy-yeo","email":"andy.yeo@segment.com"},{"name":"segment-maggie-chu","email":"maggie@segment.com"},{"name":"systemizer","email":"robmcqn@gmail.com"},{"name":"n2parko","email":"kevin@segment.com"},{"name":"notfelineit","email":"notfelineit@gmail.com"},{"name":"jlee9595","email":"justin@segment.com"},{"name":"segment-danielstjules","email":"danielst.jules@segment.com"},{"name":"sperand-io","email":"chris@sperand.io"},{"name":"albert.segment","email":"albert@segment.com"},{"name":"tamarrow","email":"tamarrow@gmail.com"},{"name":"ejcx","email":"evan@segment.com"},{"name":"jeroenransijn","email":"jssrdesign@gmail.com"},{"name":"joeybloggs","email":"dean@segment.com"},{"name":"mynameiskir","email":"kir@mynameiskir.com"},{"name":"maxence-charriere","email":"charriere@outlook.com"},{"name":"boggsboggs","email":"john.boggs@segment.com"},{"name":"codenameatlas","email":"anavarrete255@gmail.com"},{"name":"nettofarah","email":"nettofarah@gmail.com"},{"name":"myclamm","email":"mike@segment.com"},{"name":"wdr","email":"robinsonwesleyd@gmail.com"},{"name":"fouad","email":"fm@fouad.co"},{"name":"achille-roussel","email":"achille.roussel@gmail.com"},{"name":"peripheral","email":"peter.h.richmond@gmail.com"},{"name":"calvinfo","email":"calvin@calv.info"},{"name":"dfuentes","email":"daniel.richard.fuentes@gmail.com"},{"name":"anoonan","email":"amnoonann@gmail.com"},{"name":"nielst","email":"NTerwiesch@gmail.com"},{"name":"ladanazita","email":"ladanazita@gmail.com"},{"name":"rbranson","email":"rick@diodeware.com"},{"name":"jedwatson","email":"jed.watson@me.com"},{"name":"srthurman","email":"srthurman@gmail.com"},{"name":"jgershen","email":"joe@segment.com"},{"name":"ivolo","email":"ilya@segment.io"},{"name":"ccnixon","email":"chrisnxn@gmail.com"},{"name":"tidothegreat","email":"tido@segment.com"},{"name":"emilyluckette","email":"emily@segment.com"},{"name":"chrisbuttery","email":"info@chrisbuttery.com"},{"name":"lambtron","email":"andyjiang@gmail.com"},{"name":"thehydroimpulse","email":"dnfagnan@gmail.com"},{"name":"yields","email":"yields@icloud.com"},{"name":"reinpk","email":"reinpk@gmail.com"},{"name":"dominicbarnes","email":"dominic@dbarnes.info"},{"name":"stevenmiller888","email":"stevenmiller888@me.com"},{"name":"hanothan","email":"hankim813@gmail.com"},{"name":"tejasmanohar","email":"me@tejas.io"},{"name":"rowno","email":"rowno@webspirited.com"},{"name":"stephenmathieson","email":"me@stephenmathieson.com"},{"name":"segmentio","email":"tools@segment.com"},{"name":"segment-admin","email":"tools+npm@segment.com"}],"homepage":"https://github.com/segmentio/isodate#readme","bugs":{"url":"https://github.com/segmentio/isodate/issues"},"dist":{"shasum":"f44e8202d5edd277ce822785239474b2c9411d4a","tarball":"https://registry.npmjs.org/@segment/isodate/-/isodate-1.0.3.tgz","integrity":"sha512-BtanDuvJqnACFkeeYje7pWULVv8RgZaqKHWwGFnL/g/TH/CcZjkIVTfGDp/MAxmilYHUkrX70SqwnYSTNEaN7A==","signatures":[{"sig":"MEUCIB/bXWmxCAtfgNuSVDgPWtrRVu8WEYOVmHCDjo6BkTxUAiEAz5MOz4tqUvMIUm/aqckM0vevEoVMfDrlx9N3c3aEBtw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/index.js","gitHead":"a1f499adcdfed25e1261079403a1333bc49a089d","scripts":{"test":"make test"},"_npmUser":{"name":"rowno","email":"rowno@webspirited.com"},"repository":{"url":"git+https://github.com/segmentio/isodate.git","type":"git"},"_npmVersion":"5.4.2","description":"Parse an ISO date string into a Date","directories":{},"_nodeVersion":"6.1.0","devDependencies":{"karma":"^0.13.22","mocha":"^2.2.5","eslint":"^2.9.0","istanbul":"^0.4.3","proclaim":"^3.4.1","watchify":"^3.7.0","browserify":"^13.0.0","karma-mocha":"^1.0.1","component-each":"^0.2.6","karma-coverage":"^1.0.0","karma-browserify":"^5.0.4","phantomjs-prebuilt":"^2.1.7","browserify-istanbul":"^2.0.0","eslint-plugin-mocha":"^2.2.0","karma-spec-reporter":"0.0.26","karma-sauce-launcher":"^1.0.0","karma-chrome-launcher":"^1.0.1","@segment/eslint-config":"^3.1.1","karma-phantomjs-launcher":"^1.0.0","eslint-plugin-require-path-exists":"^1.1.5"},"_npmOperationalInternal":{"tmp":"tmp/isodate-1.0.3.tgz_1507843424670_0.6780423142481595","host":"s3://npm-registry-packages"}}},"time":{"created":"2016-04-07T22:28:19.066Z","modified":"2026-06-11T22:35:24.959Z","0.0.2":"2016-04-07T22:28:19.066Z","1.0.0":"2016-04-07T22:31:12.437Z","1.0.2":"2016-05-12T06:27:57.181Z","1.0.3":"2017-10-12T21:23:44.727Z"},"bugs":{"url":"https://github.com/segmentio/isodate/issues"},"author":{"name":"Segment","email":"friends@segment.com"},"license":"SEE LICENSE IN LICENSE","homepage":"https://github.com/segmentio/isodate#readme","keywords":["date","isodate"],"repository":{"url":"git+https://github.com/segmentio/isodate.git","type":"git"},"description":"Parse an ISO date string into a Date","maintainers":[{"email":"secure-supply-chain@twilio.com","name":"twilio-supply-chain"},{"email":"tools@segment.com","name":"segmentio"},{"email":"tools+npm@segment.com","name":"segment-admin"}],"readme":"# isodate\n\n[![CircleCI](https://circleci.com/gh/segmentio/isodate.svg?style=shield&circle-token=d49fc6469182ce8392a332106af7a5fb76b2f8b7)](https://circleci.com/gh/segmentio/isodate)\n[![Codecov](https://img.shields.io/codecov/c/github/segmentio/isodate/master.svg?maxAge=2592000)](https://codecov.io/gh/segmentio/isodate)\n\nParse an ISO date string into a Date. Works cross-browser, even in the old, dumb ones ;)\n\n## Installation\n\n```sh\n$ npm install @segment/isodate\n```\n\n## Example\n\n```js\nvar isodate = require('isodate');\n\nvar date = isodate.parse('2013-09-04T00:57:26.434Z');\ndate.toISOString(); // \"2013-09-04T00:57:26.434Z\"\n```\n\n```js\nvar isodate = require('isodate');\n\nisodate.is('2013-09-04T00:57:26.434Z'); // true\nisodate.is('string'); // false\n```\n\n## API\n\n### .parse(string)\n\nParse the given ISO date `string` into a native `Date` object.\n\n### .is(string, strict)\n\nCheck if the given `string` is an ISO date string. `strict` mode will return false for strings without a year, month _and_ date; for example `2013` would be `false`.\n","readmeFilename":"README.md"}