{"_id":"@sindresorhus/to-milliseconds","_rev":"4-257ec4d60d86d9aae58ea5f591c4fe28","name":"@sindresorhus/to-milliseconds","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"@sindresorhus/to-milliseconds","version":"1.0.0","description":"Convert an object of time properties to milliseconds: `{seconds: 2}` → `2000`","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/to-milliseconds.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["parse","object","properties","to","into","time","ms","milliseconds","microseconds","nanoseconds","duration","period","range","interval"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"4cec318ba5f33e53805e2fe63c27193c4207c90b","bugs":{"url":"https://github.com/sindresorhus/to-milliseconds/issues"},"homepage":"https://github.com/sindresorhus/to-milliseconds#readme","_id":"@sindresorhus/to-milliseconds@1.0.0","_npmVersion":"6.1.0","_nodeVersion":"8.11.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-TbPyv1MQSIJafkHdD6tJOl3J1QwU61iHNyUIOa41GPn8698WW6QgmY35DGASUHei3HTIuoN8ZSXjlTeWfaq5SA==","shasum":"982eccb482004f5209215f99d26d6f27927714b1","tarball":"https://registry.npmjs.org/@sindresorhus/to-milliseconds/-/to-milliseconds-1.0.0.tgz","fileCount":4,"unpackedSize":3576,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbPK1gCRA9TVsSAnZWagAAK58P+wZg75NHp28Z45RnXrgM\nv0m2Dv/iNv3GzvPh/Ihz8iKuTlYfJhskltxH9CPNTYAYNYIzd8Gjkec46wms\nawcOOwSlpX44Cg7W8JABlvk45+bk6Z+AIpvtsrCWFHVVdWO/Zk31hLvr81nf\nyNnIrtlynOW5eP0EKgn19TVW56MU/swKqQOpQK92H9u3vE4FjDRv9IL1Wo0M\nV4SSINCOt1Bqu8aG2ITwNZIENqJnAzeNIEQHZlO6xBkinkg/qMJ5sEgOsfsA\nYHuRSa/MrvlqOhlb5uvshvqSXDUWCllpBgxs48gjy0qx+xQCVLriZgAZ5IbV\nGcNlGFfcsc5QQnsrLx3WG0clB9PzTj6IDiNZRzyyKt60SK9/Ef7nz/R8Sot5\ncLo2mg/3ln1s4Qc34fRINFuaSK8smxmOpG/WD6qyYzdFGmAoN7KM6wNmEJrP\nxlgD1Q7FxoQOrduRy1yH1hvXMVwUnptIviNvldM+sV8+hFv4vI9Bgyb1k7sI\n87f5d+jIhaV6EtAUTY3VEBXc4JEV/ge4awM0PQmhX5BULEUlj54DPvf4s9Q/\n+/486JmPT0nwrgjlKUGGemHnpXBa2ZHV/pqWHMBGU6HYC3/fbd38Wadnu2pP\nNpXBtRQjsjPIUZwPl6tOG4NiCr8Oath64JCGJqClX2PLDdeCqhrGIlH0XMPR\nfQA2\r\n=gKCQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFzkVdqjBd4rRjWUGuAp0DPKKxjo0XNLnQqZMc5ScJP+AiEAtGvpEuktA2PuOCFUIFT/JPlOQ3TYoR0Eqv/HhzxZ3Zg="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/to-milliseconds_1.0.0_1530703200215_0.997194865492782"},"_hasShrinkwrap":false},"1.1.0":{"name":"@sindresorhus/to-milliseconds","version":"1.1.0","description":"Convert an object of time properties to milliseconds: `{seconds: 2}` → `2000`","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/to-milliseconds.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd-check"},"keywords":["parse","object","properties","to","into","time","ms","milliseconds","microseconds","nanoseconds","duration","period","range","interval"],"devDependencies":{"ava":"^1.3.1","tsd-check":"^0.5.0","xo":"^0.24.0"},"gitHead":"f6255b4ad1e8165807a71978cd7c8f5bc1689d29","bugs":{"url":"https://github.com/sindresorhus/to-milliseconds/issues"},"homepage":"https://github.com/sindresorhus/to-milliseconds#readme","_id":"@sindresorhus/to-milliseconds@1.1.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-hmTQzLiU5DoHHC4hRuWL9TpqffzB4ssqHP7qyV2Ec9I7QSUMFH86CdEHFRWn/lq8u4/PUnK61yAo+pd7e0r1vA==","shasum":"9847a233bace26eb02e8c77c4853e6dc6c424b69","tarball":"https://registry.npmjs.org/@sindresorhus/to-milliseconds/-/to-milliseconds-1.1.0.tgz","fileCount":5,"unpackedSize":4020,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcjyERCRA9TVsSAnZWagAAjncP/j4Ej7rKjwEYIOLwKxhq\nSr7NbG3IM+OA6GM3xV5nQwRv5nwGiO9eRp0g2nxoq+rnCAO+eV12Zw1JeJNS\n4e+D+SylqS3GcmyvBzVNihrIjOrFxUb7+NJNeR4VozA0Qbcre7AWVq+M902N\nfkERNgq7xP4wMbpyxr9tV4qFFBrpiK/ijHH7u0+KyTZWUOA2dEsLYkH7xlQP\nO2kMZZpx5jJgptOFTzE74/Vb3sh55OncSy5f3vav3I7yMYj/IqNE0SJPu0FD\n9//0sJzQaFIs+92+3MShgwNqGWX0QvGtTNLNfybjJXb2HbTQpK2tBebXTw9n\n4uiSIFRzf+WZgmxbP4CGWljiqB8WzJjxNjddvRJpSSgF5DZdrBPKMFaG0alW\n9xRQFkbFN05xzujmbkMnk+Y4I3DazfxCps2/lRSV/Pvh3yCBAcejhpOKUEUK\n1kXJYg/amLeySln/zMvO5d/pgSE5K7o2aQaejcsw2JKPU5Zdjy1Cz+GIGaTM\nxi3rIfJZAu03Hwr7H6mzNrFf9400zOwh64vKn4YXB6WRUphPOULuIycQ48Ij\nFTfkFgsY8LANGx4tyE476KknKPd5HhRgBDoI9SgD30ukObNpNwguvBO1q8ky\ncaQpL1D5xMf3GTd7p1iykM3Ku2z6Z0yvOFhVjw9pj2z8yFoS9Z2uBhVBx4YS\nZLKM\r\n=AfAg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFnxPjs33Rcd6mhDxnlNQH4MCpU7nQK2cDjvKiBcd/egIgA/IsLvqXAjoe+lD/bGsEr4y04rqgAuFQ6nW2BjCl6vE="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/to-milliseconds_1.1.0_1552883984878_0.26569891205392904"},"_hasShrinkwrap":false},"1.2.0":{"name":"@sindresorhus/to-milliseconds","version":"1.2.0","description":"Convert an object of time properties to milliseconds: `{seconds: 2}` → `2000`","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/to-milliseconds.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["parse","object","properties","to","into","time","ms","milliseconds","microseconds","nanoseconds","duration","period","range","interval"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.1","xo":"^0.24.0"},"gitHead":"798b869abd193c0a43e9f3f2d147125f99c78371","bugs":{"url":"https://github.com/sindresorhus/to-milliseconds/issues"},"homepage":"https://github.com/sindresorhus/to-milliseconds#readme","_id":"@sindresorhus/to-milliseconds@1.2.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-nHpLEF6oRZJZ0ym8hmxz4jeSdnOqwWd5GC75GNQqNjfSG1IY55RE3AaGEC/QUDElLTuaPSBVa1rnV/C/rUkAUw==","shasum":"3453e58b9cc973ccc98fe571dbb7a1d9737f06e7","tarball":"https://registry.npmjs.org/@sindresorhus/to-milliseconds/-/to-milliseconds-1.2.0.tgz","fileCount":5,"unpackedSize":4488,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcoLSOCRA9TVsSAnZWagAAbdMP/3yfUNg0toHEWlGyOin4\nXboGxl/nlH2q1BLh59eCZ9SiuBtKyuPeytQzXREZxAnZ+FRSJoM18UfHniWK\nlvcoakVeGRi+M3VGGrjMVAb5VY4T1X1pBkI+aVdlUSvtDLfSXJLi1JbxLU4i\n8J8W2TTmV2athQN9Gpey3vFYdlN6QMgwrKtDt+YJzk9czSQ6pMAv647VRQni\nQj23XbGVXxTpVMAj63e8fhiPA90rgNbYNqcSFFhF/QA+4AgPvEvDQag8w+nB\nLyv4pOs5gar94CKpOChciLIcMOaBa42V4ge5LmkQ2mSuaqBnWu27sfKdYMnp\n6u4tjNWP2/CesISoVwfYTm8gGSqS60xfckuCALjANsNyjrGAhhbmImF+ZbyI\n17WmBubVXbcUJgx5tZD6WatuhmnzP8vEMs5UTVrYwiRSLzpsn86pdpA2XTVq\nse0mr6t4jBLaociy64fi+3tZetJ5JFeJuvsNJMD8YmjqopC4sknRhoya9KkE\nciS8Ev+A1Dy8sH83HHyjrqmqI51EzaDtNIP0Z52mnPPGYHHuHvRFGPZ4ZdE2\n84Ht0LEax8A5rLG+Z4162w4x/5HuYrsZM0UoOXX5gXgwHYXzdqPCM5vM9pCb\n1/R0gbby4MSUn9iSr7D4IC5vhFhBYgpXM17yNjWqvhMgHYFJpoHFB5f0NQv/\n2zoQ\r\n=8pDF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGKWdiIyi4/Ls8DLMi67mNWgBEArQl4HiOu2uP12SVY/AiEAkCPea8IdCqe+qZTUYyGLM7TJA5DzuEPSkyOj+D8VK8Q="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/to-milliseconds_1.2.0_1554035853659_0.07282443991389553"},"_hasShrinkwrap":false},"2.0.0":{"name":"@sindresorhus/to-milliseconds","version":"2.0.0","description":"Convert an object of time properties to milliseconds: `{seconds: 2}` → `2000`","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/to-milliseconds.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["parse","object","properties","to","into","time","ms","milliseconds","microseconds","nanoseconds","duration","period","range","interval"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.39.1"},"gitHead":"73e7b52c160b59cccb22938f88b3821b454dec3f","bugs":{"url":"https://github.com/sindresorhus/to-milliseconds/issues"},"homepage":"https://github.com/sindresorhus/to-milliseconds#readme","_id":"@sindresorhus/to-milliseconds@2.0.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-Gkdb2ufaJjg+E2ThIo3MVIV8bqW4ytkSjr/aFE/4Cz1gUZidffhlqlbZGT1jURHB5V5wyMu3KMPz39BSJq/+CA==","shasum":"4cdbb50f25facbea18ee7bc3ca43f4671f649206","tarball":"https://registry.npmjs.org/@sindresorhus/to-milliseconds/-/to-milliseconds-2.0.0.tgz","fileCount":5,"unpackedSize":4216,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggBNrCRA9TVsSAnZWagAAo1EP/22RBXVVAGsxIg/ZUkmg\nQmFOIOorJXPmPzYgwgUfjWGt2Xrtk6O4JJ5hFbIi1i7ykocyOVS7l0F5GmpW\nCKuB3oDvnjtHNQu9VkhQy2Z4fiyzOYzxdypL0G+H5jOsjf/2ZFb/SjPYUJmO\nnjAEazkZmllCem/4mr+Q/sBlTTvQw1Ry6yC3vjJ5jvURiRCRgVoAwlH/zWE6\nk3whdES/N1k7Yg9JYPYP/D95Cxht8LW5L9cIAKdW9h+X8odlfFj3CdwjckWT\n2jCQ24RBl/d7KdUqBQkmM7DLE+xWOKM0WQnNaVFOdjPODaqVb6IKkogyxa4d\nzPphN/t+JFNS7vJrDEZNP1hr1uu+KRb3hUJ1mXiY2I51oAmw4onYywAqsOWJ\n1rUGXe9nDh2nncEaspFArOUzExuHVOpVz9ghhOHKSinmT/NFVmj1eAE2gb0b\nftuOQOqGqWc0Y+w27a9aw0enqZlLbT42mGrRIMSHjGbknX6wsqAnXqWIu85N\n1gZz0LrHaofPjmsgxzpMOgPjLP1UQ/tIx6SDK8DnUPhMlHfwaTz1vXjdKENG\ndk6dN5aCm0F4tK94gKIXcXVYNJi4fQPF2eKERd+QlP8zKLobcv+Nw+VQasmV\nvZQsJ1XgiGt47zYStYAbRkiQx8L3TRn1wp47iQ5d8LttrYAvMFdXwQTJsG1A\n033p\r\n=wNyS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGLLJ6xd105VBY+avWQZEDy8SWmVtxtNk29IXl6Bf8QvAiBEZPK0UPP31EoHp9wmlKq4rVp8k9JnqofNrtSfkTAR8A=="}]},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/to-milliseconds_2.0.0_1619006314994_0.8768741152000543"},"_hasShrinkwrap":false}},"time":{"created":"2018-07-04T11:19:59.988Z","1.0.0":"2018-07-04T11:20:00.310Z","modified":"2022-04-06T23:42:28.707Z","1.1.0":"2019-03-18T04:39:45.016Z","1.2.0":"2019-03-31T12:37:33.787Z","2.0.0":"2021-04-21T11:58:35.138Z"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"description":"Convert an object of time properties to milliseconds: `{seconds: 2}` → `2000`","homepage":"https://github.com/sindresorhus/to-milliseconds#readme","keywords":["parse","object","properties","to","into","time","ms","milliseconds","microseconds","nanoseconds","duration","period","range","interval"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/to-milliseconds.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"bugs":{"url":"https://github.com/sindresorhus/to-milliseconds/issues"},"license":"MIT","readme":"# to-milliseconds\n\n> Convert an object of time properties to milliseconds: `{seconds: 2}` → `2000`\n\n## Install\n\n```\n$ npm install @sindresorhus/to-milliseconds\n```\n\n## Usage\n\n```js\nimport toMilliseconds from '@sindresorhus/to-milliseconds';\n\ntoMilliseconds({\n\tdays: 15,\n\thours: 11,\n\tminutes: 23,\n\tseconds: 20,\n\tmilliseconds: 1\n});\n//=> 1337000001\n\nsetTimeout(() => {\n\t// …\n}, toMilliseconds({minutes: 2}));\n```\n\n## API\n\n### toMilliseconds(timeDescriptor)\n\n#### timeDescriptor\n\nType: `object`\n\nSpecify an object with any of the following properties:\n\n- `days`\n- `hours`\n- `minutes`\n- `seconds`\n- `milliseconds`\n- `microseconds`\n- `nanoseconds`\n\n## Related\n\n- [parse-ms](https://github.com/sindresorhus/parse-ms) - The inverse of this module\n- [pretty-ms](https://github.com/sindresorhus/pretty-ms) - Convert milliseconds to a human readable string\n","readmeFilename":"readme.md"}