{"_id":"user-time","_rev":"8-26fdab54a78b68e3c97aa7d2a324be64","name":"user-time","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"user-time","version":"1.0.0","keywords":["time","input","user","fuzzy","match","normalize","date","datetime"],"author":{"name":"jrmedd"},"license":"WTFPL","_id":"user-time@1.0.0","maintainers":[{"name":"jrmedd","email":"hello@jamesmedd.co.uk"}],"homepage":"https://github.com/jrmedd/user-time#readme","bugs":{"url":"https://github.com/jrmedd/user-time/issues"},"dist":{"shasum":"a97a18b9336dbd4ce38eab2fa37b8ba2036b7a2a","tarball":"https://registry.npmjs.org/user-time/-/user-time-1.0.0.tgz","fileCount":6,"integrity":"sha512-DzGEqPj9phWu4neQy/2iKfypFrk1x9rWhwXVmUh2L2DKQd/8Da0QprYDi336lpGlvwGB70mtYkUlucDUkoBpaQ==","signatures":[{"sig":"MEUCIA3TpZEPqQynfDeF02be6UGCE8MHhZYriymN9W85c7rFAiEAwAqVfJwaQI0S7V571k+/9wA/nrf5a4msMdhW6bdwNgw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgqPLtCRA9TVsSAnZWagAAaboP/0Ed8iW53W0v3CQH+2Fg\ndSFnpNNNzbJN7u3baLws6h9rcOS0PMZEd403p/m7PtmziKcnLguhK9dLrQl9\nI6q/+egii46aZI7pwe3eEdTur7CW/GI46DSfPKOD8wvalJJFhbRR1eY7vmUO\nWLpFFo7oN+rNgWC5s83d25ANIpztHVXWZz5qPOEEt5bXZBGzZiG3KEiSILuJ\nRuQShE7Gt5ftRx9vLPbHwtfE28OxHaYu6YYF2TXhTb9Hysui+n0DD3lWENck\n0dN9eVlmvWXseg7TVT3uZl1Upuv2kI3m5Oz1V1Lmpbhbn6hzbjLLwu43sy9u\n1Wi/2Ai5E06g6Aa/lyaRhFZVeY59kA38kzmqMFAl4mzwotl3aRRsS+UvPXJ5\n6k4Xx4ICnh5bznoTl6KraWP6A/QChSv5ntSAQDBCOockQg+7G5aK1FFnfCDO\nRCGXx1wXsO82iOxSFXiJ1gqSOwoMVHmC3PPHIve5oIq7/Bis8rF3py4TjihW\nFaS4yGiuLs+qtx+Z5B8uQqsWiFW1//Gqk0bACoN7sz0J2Zw7P5CP/ioxXZVB\nRVsvNVYMrsrCGkwHv9vg3o6b/nPFcPGelcrRPjomfinKgy3go5LsXfGTKwQz\nkVDe7mN/iEINUVdFyNK0JFip3fOSdPKhfoDSHheZRrVO1ab+SMvvlf3QZTnn\n+sA8\r\n=97mv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"dea2a1dd2ae8d52adfb5b0cf09cb8b18d1cc4ee9","scripts":{"test":"mocha"},"_npmUser":{"name":"jrmedd","email":"hello@jamesmedd.co.uk"},"repository":{"url":"git+https://github.com/jrmedd/user-time.git","type":"git"},"_npmVersion":"6.14.12","description":"Zero-dependency function that turns user-input time strings into a formatted time string","directories":{},"_nodeVersion":"10.24.1","_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.4.0","eslint":"^7.27.0","eslint-plugin-import":"^2.23.3","eslint-config-airbnb-base":"^14.2.1"},"_npmOperationalInternal":{"tmp":"tmp/user-time_1.0.0_1621684973110_0.8051825837442637","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"user-time","version":"1.0.1","keywords":["time","input","user","fuzzy","match","normalize","date","datetime"],"author":{"name":"jrmedd"},"license":"WTFPL","_id":"user-time@1.0.1","maintainers":[{"name":"jrmedd","email":"hello@jamesmedd.co.uk"}],"homepage":"https://github.com/jrmedd/user-time#readme","bugs":{"url":"https://github.com/jrmedd/user-time/issues"},"dist":{"shasum":"597ea8ab1a54b9e8259fd67052c5f06f08539a1d","tarball":"https://registry.npmjs.org/user-time/-/user-time-1.0.1.tgz","fileCount":6,"integrity":"sha512-qJYL68YLgZp4BAbkTL+DwE6OxeX07sN2Cr/6eMyUYUfekxJnZIU7zVwBk2P7OmY1LAuzuEvu57JZl7i2kTcu6w==","signatures":[{"sig":"MEQCIBaydp0cBBA2j5sXHBNtKxxa64NLREEkg9Hp/Ue1nUrPAiAju7i7Chv/2RIQA6+EOTrDqiA+x90QoJ4KnNf0LlFVGQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10138,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgqPbUCRA9TVsSAnZWagAA2o0P/iO28XhkiEKBGEHuPv9a\nhdZXg/IJWWGCHeo+r4MiCSPXOirMZpPoin0QALmAHxmQHTDaZO3mv+HhMi0S\ncfWblT56BYxGvXQqG8X1KSpapaRg+xZybaECbFhdBBD2+uD5YZfCnzU3LBBq\n+hG7rQ9X1STDy0p+csgljpnkTNK2I1THektiGMF8qszrh0LPT5wMbZF5wrwt\nVQPMJpdO6v1kJLxmZJLOOs5G34Ze0DsI5cZO1kk5SKw+ffDTJwGmuWDJHUz0\nNQ0GFw84642sbUYhGW0sIgLaA9F1CErYUoyEUjn8W4wjj36NMm74c0dEf60p\n7Hw3Z12lUns78euUwWgm6rzdLbMCrDF0F+7AdOPpVpisb71WsXyT6s34Tw59\nxxiNCiUuTNaQieAVXKYaH5kyFslx2cNKN9eUY7I+sKrLk+jZvhIwpgUzJeFC\nQGjo/vWGlRpWTW0d+WDCtT+cq81jpsP+dX6+9SG5ux133029GDJbg+2GqyyE\nWWVLl5LEB4J9WL/35CDygoYoy+AT3ydpMzx1nWSm55HarpcJTpD/b/1JasBb\nMFh+qWv0rpXUsXaed3MBzE549K7KdSASe78InPNnueNzJJ/rwF/BF0xUxuHA\nGcGH+V3SUTIZ9RlPQTDxCR4TmVUG0cpDZD29jceEn5EeVffRc4uEW+58XOl0\nEJZz\r\n=p+Gv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"e55672ea56d4e12b8efdcc0438a2b947d39992e9","scripts":{"test":"mocha"},"_npmUser":{"name":"jrmedd","email":"hello@jamesmedd.co.uk"},"repository":{"url":"git+https://github.com/jrmedd/user-time.git","type":"git"},"_npmVersion":"7.7.6","description":"Zero-dependency function that turns user-input time strings into a formatted time string","directories":{},"_nodeVersion":"15.14.0","_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.4.0","eslint":"^7.27.0","eslint-plugin-import":"^2.23.3","eslint-config-airbnb-base":"^14.2.1"},"_npmOperationalInternal":{"tmp":"tmp/user-time_1.0.1_1621685972167_0.9486847939753158","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"user-time","version":"1.0.3","keywords":["time","input","user","fuzzy","match","normalize","date","datetime"],"author":{"name":"jrmedd"},"license":"WTFPL","_id":"user-time@1.0.3","maintainers":[{"name":"jrmedd","email":"hello@jamesmedd.co.uk"}],"homepage":"https://github.com/jrmedd/user-time#readme","bugs":{"url":"https://github.com/jrmedd/user-time/issues"},"dist":{"shasum":"3ce0ddabec3d3e53e762aedffc19273913fcd91c","tarball":"https://registry.npmjs.org/user-time/-/user-time-1.0.3.tgz","fileCount":8,"integrity":"sha512-ZpSGRSfqysMPHeVqXn1cqfNlfOQ9mxfzscw0b+hDvOs7t7fzcR5/jqYLe5kcx8zZr+NdvaD0yWALVbvYrDCw+Q==","signatures":[{"sig":"MEUCIC4iDzFoDXDRJnytid3AOAc5ly0P7G9KZlU9KAdAAX2jAiEAjTXNZKttkc5r0GY7UOuN0c77xYiCLECo+iL74cV6PbY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12404,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgqRhGCRA9TVsSAnZWagAAjDMQAImsh3ayyv/YT5Xek9By\nw3xc3pEl0cfHEvhcIP/GKBV7G+yRT2BMEjlecJotBGFefE1PsKTJglgoNVlE\nLdX5vscyDBXfRchtPpWxhklcSfmGAQzW/I9oglrCWhhb/6G1g3nOPBtq4QN3\nvwoptKnvZXcMW6RrYyQexPfHfkpCHTFSr+GISqN1dmLP5+yUfmdPs2+RCrNX\ntbV5ncat3RxOyUJMomASCIpVJznl9xjnNLxknB4WwR31ke4SKN7lTNl/QEZP\nbutCpDdvWbJ03ccRHVbF1ZAYe7pWjHvY4HDYoVsxBLqJci6+p95p34tYupfu\nKKGH5fZca32QzIJVTualg095IlQLskDuusyTH0kPbbP4byfvOMJMKKyyMuIM\nBQk6pdcUsCSaXLjEpKEb2H5L7abEAmxdmIfA6fWEjrYjabAwNFetVqSj3myI\nFsn876FfISkKgH3uu1PoezpoSyf5ZSVmIad89uV2+nish6qVcsGT4RCOGirU\nSjyEhmiucwVHRVuPxGRHJgmdkAe9l22L0y/8SgHkvFZ2LwU78vyo1V+HSXxw\nJP3b6s2Fluru5B+tkIEeffCmt/drD72XJsb7c36+u1KF4mhuwrDEYtCqK8Os\nw+mf979LB7K7iElY1MasBN3U++4Z1Fpqfrk0rbn6zbWmT6Jjn7d7AAMsM6N2\nLnKP\r\n=HAV8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"ebbcd5e4ef13e40bd788f7d037c3d670d5b6d7e5","scripts":{"test":"mocha","build":"babel src -d lib"},"_npmUser":{"name":"jrmedd","email":"hello@jamesmedd.co.uk"},"repository":{"url":"git+https://github.com/jrmedd/user-time.git","type":"git"},"_npmVersion":"7.7.6","description":"Zero-dependency function that turns user-input time strings into a formatted time string","directories":{},"_nodeVersion":"15.14.0","_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.4.0","eslint":"^7.27.0","@babel/cli":"^7.14.3","@babel/core":"^7.14.3","@babel/preset-env":"^7.14.2","eslint-plugin-import":"^2.23.3","eslint-config-airbnb-base":"^14.2.1"},"_npmOperationalInternal":{"tmp":"tmp/user-time_1.0.3_1621694533564_0.8762211766634056","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"user-time","version":"1.0.4","keywords":["time","input","user","fuzzy","match","normalize","date","datetime"],"author":{"name":"jrmedd"},"license":"WTFPL","_id":"user-time@1.0.4","maintainers":[{"name":"jrmedd","email":"hello@jamesmedd.co.uk"}],"homepage":"https://github.com/jrmedd/user-time#readme","bugs":{"url":"https://github.com/jrmedd/user-time/issues"},"dist":{"shasum":"7dcd579050a46feb9c5dca6be4fe7fbe3fe153e9","tarball":"https://registry.npmjs.org/user-time/-/user-time-1.0.4.tgz","fileCount":9,"integrity":"sha512-xAPitAqwWSSNxbiaYhU4dU5TpcdxunhWW9SU3M36DJ23y+WmNtQ53EIlehMKiD3EIMtGV83CEx/IygD8hXYgow==","signatures":[{"sig":"MEQCIGkN1CN/GzBlhZskoab82fS2iAfxX+J3ORggjffqzuiAAiAcjFtcNl8GsQB9H0qvdvf9MPhBnOXEvWq88Zfb7vcXFQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12546,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgqRq/CRA9TVsSAnZWagAABSIQAJLULa0l0YAonTZWSkaO\nNGpDwzjArAvPJPzOOfydSbP5BgyWTkUlLTT2Y20U6PvP9HR6ZuoROdREbGDP\nESbNU2axH7hTeCKp+cF3mNFbKxhyBo9qz0fGNCVcUjXTzQUbonHmgTk7h6Ds\nhSY0gBgNUHby2bIPMyrai3PlT63gQuHhlJLpzwRPe7lpQDPF9ZHA+qsMgvAd\nt4/Zcx5aRIhAbzjtlsEZOo64NECppJHNrvrZKvoUIwDOfO4TYtbnlCEUzTac\nziTYrRWG4sDfKXAVWj2osWyy8WGmjXWFz7MCQrZcg7MRF1o9r2AyDZxYl2nk\naS1fpKvLQi7aTzkt+3stA3lqxtzVNVa/RYlm7iZcaE1s/sTpc1Pm+0E28n8R\nBzBQwy7eM6bMWyabdKLrUaAxPPSQ5puPqBXa7ry5Uh9SL6jPIg3z/hd4kWk1\n6YGHQJv39+98G5vqlhNkL+t9GfSHsYlVrp+CgEVxoX0KiPoPKlVq+unKxKNd\nAa55hYQvYGYv353tqUInkuYM3L1rg1temgii9+L/O57+LzinaT5nBX7ImNuJ\nDHf2WbxkQIrSrqHC8lG6FGoDGmhQh8Ykk9kthHGpFDYDHf0FVL3DG6KyEktm\noWkFARR96KNUjWAmdMabpsUcXnS7a/Xatvcgvt6fDSTBFljIF125XpWLx3JS\nFt82\r\n=/lW5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"b2ca424bb6830dad52e3abc04753631bb82ff316","scripts":{"test":"mocha","build":"babel src -d lib"},"_npmUser":{"name":"jrmedd","email":"hello@jamesmedd.co.uk"},"repository":{"url":"git+https://github.com/jrmedd/user-time.git","type":"git"},"_npmVersion":"7.7.6","description":"Zero-dependency function that turns user-input time strings into a formatted time string","directories":{},"_nodeVersion":"15.14.0","_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.4.0","eslint":"^7.27.0","@babel/cli":"^7.14.3","@babel/core":"^7.14.3","@babel/preset-env":"^7.14.2","eslint-plugin-import":"^2.23.3","eslint-config-airbnb-base":"^14.2.1"},"_npmOperationalInternal":{"tmp":"tmp/user-time_1.0.4_1621695166967_0.07469835537147151","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"user-time","version":"1.0.5","keywords":["time","input","user","fuzzy","match","normalize","date","datetime"],"author":{"name":"jrmedd"},"license":"WTFPL","_id":"user-time@1.0.5","maintainers":[{"name":"jrmedd","email":"hello@jamesmedd.co.uk"}],"homepage":"https://github.com/jrmedd/user-time#readme","bugs":{"url":"https://github.com/jrmedd/user-time/issues"},"dist":{"shasum":"b1442882155ab5606bc258fa6d006909c5debac0","tarball":"https://registry.npmjs.org/user-time/-/user-time-1.0.5.tgz","fileCount":9,"integrity":"sha512-/fazDJaaxLL+IEWuD4aa7xUnMx2AjOTXGCmm+YeVQsw4rhzvcCaxV3VPuyYvq6JfFI0DwrA2LKMS4m/+IhXvcw==","signatures":[{"sig":"MEYCIQCsXp1tseTd5cfzxkG52BOfw4gdyyCjW6dlTfbqdy9clQIhAPOY/VRILeaW2LjfPuh2dtoA/mtKTOjNbxOO8qFBpbzj","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17768,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgqSR0CRA9TVsSAnZWagAAumMP/ij+SqrAPr1iK4IgCMiY\nz9g3SiU6qZAOi5qnvppmIdZn2Y/hwfz5XFucIQ/577iZ934cfJVcN4xJZ/ho\nSo+YgZhzYjxaQVuLuN89PYrawH1cXZYeKWM/OdWgmlU1phHFLWX9vw43MIvu\nMjZKanNKOBPvw2h6qU9sJq1IGUmJEHzkbruFlabs2sTVAsVOHAesu6ARMBiv\nlvo8vU1UoNltmEK0QWyRbhgj7tBTAKZVA5iC4e/II9FPM5tWjikez89LskQV\nsty4MNqbtEmKVgMsPUhnXiRNfCxOhGBbDp8KhBL5Oz45GExaV+A1n4cuBHlS\nEg59hdfuCoE/L0k/j6kjWy3eGCsa84Jrc4qMjl0oCzAtD36698DW10BO4tfJ\npJ17L+bZV8ybYdD2s61R6s/wDRKF4/j8tEwrEnQj3+dHbxngEqkzGEgmJCje\no2ij9uPhE+ogiSrc16EJragU8yargsIsTpK0K8ABgJWxtuvinS7Tre+2tiWP\nWzn3tFbhiAWQ8Ovw2dCH1Z+BuQi86H210+YImwScj/HUtPaPV8v1VHpo1W2g\nOSMbEQlFNjKk4Nd9Ukj5IlCgu5qPYJ5mTrIbcfdjLLsfS44qSGoZaKWap3zl\nZEWSzxWfwFZiVQnfKjhHEJoQ3l8t+7kBt1KuPv22IQ32rQyVWCdsZDdaYoib\nMgps\r\n=Qqxr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"01ac202a2c309b40677787f88d504f7e6af8c2b5","scripts":{"test":"mocha","build":"babel src -d lib"},"_npmUser":{"name":"jrmedd","email":"hello@jamesmedd.co.uk"},"repository":{"url":"git+https://github.com/jrmedd/user-time.git","type":"git"},"_npmVersion":"7.7.6","description":"Zero-dependency function that turns user-input time strings into a formatted time string","directories":{},"_nodeVersion":"15.14.0","_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.4.0","eslint":"^7.27.0","@babel/cli":"^7.14.3","@babel/core":"^7.14.3","@babel/preset-env":"^7.14.2","eslint-plugin-import":"^2.23.3","eslint-config-airbnb-base":"^14.2.1"},"_npmOperationalInternal":{"tmp":"tmp/user-time_1.0.5_1621697652449_0.05841516925849066","host":"s3://npm-registry-packages"}},"1.0.6":{"name":"user-time","version":"1.0.6","keywords":["time","input","user","fuzzy","match","normalize","date","datetime"],"author":{"name":"jrmedd"},"license":"WTFPL","_id":"user-time@1.0.6","maintainers":[{"name":"jrmedd","email":"hello@jamesmedd.co.uk"}],"homepage":"https://github.com/jrmedd/user-time#readme","bugs":{"url":"https://github.com/jrmedd/user-time/issues"},"dist":{"shasum":"9d8788eb1336726fdd732b5e708a3f38ffd947d3","tarball":"https://registry.npmjs.org/user-time/-/user-time-1.0.6.tgz","fileCount":4,"integrity":"sha512-JRDbZW2pEfevai//TEjWx2NkPNwG2IBYBd48UJmgnf2AjXDgTdJh6jwhgVQ9tS/2uXIvGo9eKBaWU/UzYrf0UQ==","signatures":[{"sig":"MEYCIQDtRqrRqaDA6cy2h/8iLurUhDoI2ESt/fwCbzFhBB4M1QIhAM0qyZpa7EHftb1QaF5mXR0r7wDj3uWP9Ic0QSq2qIJZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8543},"main":"index.js","gitHead":"e925e5853e8819fe685f72424b8611329f00a7b2","scripts":{"test":"mocha","build":"babel src -d lib"},"_npmUser":{"name":"jrmedd","email":"hello@jamesmedd.co.uk"},"repository":{"url":"git+https://github.com/jrmedd/user-time.git","type":"git"},"_npmVersion":"7.7.6","description":"Zero-dependency function that turns user-input time strings into a formatted time string","directories":{},"_nodeVersion":"15.14.0","_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.4.0","eslint":"^7.27.0","@babel/cli":"^7.14.3","@babel/core":"^7.14.3","@babel/preset-env":"^7.14.2","babel-preset-minify":"^0.5.2","eslint-plugin-import":"^2.23.3","eslint-config-airbnb-base":"^14.2.1"},"_npmOperationalInternal":{"tmp":"tmp/user-time_1.0.6_1723047544454_0.03371512944947841","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"user-time","version":"2.0.0","keywords":["time","input","user","fuzzy","match","normalize","date","datetime"],"author":{"name":"jrmedd"},"license":"WTFPL","_id":"user-time@2.0.0","maintainers":[{"name":"jrmedd","email":"hello@jamesmedd.co.uk"}],"homepage":"https://github.com/jrmedd/user-time#readme","bugs":{"url":"https://github.com/jrmedd/user-time/issues"},"dist":{"shasum":"bf4c8e8b3a172cec6c796c2722f56dfa15ffb450","tarball":"https://registry.npmjs.org/user-time/-/user-time-2.0.0.tgz","fileCount":6,"integrity":"sha512-tV4YvLsnz921MGajktP3IYuWpN2OzEeGNh786dIvaxT34OaCT7raa5ARZpjt8HGDzrfCN8I8Mq/UKnSh9WBNoQ==","signatures":[{"sig":"MEUCIBIEi2y3aPUY9DPerGxESo5Q6/3JmqLwarafTVS/AS7dAiEA90cA25FtF2XPEgOllTZVI2MLMTdhNk+P7n/2CwPf6DE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19446},"main":"./lib/userTime.cjs","type":"module","types":"./lib/userTime.d.ts","module":"./lib/userTime.js","exports":{".":{"import":{"types":"./lib/userTime.d.ts","default":"./lib/userTime.js"},"require":{"types":"./lib/userTime.d.cts","default":"./lib/userTime.cjs"}}},"gitHead":"ea569e10be930a7a03a23d6017eaa670ba3b3b16","scripts":{"test":"mocha","build":"tsup src/userTime.ts --clean --dts --out-dir lib/ --format cjs,esm && fix-tsup-cjs --cwd lib"},"_npmUser":{"name":"jrmedd","email":"hello@jamesmedd.co.uk"},"repository":{"url":"git+https://github.com/jrmedd/user-time.git","type":"git"},"_npmVersion":"10.8.2","description":"Turns fuzzy user time strings into a formatted time string","directories":{},"_nodeVersion":"20.17.0","dependencies":{"fix":"^0.0.6"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^5.1.1","tsup":"^8.3.0","mocha":"^8.4.0","eslint":"^7.27.0","prettier":"^3.3.3","typescript":"^5.6.2","fix-tsup-cjs":"^1.2.0"},"_npmOperationalInternal":{"tmp":"tmp/user-time_2.0.0_1726850279610_0.7961859602936998","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"user-time","version":"2.0.1","description":"Turns fuzzy user time strings into a formatted time string","main":"./lib/userTime.cjs","module":"./lib/userTime.js","type":"module","exports":{".":{"import":{"types":"./lib/userTime.d.ts","default":"./lib/userTime.js"},"require":{"types":"./lib/userTime.d.cts","default":"./lib/userTime.cjs"}}},"scripts":{"build":"tsup src/userTime.ts --clean --dts --out-dir lib/ --format cjs,esm && fix-tsup-cjs --cwd lib","test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/jrmedd/user-time.git"},"keywords":["time","input","user","fuzzy","match","normalize","date","datetime"],"author":{"name":"jrmedd"},"license":"WTFPL","bugs":{"url":"https://github.com/jrmedd/user-time/issues"},"homepage":"https://github.com/jrmedd/user-time#readme","devDependencies":{"chai":"^5.1.1","fix-tsup-cjs":"^1.2.0","mocha":"^8.4.0","prettier":"^3.3.3","tsup":"^8.3.0","typescript":"^5.6.2"},"_id":"user-time@2.0.1","gitHead":"45e68df05dee22a4b8e0eb2719e1633c6332b615","types":"./lib/userTime.d.ts","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-HtGdBi5ldDqhziq9KgIvf5Gdjc+hcimN9EBrgqbQClp+iEbrSaRTimqSAYWU9MvB889KMM54syW4rudfVFDJ9A==","shasum":"669de5fcb7a2c240d4f407a74da11770fbd8ef31","tarball":"https://registry.npmjs.org/user-time/-/user-time-2.0.1.tgz","fileCount":6,"unpackedSize":19376,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMzBut97oVpDdoV9DIPUia8bG1z2G2UGhEaNumIm7eAgIhANbBESnS5kAt22KFaohewQBLza/RVxw45QAK7aEdD1BN"}]},"_npmUser":{"name":"jrmedd","email":"hello@jamesmedd.co.uk"},"directories":{},"maintainers":[{"name":"jrmedd","email":"hello@jamesmedd.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/user-time_2.0.1_1726850740650_0.19978483866418628"},"_hasShrinkwrap":false}},"time":{"created":"2021-05-22T12:02:53.110Z","modified":"2024-09-20T16:45:41.098Z","1.0.0":"2021-05-22T12:02:53.261Z","1.0.1":"2021-05-22T12:19:32.298Z","1.0.3":"2021-05-22T14:42:13.721Z","1.0.4":"2021-05-22T14:52:47.118Z","1.0.5":"2021-05-22T15:34:12.570Z","1.0.6":"2024-08-07T16:19:04.671Z","2.0.0":"2024-09-20T16:37:59.812Z","2.0.1":"2024-09-20T16:45:40.912Z"},"bugs":{"url":"https://github.com/jrmedd/user-time/issues"},"author":{"name":"jrmedd"},"license":"WTFPL","homepage":"https://github.com/jrmedd/user-time#readme","keywords":["time","input","user","fuzzy","match","normalize","date","datetime"],"repository":{"type":"git","url":"git+https://github.com/jrmedd/user-time.git"},"description":"Turns fuzzy user time strings into a formatted time string","maintainers":[{"name":"jrmedd","email":"hello@jamesmedd.co.uk"}],"readme":"![build](https://github.com/jrmedd/user-time/actions/workflows/main.yml/badge.svg)\n\n# User time\n\nTakes user-input time values and parses them, outputting Intl-formatted strings and ISO timestamps.\n\n## Overview\n\nIn all of my time working as web designer and developer, I've always struggled with the idea of simple time inputs for users. I've seen users struggle with `<input type=\"time\" />` (as I have myself) and nobody wants a masked input. [Material's time picker](https://material.io/components/time-pickers) for Android is nice, but isn't available for the web and [kids these days struggle with analogue clockfaces](https://slate.com/human-interest/2018/05/analog-clock-reading-skills-arent-that-important-anymore.html).\n\nMy favourite time input on the web is [Google's calendar](https://calendar.google.com), which lets me type an awful lot of rubbish and still get the write time. I've needed some similar functionality recently, so I finally wrote up a zero-dependency function that does it.\n\n## Usage\n\n### Basic usage\n\nImport the module:\n\n```js\nimport UserTime from \"user-time\";\n//or\nconst UserTime = require(\"user-time\");\n```\n\nGive the function a string and it will attempt to parse:\n\n```js\n// Formatted value:\nnew UserTime(\"09:30\").formattedTime; // 9:30 am\n\n//ISO string\nnew UserTime(\"15:30\").ISOString; // 2021-05-22T15:30:00.000Z\n```\n\n### Optional parameters\n\n`formattedTime` can be adjusted using the same options from [Intl.DateTimeFormat](https://tc39.es/ecma402/#datetimeformat-objects):\n\n```js\nconst options = { minute: \"2-digit\", hour: \"2-digit\", hourCycle: \"h24\" };\n\nnew UserTime(\"1pm\", { timeFormat: options }).formattedTime; // 13:00\n```\n\n`defaultTimeOfDay` can be set to `\"pm\"`:\n\n```js\nnew UserTime(\"6\", { defaultTimeOfDay: \"pm\" }).formattedTime; // 6:00pm\n```\n\n`defaultDate` can adjust the date of the `ISOString` returned:\n\n```js\nconst janFirst = new Date(2021, 0, 1);\n\nnew UserTime(\"1\", { defaultDate: janFirst }).ISOString; // 2021-01-01T01:00:00.000Z\n```\n\n## Examples\n\nThere are plenty of inputs that `UserTime` will accept. Below are a bunch of examples:\n\nSingle or double-digits less than 12 return time in am by default.\n\n```js\nnew UserTime(\"1\").formattedTime; // 1:00\nnew UserTime(\"12\").formattedTime; // 12:00\n```\n\nSingle or double-digits less than 12 return time in pm if \"pm\" is passed as an optional parameter.\n\n```js\nnew UserTime(\"1\", { defaultTimeOfDay: \"pm\" }).formattedTime; // 1:00 pm\n```\n\n0 returns 12:00 am.\n\n```js\nnew UserTime(\"0\").formattedTime; // 12:00 am\n```\n\n12 returns 12:00 am or pm depending on the optional \"defaultTimeOfDay\" parameter (am, by default).\n\n```js\nnew UserTime(\"12\").formattedTime; // 12:00 am\nnew UserTime(\"12\", { defaultTimeOfDay: \"pm\" }).formattedTime; // 12:00 pm\n```\n\nSingle or double-digits greater than 12 return time in pm.\n\n```js\nnew UserTime(`13`).formattedTime; // 1:00 pm\n```\n\n24 returns 12:00 am.\n\n```js\nnew UserTime(\"24\").formattedTime; // 12:00 am\n```\n\n3-digit numbers provide minutes.\n\n```js\nnew UserTime(\"115\").formattedTime; // 1:15 am\nnew UserTime(\"230\").formattedTime; // 2:30 am\nnew UserTime(\"345\").formattedTime; // 3:45 am\n```\n\nIncrements of 100 up to 2400 provide the time on the hour.\n\n```js\nnew UserTime(\"100\").formattedTime; /// 1:00 am\nnew UserTime(\"1200\").formattedTime; // 12:00 am\nnew UserTime(\"1300\").formattedTime; // 1:00 pm\nnew UserTime(\"2400\").formattedTime; // 12:00 am\n```\n\n4-digit numbers provide minutes.\n\n```js\nnew UserTime(\"0115\").formattedTime; // 1:15 am\nnew UserTime(\"0230\").formattedTime; // 2:30 am\nnew UserTime(\"0345\").formattedTime; // 3:45 am\nnew UserTime(\"1315\").formattedTime; // 1:15 pm\nnew UserTime(\"1430\").formattedTime; // 2:30 pm\nnew UserTime(\"1545\").formattedTime; // 3:45 pm\n```\n\n5-digit numbers provide minutes.\n\n```js\nnew UserTime(\"011500\").formattedTime; // 1:15 am\nnew UserTime(\"023015\").formattedTime; // 2:30 am\nnew UserTime(\"034530\").formattedTime; // 3:45 am\nnew UserTime(\"131500\").formattedTime; // 1:15 pm\nnew UserTime(\"143015\").formattedTime; // 2:30 pm\nnew UserTime(\"154530\").formattedTime; // 3:45 pm\n```\n\n5-digit numbers provide seconds with the appropriate formatting object as an optional parameter.\n\n```js\nnew UserTime(\"011500\", {\n  timeFormat: {\n    minute: \"numeric\",\n    hour: \"numeric\",\n    second: \"numeric\",\n    hourCycle: \"h12\",\n  },\n}).formattedTime; // 1:15:00 am\n\nnew UserTime(\"023015\", {\n  timeFormat: {\n    minute: \"numeric\",\n    hour: \"numeric\",\n    second: \"numeric\",\n    hourCycle: \"h12\",\n  },\n}).formattedTime; // 2:30:15 am\n\nnew UserTime(\"034530\", {\n  timeFormat: {\n    minute: \"numeric\",\n    hour: \"numeric\",\n    second: \"numeric\",\n    hourCycle: \"h12\",\n  },\n}).formattedTime; // 3:45:30 am\n\nnew UserTime(\"131500\", {\n  timeFormat: {\n    minute: \"numeric\",\n    hour: \"numeric\",\n    second: \"numeric\",\n    hourCycle: \"h12\",\n  },\n}).formattedTime; // 1:15:00 pm\n\nnew UserTime(\"143015\", {\n  timeFormat: {\n    minute: \"numeric\",\n    hour: \"numeric\",\n    second: \"numeric\",\n    hourCycle: \"h12\",\n  },\n}).formattedTime; // 2:30:15 pm\n\nnew UserTime(\"154530\", {\n  timeFormat: {\n    minute: \"numeric\",\n    hour: \"numeric\",\n    second: \"numeric\",\n    hourCycle: \"h12\",\n  },\n}).formattedTime; // 3:45:30 pm\n```\n\n3am returns 3:00 am.\n\n```js\nnew UserTime(\"3am\").formattedTime; // 3:00 am\n```\n\n3pm returns 3:00 pm.\n\n```js\nnew UserTime(\"3pm\").formattedTime; // 3:00 pm\n```\n\n12am returns 12:00 am.\n\n```js\nnew UserTime(\"12am\").formattedTime; // 12:00 am\n```\n\n12pm returns 12:00 pm.\n\n```js\nnew UserTime(\"12pm\").formattedTime; // 12:00 pm\n```\n\nam or pm in the value being parsed overrides the optional parameter.\n\n```js\nnew UserTime(\"3am\", { defaultTimeOfDay: \"pm\" }).formattedTime; // 3:00 am\n```\n\nam or pm in the value being parsed overrides the optional parameter.\n\n```js\nnew UserTime(\"3pm\", { defaultTimeOfDay: \"am\" }).formattedTime; // 3:00 pm\n```\n\nColon-separators work.\n\n```js\nnew UserTime(\"3:00\").formattedTime; // 3:00 am\nnew UserTime(\"15:00\").formattedTime; // 3:00 pm\nnew UserTime(\"3:00:00\").formattedTime; // 3:00 am\nnew UserTime(\"15:00:00\").formattedTime; // 3:00 pm\n```\n\nColon-separators work with am and pm too, with or without spaces.\n\n```js\nnew UserTime(\"3:00am\").formattedTime; // 3:00 am\nnew UserTime(\"3:00pm\").formattedTime; // 3:00 pm\nnew UserTime(\"3 : 00 am\").formattedTime; // 3:00 am\nnew UserTime(\"3 : 00 pm\").formattedTime; // 3:00 pm\n```\n\nISO strings are always returned, the date of which can be set with an optional parameter (today by default).\n\n```js\nnew UserTime(\"3:00am\", { defaultDate: new Date(2021, 0, 1) }).ISOString; // 2021-01-01T03:00:00.000Z\n```\n\nInvalid times give an error\n```js\nnew UserTime(\"25:00am\", { defaultDate: new Date(2021, 0, 1) }).error // true,\nnew UserTime(\"-1\", { defaultDate: new Date(2021, 0, 1) }).error // true,\n```\n\nBONUS: you can type digit o'clock and get a time value.\n\n```js\nnew UserTime(\"3 o'clock\").formattedTime; // 3:00 am\n```\n","readmeFilename":"README.md"}