{"_id":"css-time","_rev":"28-1764c259be53086fadd4a704a827f5d1","name":"css-time","description":"A tiny library that converts milliseconds to and from CSS time.","dist-tags":{"latest":"0.1.12"},"versions":{"0.1.0":{"name":"css-time","version":"0.1.0","author":{"name":"Phil Booth","email":"pmbooth@gmail.com"},"description":"A tiny library that converts milliseconds to and from CSS time.","contributors":[{"name":"Phil Booth","email":"pmbooth@gmail.com"}],"main":"./src/css-time","repository":{"type":"git","url":"https://github.com/philbooth/css-time"},"keywords":["css","time","conversion","convert"],"devDependencies":{"jake":"0.5.x","jshint":"1.0.x","mocha":"1.8.x","chai":"1.5.x","uglify-js":"2.2.x"},"license":"MIT","scripts":{"test":"jake test"},"_id":"css-time@0.1.0","dist":{"shasum":"91e257fe1a2e1cecd4c6ec0718e608bab36b627d","tarball":"https://registry.npmjs.org/css-time/-/css-time-0.1.0.tgz","integrity":"sha512-Tnsil+k4WTowcbOqrndUZS/YWAonVmdeobZVKYsxg9UKtSBJj6HQi8HwvwogeEHp9K6CtTKZbbin6fWv+Wo8Mg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKbLs6O4pptQwctHeTMLul2QtKpBmkvflV+F+ZzvEe+QIhAMZ6j+GC/6iVgD8qQayyTx5RgPJQtvy1CI/tI0zdb8/8"}]},"_npmVersion":"1.1.65","_npmUser":{"name":"philbooth","email":"pmbooth@gmail.com"},"maintainers":[{"name":"philbooth","email":"pmbooth@gmail.com"}]},"0.1.1":{"name":"css-time","version":"0.1.1","author":{"name":"Phil Booth","email":"pmbooth@gmail.com"},"description":"A tiny library that converts milliseconds to and from CSS time.","contributors":[{"name":"Phil Booth","email":"pmbooth@gmail.com"}],"main":"./src/css-time","repository":{"type":"git","url":"https://github.com/philbooth/css-time.js"},"keywords":["css","time","conversion","convert"],"devDependencies":{"jake":"0.5.x","jshint":"1.0.x","mocha":"1.8.x","chai":"1.5.x","uglify-js":"2.2.x"},"license":"MIT","scripts":{"test":"jake test"},"_id":"css-time@0.1.1","dist":{"shasum":"84408a8e28748666298392f5fea93041ea1c1a35","tarball":"https://registry.npmjs.org/css-time/-/css-time-0.1.1.tgz","integrity":"sha512-UvghNKEOx1R393cc1e81vwFXAAMBtASnbs6LQBKsuzCR8HKc/fmIkcvKjl25yzVFc38zJ6v5zJ683bCOSQyy+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6VU5vL6SB/Ua7IoGbXJKRFKHoQPKx4jzT6xcYimyKoAIge369FgHw5mlSV4w3UgxgcKr44B6u7U/h2tKFCUfBYE0="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"philbooth","email":"pmbooth@gmail.com"},"maintainers":[{"name":"philbooth","email":"pmbooth@gmail.com"}]},"0.1.2":{"name":"css-time","version":"0.1.2","author":{"name":"Phil Booth","email":"pmbooth@gmail.com"},"description":"A tiny library that converts milliseconds to and from CSS time.","contributors":[{"name":"Phil Booth","email":"pmbooth@gmail.com"}],"main":"./src/css-time","repository":{"type":"git","url":"https://github.com/philbooth/css-time.js"},"keywords":["css","time","conversion","convert"],"devDependencies":{"jake":"0.5.x","jshint":"1.0.x","mocha":"1.8.x","chai":"1.5.x","uglify-js":"2.2.x"},"license":"MIT","scripts":{"test":"jake test"},"_id":"css-time@0.1.2","dist":{"shasum":"9f8eeff9054ce865d6490fbd5aad2dda0cfcb9aa","tarball":"https://registry.npmjs.org/css-time/-/css-time-0.1.2.tgz","integrity":"sha512-o9YCkmyp+bptC5ZCyfo8LzT08q0E8kKAvaSKXN4fIRkUB9O/ot3ZrrAkPFKFgc4/sOUYpTi1qSCRPzLp05OZ4A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH/I8zrT6q3cV8jDGTIvfVGovVSgUnrqxlwb14VRS5uQAiAaQFDfCM5Cv2ojMtdCN2nvt0jlrRQb7tzDYuzKaUxQkw=="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"philbooth","email":"pmbooth@gmail.com"},"maintainers":[{"name":"philbooth","email":"pmbooth@gmail.com"}]},"0.1.3":{"name":"css-time","version":"0.1.3","author":{"name":"Phil Booth","email":"pmbooth@gmail.com"},"description":"A tiny library that converts milliseconds to and from CSS time.","contributors":[{"name":"Phil Booth","email":"pmbooth@gmail.com"}],"main":"./src/css-time","repository":{"type":"git","url":"https://github.com/philbooth/css-time.js"},"keywords":["css","time","milliseconds","conversion","convert"],"devDependencies":{"jake":"0.5.x","jshint":"1.0.x","mocha":"1.8.x","chai":"1.5.x","uglify-js":"2.2.x"},"license":"MIT","scripts":{"test":"jake test"},"_id":"css-time@0.1.3","dist":{"shasum":"067c4f17d0a440a75e522417c7e10de16b17c7e3","tarball":"https://registry.npmjs.org/css-time/-/css-time-0.1.3.tgz","integrity":"sha512-gTtVV+YqXYFoqNmIT4nap3qjDWB7sQ2wb7I6lzhi1+1EWAx5s12AYPXM+Opc8LCmfE8QV2BtDKgzkZvNVfPFJw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDJain93+tTGoolNRXnL8/uR056ZCcdnFl63vSLxStWiAiEA9p9rIr5T7jkxBurXzcBNGMbnDDDe2wBfDpM+nUKobyE="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"philbooth","email":"pmbooth@gmail.com"},"maintainers":[{"name":"philbooth","email":"pmbooth@gmail.com"}]},"0.1.4":{"name":"css-time","version":"0.1.4","author":{"name":"Phil Booth","email":"pmbooth@gmail.com"},"description":"A tiny library that converts milliseconds to and from CSS time.","contributors":[{"name":"Phil Booth","email":"pmbooth@gmail.com"}],"main":"./src/css-time","repository":{"type":"git","url":"https://github.com/philbooth/css-time.js"},"keywords":["css","time","milliseconds","conversion","convert"],"devDependencies":{"jake":"0.5.x","jshint":"1.0.x","mocha":"1.8.x","chai":"1.5.x","uglify-js":"2.2.x"},"license":"MIT","scripts":{"test":"jake test"},"_id":"css-time@0.1.4","dist":{"shasum":"fd863af512f3af1dae34bd29db50f1ae361c1a7f","tarball":"https://registry.npmjs.org/css-time/-/css-time-0.1.4.tgz","integrity":"sha512-g0V/CkoVOCoLMnMKFooh6Fj+RygZDoxzXdeu0Qitdc8Jt84opzMc0KjVB3LmVX/DZfoVdgvuju8nIN/8c3LOTQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIATBJIqzIhtTMNsEOYrnxknIsAebhkzsrjxrwaiLNjHBAiEAxSuGoDnfUyghZjcXxxAlnu8Zlhl0pao0m8LhY8rm9j0="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"philbooth","email":"pmbooth@gmail.com"},"maintainers":[{"name":"philbooth","email":"pmbooth@gmail.com"}]},"0.1.5":{"name":"css-time","version":"0.1.5","author":{"name":"Phil Booth","email":"pmbooth@gmail.com"},"description":"A tiny library that converts milliseconds to and from CSS time.","contributors":[{"name":"Phil Booth","email":"pmbooth@gmail.com"}],"main":"./src/css-time","repository":{"type":"git","url":"https://github.com/philbooth/css-time.js"},"keywords":["css","time","milliseconds","conversion","convert"],"devDependencies":{"jake":"0.5.x","jshint":"1.0.x","mocha":"1.8.x","chai":"1.5.x","uglify-js":"2.2.x"},"license":"MIT","scripts":{"test":"jake test"},"_id":"css-time@0.1.5","dist":{"shasum":"cb319719fa2f571e283c2a55155811e6a1d05edf","tarball":"https://registry.npmjs.org/css-time/-/css-time-0.1.5.tgz","integrity":"sha512-V8RoEavvO/Nj66c+U1McrJYExZT6BAgIZOI8DuZt/iXBk47Sphh808S8HQDomh9SB283TSRxWWscAeQShIOJow==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB8TXVznUigHI2yWia93g71/0QiIjnmPXklHPC0pUVUSAiEAwe7fI//xG5usC5yRKNs5wLZyPLv3vm8bsnfu7mR7eQI="}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"philbooth","email":"pmbooth@gmail.com"},"maintainers":[{"name":"philbooth","email":"pmbooth@gmail.com"}]},"0.1.6":{"name":"css-time","version":"0.1.6","author":{"name":"Phil Booth","email":"pmbooth@gmail.com"},"description":"A tiny library that converts milliseconds to and from CSS time.","contributors":[{"name":"Phil Booth","email":"pmbooth@gmail.com"}],"main":"./src/css-time","repository":{"type":"git","url":"https://github.com/philbooth/css-time.js"},"keywords":["css","time","milliseconds","conversion","convert"],"devDependencies":{"jake":"0.5.x","jshint":"1.0.x","mocha":"1.8.x","chai":"1.5.x","uglify-js":"2.2.x"},"license":"MIT","scripts":{"test":"jake test"},"_id":"css-time@0.1.6","dist":{"shasum":"2974dd79b9b5f454c5d8cf8ffa44cb26f7977058","tarball":"https://registry.npmjs.org/css-time/-/css-time-0.1.6.tgz","integrity":"sha512-fZ0D/XmAJA5dPxM+MzxDrcGepLCoa3m1uNUjtX4TCRQA/Skm70FPEzLWjSDgslAgyBR0UPCvPOnWZ+WMWpLaBw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBt09JW2sp0qKycY3exND594iPHtAUYcZ8L7UBfe7IfqAiEAk+Exx4mC6pe1feYUmaArG605mxMU5Edt+HCnJ4qXSyU="}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"philbooth","email":"pmbooth@gmail.com"},"maintainers":[{"name":"philbooth","email":"pmbooth@gmail.com"}]},"0.1.7":{"name":"css-time","version":"0.1.7","author":{"name":"Phil Booth","email":"pmbooth@gmail.com"},"description":"A tiny library that converts milliseconds to and from CSS time.","contributors":[{"name":"Phil Booth","email":"pmbooth@gmail.com"}],"main":"./src/css-time","jam":{"main":"./src/css-time.js"},"repository":{"type":"git","url":"https://github.com/philbooth/css-time.js"},"keywords":["css","time","milliseconds","conversion","convert"],"devDependencies":{"jake":"0.5.x","jshint":"1.0.x","mocha":"1.8.x","chai":"1.5.x","uglify-js":"2.2.x"},"license":"MIT","scripts":{"test":"jake test"},"_id":"css-time@0.1.7","dist":{"shasum":"d200d4d8e99eb3e5423c64cda77ce84ff34f5fab","tarball":"https://registry.npmjs.org/css-time/-/css-time-0.1.7.tgz","integrity":"sha512-eshwBfLdIas1tHrfNCZClEXs5sDyrHAt98ckgfvknug/4ybnAWw/+cT7wK3MsmuPAlDHbc6tHlPS5zoDym13nA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAO7IBfXRW5bJNMiJVCYjZ2tjGxgfQNoyBK3xpsxPrvrAiEA8vol8I6+VfMWaf40yPwQXR2778rwMGmW4a5LzABtjLI="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"philbooth","email":"pmbooth@gmail.com"},"maintainers":[{"name":"philbooth","email":"pmbooth@gmail.com"}]},"0.1.8":{"name":"css-time","version":"0.1.8","author":{"name":"Phil Booth","email":"pmbooth@gmail.com"},"description":"A tiny library that converts milliseconds to and from CSS time.","contributors":[{"name":"Phil Booth","email":"pmbooth@gmail.com"}],"main":"./src/css-time","jam":{"main":"./src/css-time.js"},"repository":{"type":"git","url":"https://github.com/philbooth/css-time.js"},"keywords":["css","time","milliseconds","conversion","convert"],"devDependencies":{"jake":"0.5.x","jshint":"1.0.x","mocha":"1.8.x","chai":"1.5.x","uglify-js":"2.2.x"},"license":"MIT","scripts":{"test":"jake test"},"_id":"css-time@0.1.8","dist":{"shasum":"d90a916691102ad2f3d09637f97b2786fd2ab098","tarball":"https://registry.npmjs.org/css-time/-/css-time-0.1.8.tgz","integrity":"sha512-FEJRA3FapeU3iW7TqhHa8g5Bo6d5hPxph8iGWykgvPAJjtXsdpZpDwm68Orlub/Iqh/PIfPPjrwuJOICLes37Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEsTho4zWYTtnTMFZEiw7scS/NwmQPGfxsihXIvs2jHZAiEA7goo+vJu4gu7RgMxOnS8BfMDu2TvG/uJcvX9/4QxGR4="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"philbooth","email":"pmbooth@gmail.com"},"maintainers":[{"name":"philbooth","email":"pmbooth@gmail.com"}]},"0.1.9":{"name":"css-time","version":"0.1.9","description":"A tiny library that converts milliseconds to and from CSS time.","homepage":"https://github.com/philbooth/css-time.js","bugs":{"url":"https://github.com/philbooth/css-time.js/issues"},"license":"MIT","author":{"name":"Phil Booth","email":"pmbooth@gmail.com","url":"https://github.com/philbooth"},"main":"./src/css-time","jam":{"main":"./src/css-time.js"},"repository":{"type":"git","url":"https://github.com/philbooth/css-time.js.git"},"keywords":["css","time","milliseconds","conversion","convert"],"devDependencies":{"jshint":"2.3.x","mocha":"1.14.x","chai":"1.8.x","uglify-js":"2.4.x"},"scripts":{"lint":"./node_modules/.bin/jshint ./src/css-time.js --config config/jshint.json","test":"./node_modules/.bin/mocha --ui tdd --reporter spec --compilers coffee:coffee-script --colors ./test/css-time.js","minify":"./node_modules/.bin/uglifyjs ./src/css-time.js --compress --mangle --output ./src/css-time.min.js"},"contributors":[{"name":"Phil Booth","email":"pmbooth@gmail.com","url":"https://github.com/philbooth"}],"_id":"css-time@0.1.9","dist":{"shasum":"54567944acfbab8e3e7ed3bc50647a78b04c3bf9","tarball":"https://registry.npmjs.org/css-time/-/css-time-0.1.9.tgz","integrity":"sha512-M9KXdd10GRDE7sH1dqfs4eT+EACHzqSKQrgAQOOTr1SXWT5eHjX6qF/dHj43/SfyaANvuQSCVMX3x8jbrnNeaw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDR/eHWvcdKDFlEung/gJqHPagEF8fK7bD+wU+J/gWqjgIhAITy0mJGN6HE5470AjKDOd7J/2IS5ymdWW2e4OlOn8dt"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"philbooth","email":"pmbooth@gmail.com"},"maintainers":[{"name":"philbooth","email":"pmbooth@gmail.com"}]},"0.1.10":{"name":"css-time","version":"0.1.10","description":"A tiny library that converts milliseconds to and from CSS time.","homepage":"https://github.com/philbooth/css-time.js","bugs":{"url":"https://github.com/philbooth/css-time.js/issues"},"license":"MIT","author":{"name":"Phil Booth","email":"pmbooth@gmail.com","url":"https://github.com/philbooth"},"main":"./src/css-time","jam":{"main":"./src/css-time.js"},"repository":{"type":"git","url":"https://github.com/philbooth/css-time.js.git"},"keywords":["css","time","milliseconds","conversion","convert"],"devDependencies":{"jshint":"2.3.x","mocha":"1.14.x","chai":"1.8.x","uglify-js":"2.4.x"},"scripts":{"lint":"./node_modules/.bin/jshint ./src/css-time.js --config config/jshint.json","test":"./node_modules/.bin/mocha --ui tdd --reporter spec --compilers coffee:coffee-script --colors ./test/css-time.js","minify":"./node_modules/.bin/uglifyjs ./src/css-time.js --compress --mangle --output ./src/css-time.min.js"},"contributors":[{"name":"Phil Booth","email":"pmbooth@gmail.com","url":"https://github.com/philbooth"}],"_id":"css-time@0.1.10","dist":{"shasum":"93238097f6711491fd70095ff30ea298d0bc64e8","tarball":"https://registry.npmjs.org/css-time/-/css-time-0.1.10.tgz","integrity":"sha512-WOhL0kExPeVFlJbENwItT2ii+HFkoCBn/U7OOu4xbXcJUyZw46nA5eaqPsDF2RXcvVawZ9JA5WbL24k4Ckd1gw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDky/E//6JO1Chw8AIgmdSBnGYuKqTiflw3QeQFkZLnXgIgeICvS12glqzoPbMRVtY3H/KkayLBnQdYmUodB56rDng="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"philbooth","email":"pmbooth@gmail.com"},"maintainers":[{"name":"philbooth","email":"pmbooth@gmail.com"}]},"0.1.11":{"name":"css-time","version":"0.1.11","description":"A tiny library that converts milliseconds to and from CSS time.","homepage":"https://github.com/philbooth/css-time.js","bugs":{"url":"https://github.com/philbooth/css-time.js/issues"},"license":"MIT","author":{"name":"Phil Booth","email":"pmbooth@gmail.com","url":"https://github.com/philbooth"},"main":"./src/css-time","jam":{"main":"./src/css-time.js"},"repository":{"type":"git","url":"https://github.com/philbooth/css-time.js.git"},"keywords":["css","time","milliseconds","conversion","convert"],"devDependencies":{"jshint":"2.3.x","mocha":"1.14.x","chai":"1.8.x","uglify-js":"2.4.x"},"scripts":{"lint":"./node_modules/.bin/jshint ./src/css-time.js --config config/jshint.json","test":"./node_modules/.bin/mocha --ui tdd --reporter spec --colors ./test/css-time.js","minify":"./node_modules/.bin/uglifyjs ./src/css-time.js --compress --mangle --output ./src/css-time.min.js"},"contributors":[{"name":"Phil Booth","email":"pmbooth@gmail.com","url":"https://github.com/philbooth"}],"_id":"css-time@0.1.11","dist":{"shasum":"4f44262077e5b1afaf6b720bb4a4e87b7ecc7508","tarball":"https://registry.npmjs.org/css-time/-/css-time-0.1.11.tgz","integrity":"sha512-JNqokM3n3q5AGe9b6ULg+ZRtSgs4gvNDfEN45Ic9fMVoXIMgcI0WynXPdyv5h566vrMpfOhESkSMQtRXilUosw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCB/CrW/i7tFh0r6OwZMMwfbW4RaGBBe2qgwc3nl3fkKQIgSp7q3Lhj+Gxfv67Dpm1dymVEMZ3kWLUco4C9QcDVYlg="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"philbooth","email":"pmbooth@gmail.com"},"maintainers":[{"name":"philbooth","email":"pmbooth@gmail.com"}]},"0.1.12":{"name":"css-time","version":"0.1.12","description":"A tiny library that converts milliseconds to and from CSS time.","homepage":"https://github.com/philbooth/css-time.js","bugs":{"url":"https://github.com/philbooth/css-time.js/issues"},"license":"MIT","author":{"name":"Phil Booth","email":"pmbooth@gmail.com","url":"https://github.com/philbooth"},"main":"./src/css-time","jam":{"main":"./src/css-time.js"},"repository":{"type":"git","url":"https://github.com/philbooth/css-time.js.git"},"keywords":["css","time","milliseconds","conversion","convert"],"devDependencies":{"jshint":"~2.7","mocha":"~2.2","chai":"~2.3","uglify-js":"~2.4"},"scripts":{"lint":"jshint src/css-time.js","test":"mocha --ui tdd --reporter spec --colors test/css-time.js","minify":"uglifyjs src/css-time.js --compress --mangle --output src/css-time.min.js"},"contributors":[{"name":"Phil Booth","email":"pmbooth@gmail.com","url":"https://github.com/philbooth"}],"gitHead":"93ea5a7b7416b67931b357c112d2fe58fc7b4340","_id":"css-time@0.1.12","_shasum":"2847bcca3d5829f6c212c3c1e79906c909d72502","_from":".","_npmVersion":"2.8.3","_nodeVersion":"1.8.1","_npmUser":{"name":"philbooth","email":"pmbooth@gmail.com"},"maintainers":[{"name":"philbooth","email":"pmbooth@gmail.com"}],"dist":{"shasum":"2847bcca3d5829f6c212c3c1e79906c909d72502","tarball":"https://registry.npmjs.org/css-time/-/css-time-0.1.12.tgz","integrity":"sha512-ewj78vUI+TkoMlTe6JTgUJPF0VNewp/v1LaBK4eR1IH3LAo77iIECgvRRodMFBYxz/7/zSYu9CZ/qnT8jcWMjQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA8fdpTsfNzvz8ZXsHPW3EBCBYaNBLe5wTIENWzZAzbqAiB82jQeyT3a2exBJ4mTaCk2slmdsZLABwWPNd9Dbh9a/g=="}]}}},"readme":"# css-time.js\n\n[![Build status][ci-image]][ci-status]\n\nA tiny JavaScript library\nthat converts milliseconds\nto and from [CSS time][csstime].\n\n* [Why would I want that?](#why-would-i-want-that)\n* [How tiny is it?](#how-tiny-is-it)\n* [How do I install it?](#how-do-i-install-it)\n* [How do I use it?](#how-do-i-use-it)\n  * [Loading the library](#loading-the-library)\n  * [Calling the exported functions](#calling-the-exported-functions)\n    * [from (string)](#from-string)\n\t* [to (number)](#to-number)\n* [Where can I use it?](#where-can-i-use-it)\n* [How do I set up the build environment?](#how-do-i-set-up-the-build-environment)\n* [What license is it released under?](#what-license-is-it-released-under)\n\n## Why would I want that?\n\nConverting to and from CSS time\nis really not difficult.\nBut this library\nsaves you the bother\nof making sure\nyou get it right\nand is well-supported\nby unit tests.\nIt's one less thing\nto worry about,\nright? `:)`\n\n## How tiny is it?\n\n1.4 kb unminified with comments, 0.5 kb minified, 0.3 kb minified + gzipped\n\n## How do I install it?\n\nIf you're using npm:\n\n```\nnpm install css-time --save\n```\n\nOr if you just want the git repo:\n\n```\ngit clone git@github.com:philbooth/css-time.js.git\n```\n\nIf you're into\nother package managers,\nit is also available\nfrom Bower, Component and Jam.\n\n## How do I use it?\n\n### Loading the library\n\nIf you are running in\nNode.js,\nBrowserify\nor another CommonJS-style\nenvironment,\nyou can `require`\ncheck-types like so:\n\n```javascript\nvar check = require('css-time');\n```\n\nIt also the supports\nthe AMD-style format\npreferred by Require.js.\n\nIf you are\nincluding css-time.js\nwith an HTML `<script>` tag,\nor neither of the above environments\nare detected,\nit will export the interface globally as `cssTime`.\n\n### Calling the exported functions\n\nTwo functions are exported, `from` and `to`.\n\n#### from (string)\n\nReturns the number of milliseconds\nrepresented by a CSS time string.\nIf the argument\ncan't be parsed\nas a CSS time,\nan error is thrown.\n\n```js\ncssTime.from('500ms'); // returns 500\ncssTime.from('-1.5s'); // returns -1500\n```\n\n#### to (number)\n\nReturns a CSS time string\nrepresenting the number of milliseconds\npassed in the argument.\nIf the argument\nis not a number,\nan error is thrown.\n\n```js\ncssTime.to(500); // returns '500ms'\ncssTime.to(-0.5); // returns '-0.5ms'\n```\n\n## Where can I use it?\n\nThe code\nis all written in\nES3 syntax,\nso works in any browser.\n\n## How do I set up the build environment?\n\n### Dependencies\n\nThe build environment relies on\n[Node.js][node],\n[NPM],\n[JSHint],\n[Mocha],\n[Chai] and\n[UglifyJS].\nAssuming that you already have Node.js and NPM set up,\nyou just need to run `npm install` to\ninstall all of the dependencies as listed in `package.json`.\n\nThe unit tests are in `test/css-time.js`.\nYou can run them with the command `npm test`.\nTo run the tests in a browser,\nopen `test/css-time.html`.\n\n## What license is it released under?\n\n[MIT][license]\n\n[ci-image]: https://secure.travis-ci.org/philbooth/css-time.js.png\n[ci-status]: http://travis-ci.org/#!/philbooth/css-time.js\n[csstime]: http://www.w3.org/TR/css3-values/#time\n[node]: http://nodejs.org/\n[npm]: https://npmjs.org/\n[jshint]: https://github.com/jshint/node-jshint\n[mocha]: http://mochajs.org/\n[chai]: http://chaijs.com/\n[uglifyjs]: https://github.com/mishoo/UglifyJS\n[license]: https://github.com/philbooth/css-time.js/blob/master/COPYING\n\n","maintainers":[{"name":"philbooth","email":"pmbooth@gmail.com"}],"time":{"modified":"2022-06-14T04:53:15.004Z","created":"2013-02-23T18:47:32.562Z","0.1.0":"2013-02-23T18:49:12.934Z","0.1.1":"2013-02-23T22:53:09.355Z","0.1.2":"2013-02-23T23:43:49.074Z","0.1.3":"2013-02-25T21:24:54.484Z","0.1.4":"2013-02-25T21:32:17.598Z","0.1.5":"2013-04-01T19:18:42.071Z","0.1.6":"2013-04-01T19:35:26.406Z","0.1.7":"2013-05-02T10:12:07.716Z","0.1.8":"2013-05-28T19:54:42.635Z","0.1.9":"2013-12-01T22:44:16.709Z","0.1.10":"2013-12-01T22:46:04.406Z","0.1.11":"2013-12-01T22:54:33.342Z","0.1.12":"2015-05-25T16:51:58.649Z"},"author":{"name":"Phil Booth","email":"pmbooth@gmail.com","url":"https://github.com/philbooth"},"repository":{"type":"git","url":"https://github.com/philbooth/css-time.js.git"},"homepage":"https://github.com/philbooth/css-time.js","keywords":["css","time","milliseconds","conversion","convert"],"contributors":[{"name":"Phil Booth","email":"pmbooth@gmail.com","url":"https://github.com/philbooth"}],"bugs":{"url":"https://github.com/philbooth/css-time.js/issues"},"license":"MIT","readmeFilename":"README.md"}