{"_id":"ucum","_rev":"7-40180601056a10c33d7d10b546dab03f","name":"ucum","description":"JavaScript implementation of unitsofmeasure.org (UCUM)","dist-tags":{"latest":"0.0.7"},"versions":{"0.0.3":{"name":"ucum","version":"0.0.3","description":"JavaScript implementation of unitsofmeasure.org (UCUM)","main":"ucum.js","dependencies":{},"devDependencies":{"mocha":"*","should":"*","browserify":"*","optimist":"~0.6.1","xml2js":"~0.4.4","pegjs":"~0.8.0"},"scripts":{"test":"mocha -c -R spec"},"author":{"name":"Josh Mandel"},"license":"Apache 2","repository":{"type":"git","url":"git+ssh://git@github.com/Ventrom/ucum.js.git"},"gitHead":"0651eb43d1c04c9f2113be96a5bd18b061aef23d","bugs":{"url":"https://github.com/Ventrom/ucum.js/issues"},"homepage":"https://github.com/Ventrom/ucum.js#readme","_id":"ucum@0.0.3","_shasum":"14878b0db56d1fc041beff65e1ba866fd227bca9","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.1","_npmUser":{"name":"ventrom","email":"david.ciarletta@ventrom.com"},"dist":{"shasum":"14878b0db56d1fc041beff65e1ba866fd227bca9","tarball":"https://registry.npmjs.org/ucum/-/ucum-0.0.3.tgz","integrity":"sha512-9L2bb79HfGfDmamdnw+NDUaHkfy092jfuaiLqg+F55LJvPm+HcgvH0sJRvJ6V8Lbiccjssjwx+kVGDoHKbwUIA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBCarDnpgYxZ6Q0HWmXLFN9wazJ0mYBGtrUpav8ku9uDAiEAjqkboze/3Dd//f+/wPvIsTESwShgeg2hmHcGJec4aXY="}]},"maintainers":[{"name":"ventrom","email":"david.ciarletta@ventrom.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ucum-0.0.3.tgz_1467160210460_0.37662603659555316"}},"0.0.4":{"name":"ucum","version":"0.0.4","description":"JavaScript implementation of unitsofmeasure.org (UCUM)","main":"ucum.js","dependencies":{},"devDependencies":{"mocha":"*","should":"*","browserify":"*","optimist":"~0.6.1","xml2js":"~0.4.4","pegjs":"~0.8.0"},"scripts":{"test":"mocha -c -R spec"},"author":{"name":"Josh Mandel"},"license":"Apache 2","repository":{"type":"git","url":"git+ssh://git@github.com/jmandel/ucum.js.git"},"gitHead":"e2b142f2742c91b6bda186d653eb5db1d9336f5f","bugs":{"url":"https://github.com/jmandel/ucum.js/issues"},"homepage":"https://github.com/jmandel/ucum.js#readme","_id":"ucum@0.0.4","_shasum":"e13f59c913ec2c01382a658c4a2e946e3b1314bc","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.1","_npmUser":{"name":"ventrom","email":"david.ciarletta@ventrom.com"},"dist":{"shasum":"e13f59c913ec2c01382a658c4a2e946e3b1314bc","tarball":"https://registry.npmjs.org/ucum/-/ucum-0.0.4.tgz","integrity":"sha512-Ri0bQCXecVWnlXIcBlcOItP9ALsWzsBQxF2q0YrHJGa7aIqzdKe4AYuk3ZEXBNS3oXfmHJdeWGXGP0kM5gp9Ag==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBmIAFjSziOx7uY/pwDuqxLyYWUhg08LJ2bl1AWrEdLAIhAKJwc47BEyN1JxoUBGl+Q0I9QyscaegFCj7MJ8w5vaHW"}]},"maintainers":[{"name":"ventrom","email":"david.ciarletta@ventrom.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ucum-0.0.4.tgz_1470655667145_0.5487551640253514"}},"0.0.5":{"name":"ucum","version":"0.0.5","description":"JavaScript implementation of unitsofmeasure.org (UCUM)","main":"ucum.js","dependencies":{},"devDependencies":{"mocha":"*","should":"*","browserify":"*","optimist":"~0.6.1","xml2js":"~0.4.4","pegjs":"~0.8.0"},"scripts":{"test":"mocha -c -R spec"},"author":{"name":"Josh Mandel"},"license":"Apache 2","repository":{"type":"git","url":"git+ssh://git@github.com/jmandel/ucum.js.git"},"gitHead":"086518337465c742e62e84777ca7da96a0ee866f","bugs":{"url":"https://github.com/jmandel/ucum.js/issues"},"homepage":"https://github.com/jmandel/ucum.js#readme","_id":"ucum@0.0.5","_shasum":"294b9002e70243279f7c16dc31efd5e10e13a2c1","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.1","_npmUser":{"name":"ventrom","email":"david.ciarletta@ventrom.com"},"dist":{"shasum":"294b9002e70243279f7c16dc31efd5e10e13a2c1","tarball":"https://registry.npmjs.org/ucum/-/ucum-0.0.5.tgz","integrity":"sha512-ucRDsJZ+A/tw0aErlC9d4wBZ/nRmaFfN920q0qomLdaokUNt1OK0F+ip6u7EoAJ9SsSKSmEDTM9IlWbxiur/ng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDYa3hclO1R96j5uU8ZqYgEm2+21qgoR7Yt2ikzJHQnUAiArY7D/70PtSGGbvzAh5r6fDb/o5GIUzLUUOuIisEGBHg=="}]},"maintainers":[{"name":"ventrom","email":"david.ciarletta@ventrom.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/ucum-0.0.5.tgz_1472171479765_0.6547499515581876"}},"0.0.6":{"name":"ucum","version":"0.0.6","description":"JavaScript implementation of unitsofmeasure.org (UCUM)","main":"ucum.js","dependencies":{},"devDependencies":{"mocha":"*","should":"*","browserify":"*","optimist":"~0.6.1","xml2js":"~0.4.4","pegjs":"~0.8.0"},"scripts":{"test":"mocha -c -R spec"},"author":{"name":"Josh Mandel"},"license":"Apache 2","repository":{"type":"git","url":"git+ssh://git@github.com/jmandel/ucum.js.git"},"gitHead":"a71a6fcf1c3703109f08fa1637ba28a62935c9ef","bugs":{"url":"https://github.com/jmandel/ucum.js/issues"},"homepage":"https://github.com/jmandel/ucum.js#readme","_id":"ucum@0.0.6","_shasum":"bb415cb593fe7505d56024344dc7a192e5afa02d","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.1","_npmUser":{"name":"ventrom","email":"david.ciarletta@ventrom.com"},"dist":{"shasum":"bb415cb593fe7505d56024344dc7a192e5afa02d","tarball":"https://registry.npmjs.org/ucum/-/ucum-0.0.6.tgz","integrity":"sha512-Lrjc1Y+kCwCwUbgpB5Pv7OGlI9fWdfnsyaf/QxD23RAYbRNb2jhdfrIUnRHyZEOgTptwCia0bp2Gw20rKBF4Pg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDeUxMytaBsuiNp1aH52IKOap0D0v/rxJsAG99LD6jWQAIhAN8e0OolHD0dztA6bG+znFLhh/mGiQ9RoEkq7WYFdy0u"}]},"maintainers":[{"name":"ventrom","email":"david.ciarletta@ventrom.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ucum-0.0.6.tgz_1472229470796_0.8787347881589085"}},"0.0.7":{"name":"ucum","version":"0.0.7","description":"JavaScript implementation of unitsofmeasure.org (UCUM)","main":"ucum.js","dependencies":{},"devDependencies":{"mocha":"*","should":"*","browserify":"*","optimist":"~0.6.1","xml2js":"~0.4.4","pegjs":"~0.8.0"},"scripts":{"test":"mocha -c -R spec"},"author":{"name":"Josh Mandel"},"license":"Apache 2","repository":{"type":"git","url":"git+ssh://git@github.com/jmandel/ucum.js.git"},"gitHead":"3fcb9e0d89f15b70bdf11387027f5e7a6d38be5b","bugs":{"url":"https://github.com/jmandel/ucum.js/issues"},"homepage":"https://github.com/jmandel/ucum.js#readme","_id":"ucum@0.0.7","_shasum":"cd07efe5599a17ef7fb327778bf838e832dfd1a4","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.1","_npmUser":{"name":"ventrom","email":"david.ciarletta@ventrom.com"},"dist":{"shasum":"cd07efe5599a17ef7fb327778bf838e832dfd1a4","tarball":"https://registry.npmjs.org/ucum/-/ucum-0.0.7.tgz","integrity":"sha512-mrgBtmN7FQjBOtKpst+ik7NNxM0iNWW028GvQmoC4z4bBsr5U9Nk5L/pUBs7KNee8z8cYMtED3TGpg5KRms0KA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAFLGhdxahrD7euBPSxuLju4n6OiV3Sg3Mmg23b+CosRAiEA0QOZsiNFMhFZwuBYxQztlHn+fW4/fAp6mfgO3gsPw5I="}]},"maintainers":[{"name":"ventrom","email":"david.ciarletta@ventrom.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ucum-0.0.7.tgz_1472444038023_0.9586786804720759"}}},"readme":"# ucum.js\nJavaScript implementation of UCUM (http://unitsofmeasure.org)\n\n## Units conversion\n\n```\nvar one_inch = ucum.convert(2.54, 'cm', '[in_i]');\nconsole.log(one_inch)\n\n1\n```\n\n## Units parsing\n\n```\nvar parsed = ucum.parse('km/h');\nconsole.log(parsed);\n\n{ value: 1000, units: { m: 1, h: -1 } }\n```\n\n## Units canonicalization\n\n```\nvar canonical = ucum.canonicalize('[in_i]/a');\nconsole.log(canonical);\n\n{ value: 8.048774304763354e-10, units: { m: 1, s: -1 } } \n```\n\n\n### To use in browser\n\nSave and include a `<script>` tag for [dist/ucum.js](dist/ucum.js)\n\n### To use in Node.js\n\n```\nnpm install ucum.js\n```\n\n### To build\n\n```\n$ git clone https://github.com/jmandel/ucum.js\n$ cd ucum.js\n$ npm install\n$ make\n```\n\n","maintainers":[{"name":"ventrom","email":"david.ciarletta@ventrom.com"}],"time":{"modified":"2022-06-28T02:52:22.408Z","created":"2016-06-29T00:30:13.357Z","0.0.3":"2016-06-29T00:30:13.357Z","0.0.4":"2016-08-08T11:27:49.116Z","0.0.5":"2016-08-26T00:31:20.414Z","0.0.6":"2016-08-26T16:37:53.043Z","0.0.7":"2016-08-29T04:14:00.097Z"},"homepage":"https://github.com/jmandel/ucum.js#readme","repository":{"type":"git","url":"git+ssh://git@github.com/jmandel/ucum.js.git"},"author":{"name":"Josh Mandel"},"bugs":{"url":"https://github.com/jmandel/ucum.js/issues"},"license":"Apache 2","readmeFilename":"README.md"}