{"_id":"@alnesjo/metis","_rev":"4-0941dd480f12995c8f4fc8e62ae490fe","time":{"1.0.0":"2019-12-26T10:15:00.752Z","created":"2019-12-26T10:48:59.219Z","2.0.0":"2019-12-26T10:48:59.348Z","modified":"2022-04-04T13:36:42.405Z"},"name":"@alnesjo/metis","dist-tags":{"latest":"2.0.0"},"versions":{"2.0.0":{"name":"@alnesjo/metis","version":"2.0.0","description":"Simple objects for managing units and magnitudes of measured quantities.","keywords":["measure","unit","prefix","convert","primitive","si"],"author":{"name":"Robert Alnesjö"},"license":"MIT","main":"dist/@alnesjo/metis.min.js","module":"lib/measure.js","repository":{"type":"git","url":"git+https://github.com/alnesjo/metis.git"},"dependencies":{},"devDependencies":{"@babel/register":"^7.7.7","chai":"^4.2.0","common-config-webpack-plugin":"^1.4.0","eslint":"^5.11.0","eslint-config-google":"^0.14.0","html-webpack-externals-plugin":"^3.8.0","html-webpack-plugin":"^3.2.0","mocha":"^5.2.0","prettier":"^1.19.1","webpack":"^4.28.2","webpack-cli":"^3.1.2","webpack-dev-server":"^3.1.14"},"babel":{"presets":["@babel/preset-env"]},"eslintConfig":{"env":{"browser":true,"es6":true},"extends":["eslint:recommended","google"],"parserOptions":{"ecmaVersion":2018,"sourceType":"module"},"rules":{"indent":["error",2],"require-jsdoc":["off"],"new-cap":["off"]}},"prettier":{"trailingComma":"all","singleQuote":true,"bracketSpacing":false,"arrowParens":"always"},"scripts":{"prepack":"webpack","pretest":"eslint --ignore-path .gitignore . && prettier --ignore-path .gitignore -c $(find .)","test":"mocha -r @babel/register","start":"webpack-dev-server -d"},"gitHead":"248789d2e004d5dc67f02ab534441d1c0c02ff4f","bugs":{"url":"https://github.com/alnesjo/metis/issues"},"homepage":"https://github.com/alnesjo/metis#readme","_id":"@alnesjo/metis@2.0.0","_nodeVersion":"12.6.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-Qurw1V1XChc0uyXwvIN+f8bC6mWJ7Jr0DZIBZun5Lsu7sKqfmQ4hMDoMehwtZnMxMk+AqRTZCWg3+XB91809TQ==","shasum":"ca94467422ebcb005617351aa2b12efce934b9ed","tarball":"https://registry.npmjs.org/@alnesjo/metis/-/metis-2.0.0.tgz","fileCount":4,"unpackedSize":14055,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeBJAbCRA9TVsSAnZWagAAsrQP/j7uzPxzbt0f6ODW0A0p\nR8jpSoPygaYofiPqo9niWEJdm5owUY25nfUUBgRfypOwjD++Z/FMcHARhWrV\n1oFPHZ8b6IMQ03l3lJfRW7WBDmL0fl3RLfq6Cvis231yN5xXDfNwGbg/nl2T\nIjwoAbht/Ehywd2/qCZZiyCB8HCq0wR6Lx6bBO0EaFxIzCXqUgljljcvgylI\nPqF4mW3Mw16UDxLZAh3k+YhFYoAVzIvjPSNqugyr8p+CFTQ+PU4vkWPhfauk\nohn8gD/SiJhGoecduI/N241oRV9049azDFRrKxspd+jb41Mp0/3MFHWTmw6u\nylPGx3xNhC9nvollqiyNBCS62Lb4yH18OYuc7xe1maUy15Q4G61BFyQmKQC8\ns2dRfHyk5Ay+ggRHbjCPUbr5Y76yL/XsAvevH83HFwZYdH52PbrkELeIpDUg\n7pkroGyCWj08ruK4z77Ds7NuZlRNz+a3V5yK6xVMqgVSxJjB4hohvhYdJQjp\ntfBU17X7oEtXV+vX5CS3Ud4eNpn2Mmhlqe0Hl1MnCACBGdhcVEgL5Fmu+4wy\nbh6cGDFnDUxWZ3MtdrTOK4C3fju1FUQN+3jVgSfZIk48VHClNel1ZSuKMJa+\nxiZbPeORYcBbs8PeLgVT2oXq3C/ing6QE1byz5CWiaHLWdFFFe3zuEmqd/jn\nXOeJ\r\n=HY9/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICeUhaIVDHbbSeMKNsX9Q3kcXK3FrHcO1liEkDhw/PYaAiEA98ZuQUgE/QMSK9G0xY39YeidX0QKWfOjRPjj6ib1BpQ="}]},"maintainers":[{"name":"alnesjo","email":"alnesjo@hotmail.com"}],"_npmUser":{"name":"alnesjo","email":"alnesjo@hotmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/metis_2.0.0_1577357339246_0.7939811947176709"},"_hasShrinkwrap":false}},"maintainers":[{"name":"alnesjo","email":"alnesjo@hotmail.com"}],"description":"Simple objects for managing units and magnitudes of measured quantities.","homepage":"https://github.com/alnesjo/metis#readme","keywords":["measure","unit","prefix","convert","primitive","si"],"repository":{"type":"git","url":"git+https://github.com/alnesjo/metis.git"},"author":{"name":"Robert Alnesjö"},"bugs":{"url":"https://github.com/alnesjo/metis/issues"},"license":"MIT","readme":"# metis\n\n```javascript\nimport {min, s, ms} from '@alnesjo/metis';\n\nlet duration = s(300);\nduration.s.toString(); // '300s'\n\nduration = min(duration.min + 1);\nduration.s.toString(); // '360s'\n\nduration = ms(duration.ms - 500);\nduration.s.toString(); // '359.5s'\n```\n","readmeFilename":"README.md"}