{"_id":"@44north/unitconverter","_rev":"4-1fbffc353945f66c4fc145ff3e4d2da1","name":"@44north/unitconverter","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0":{"name":"@44north/unitconverter","version":"1.0.0","description":"The UnitConverter","main":"./dist/module.js","types":"./dist/module.d.ts","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/fortyfournorth/modules.git"},"homepage":"https://github.com/fortyfournorth/modules","bugs":{"url":"https://github.com/fortyfournorth/modules/issues"},"license":"MIT","scripts":{"build":"yarn clean && yarn compile","compile":"tsc -p tsconfig.build.json","clean":"rm -rf ./dist ./coverage","lint":"tslint src/*.ts","test":"jest --coverage","watch":"jest --watch","dev":"jest --watch"},"devDependencies":{"@types/jest":"^24.0.23","jest":"^24.9.0","prettier":"^1.19.1","ts-jest":"^24.2.0","tslint":"^5.20.1","typescript":"^3.7.2"},"gitHead":"20e13941fd1dfbfde9a4994703c4ed2989b065b1","_id":"@44north/unitconverter@1.0.0","_nodeVersion":"14.15.1","_npmVersion":"lerna/3.22.1/node@v14.15.1+x64 (darwin)","_npmUser":{"name":"cvachon44n","email":"cvachon@fortyfournorth.ca"},"dist":{"integrity":"sha512-bah/mJ4UBA4LqfWIQj4q89+ZAB+zlLT3IkweC8tfNgmkZNN/ZzSiTbLmKhZoeEqy95PZ5i5h4vwt9SkoNlUmNQ==","shasum":"3d397f799bb9614e09e13f74ceda15a9236adbae","tarball":"https://registry.npmjs.org/@44north/unitconverter/-/unitconverter-1.0.0.tgz","fileCount":39,"unpackedSize":93979,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhuhjtCRA9TVsSAnZWagAA5AMP/jl1x4t4T5hgfUHVQ+T8\nsyyRjZXedGW8Gg0khDAcgPfdOGsqI4vpiMSDsEtrmJnlgwuLxB8JmBTjm7KQ\n8ydj/3Z5pRAREyTT3Ht+s2lLLzQq7vvIp1/5qu/2BmUwwVhRP3B+qO+KCz+r\naXlWkp04B/dxxpWXCRSzZdLIUwK9Vl+6CUa+deb1LBsrD0RYr4Be1smsXTtS\n0QFlFXywWEkUqQl0uewmvrV47wJh3uppWjuqY6UrqMEZaIgfYW6MQhGEVrVb\nLzO6wZPPQUm63qtcSizWA4V5zyAGzus4g7i1zgjzlfC8rsWs+c3NEZFwPUkJ\nfPqL/bIkxy2q2f27CRHGa+aqrOyatE2If4Sk26GAXjYUVDMXpmbourqaDRYy\nd+897sJSbN8Abv1Hb6qbJ3tzQYQ2iFJK26Ay2cMJjg9l36Sd6MM6uK46QrQD\nHvN2g0EORBVx76LIkLGm3p8HGIVr41kRrysepHaKYbk2gMjNdHpqa2x47DYV\nZ5SDw9EIqahH9PRWrfe/SK9pPL5oSDTrCypdsvTPsyUEPera3kD5Ozbc6QnZ\nYUjNvG7h3llaJ6470GROpUYmdNzMlyKNhw3N4QqKYORJgErBwDWLAseXlTxw\ncKCDM6VZHw9wDz0ZUoqlHy9z6SJXvUxm7Jx9eRGQIHrzF38VbxuyUp5gjjRv\n8NDj\r\n=Suc8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTZ8vZxpPAcCAYt25En5Ml4CwNVrTG6Q8+YzoXMZ+3AgIhAJoYkECFjCFJuXcqx80n3kmPGt4U+5XHfnCN68ngpABS"}]},"directories":{},"maintainers":[{"name":"cvachon44n","email":"cvachon@fortyfournorth.ca"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unitconverter_1.0.0_1632510306044_0.3584817044412978"},"_hasShrinkwrap":false},"1.1.0":{"name":"@44north/unitconverter","version":"1.1.0","description":"The UnitConverter","main":"./dist/module.js","types":"./dist/module.d.ts","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/fortyfournorth/modules.git"},"homepage":"https://github.com/fortyfournorth/modules","bugs":{"url":"https://github.com/fortyfournorth/modules/issues"},"license":"MIT","scripts":{"build":"yarn clean && yarn compile","compile":"tsc -p tsconfig.build.json","clean":"rm -rf ./dist ./coverage","lint":"tslint src/*.ts","test":"jest --coverage","watch":"jest --watch","dev":"jest --watch"},"devDependencies":{"@types/jest":"^24.0.23","jest":"^24.9.0","prettier":"^1.19.1","ts-jest":"^24.2.0","tslint":"^5.20.1","typescript":"^3.7.2"},"gitHead":"412ff3266e7ac688c451285dca73bf091fd73e0e","_id":"@44north/unitconverter@1.1.0","_nodeVersion":"16.13.0","_npmVersion":"lerna/3.22.1/node@v16.13.0+arm64 (darwin)","dist":{"integrity":"sha512-E+tQxBjmW3KTqTA4z2V3JE82oecXChH3NVJwjiP75xIwIQQc7JNY/KdAma8TpOEw6u78tWJ6RuK6Jy8XLWdFHQ==","shasum":"b9a0390bba0e482f0884d94bb19ed438ede2ed6f","tarball":"https://registry.npmjs.org/@44north/unitconverter/-/unitconverter-1.1.0.tgz","fileCount":39,"unpackedSize":96273,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPsSzZ6Nm1eH/HzdxE1dIe1CZKM+XsPgHR/6VBhIX52QIhAL08q1WjqpdS6lvaiwnnp8oV+UwwBUYey7BtUAEqhnEW"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkDycfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrjyQ/9FVhVmvhRPasdpcmdUJ+GtxaAP/9Z7fSogZ2rE7K9e0KvJPqy\r\n6ijZQluUajYD3CiAQLPkQJsoyM1NXO5tE+BftpfDdqzuC73v25MUPlfhaDYV\r\np2msdOKCTx3yREbar1CGLxr4Ng4zlxUF87h3luWj5VIntWVCs1Yf7/fxyu4p\r\nKkuwH33VcyVB6jgaol6n1c2KULZpYQ4qz1tYyS3HDsr1lOyhpihqvcpeqP+a\r\n3mzTWPxHCIMx4Xm4KAqZMjWEa4mmA3HGhEALUUCHc+ExNzUP8uzwS3OlczAY\r\nNWQtNHpzrGdJzMP587fM8AwllbUgT6tD/3oE1cfj6NsC55Pf8dct34gjdgN/\r\ng0dJXOpVNze6fzVB0BmtohRfgtiWywowtCWZXyvi+6y531Geqp+KnuP3yqAx\r\nCnrX23jnLpm1oQdEPlwFKbuaSlFbo1a9gCckE//m5TeR1ItLHIERU9DRmOHY\r\nbjcYLCwYtivFlNQ5yjOzspZFdLvZPuXOqFhC1VY1AhQdzUNKxPl6vgF9jmYB\r\niyI7+QClZyz6IaodhcEZEmJ826SVfNEnEGxyUy6koY7LsFm+SuciXoHMoBzY\r\nIQYtr7BuR90x2L1UvKv+TQOG3MmTjcu9q2Gb04YiXRz5Qs5Dn9/kbyVeHPlp\r\nFafKBqwW6kCnV/A6qwkKHRO/MIF5LjNKeNo=\r\n=a62V\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"cvachon44n","email":"cvachon@fortyfournorth.ca"},"directories":{},"maintainers":[{"name":"cvachon44n","email":"cvachon@fortyfournorth.ca"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unitconverter_1.1.0_1678714654934_0.13043845851881763"},"_hasShrinkwrap":false},"1.2.0":{"name":"@44north/unitconverter","version":"1.2.0","description":"The UnitConverter","main":"./dist/module.js","types":"./dist/module.d.ts","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/fortyfournorth/modules.git"},"homepage":"https://github.com/fortyfournorth/modules","bugs":{"url":"https://github.com/fortyfournorth/modules/issues"},"license":"MIT","scripts":{"build":"yarn clean && yarn compile","compile":"tsc -p tsconfig.build.json","clean":"rm -rf ./dist ./coverage","lint":"tslint src/*.ts","test":"jest --coverage","watch":"jest --watch","dev":"jest --watch","readMe:text":"ts-node readMeContent.ts"},"devDependencies":{"@types/jest":"^24.0.23","jest":"^24.9.0","prettier":"^1.19.1","ts-jest":"^24.2.0","ts-node":"^10.9.1","tslint":"^5.20.1","typescript":"^3.7.2"},"gitHead":"90aa2271cafce4a4b53a7700b3141593c9557ad3","_id":"@44north/unitconverter@1.2.0","_nodeVersion":"16.13.0","_npmVersion":"lerna/3.22.1/node@v16.13.0+arm64 (darwin)","dist":{"integrity":"sha512-TsHzwwP8cV/LDRU2DOwuj4MAQpCsJGq82ozPJ8ZDzH4PCRopMXAE5gzAwHsSifUhbiiqc2xX7CkUzh8bSNtkhg==","shasum":"48ef8ef3a46375f7a2a960801a313371c7dbbd91","tarball":"https://registry.npmjs.org/@44north/unitconverter/-/unitconverter-1.2.0.tgz","fileCount":35,"unpackedSize":97035,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBNPas/j2ZsWHMJugNJYxkxXZOb01jlOL/oj/lqaTMdJAiAC4WptIjl3i93K6hjc3veNec5y0jvPAK1IrQf9bx8e3g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGh1UACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqH0A//VtBmKM5yZf/pjauzg+Q5Gj9QHhatENvHOvp7wajHCFYTOWIf\r\n5Xs8dLHTQhOCY/pEbvbk9Bfj0gkH/qxpdOrf736XKufVBpk0y1PuuJWuQMVR\r\njLLfw2ZsfJYCZz/dcQ7m81tdWhp5qT2tCeMKVXLLN9j7qVu7HndocDKVF/fk\r\ng3HI20U9qsjZP/H+lzb1/y3fSsNTb9B3i2CG/dfniWvm2D4GhFR+/CnH6+0Q\r\ndRKmzf+0zLqjIjUriACDWc3K+xwcVXZyQ14Wbkj9loLiTPvbtnl/xbvS6vy2\r\nMLO75fwC7l915VzMuM2U/NORz0qOt3eeBZUIety3BXhLBHjxoPlaNa6WLihI\r\nj8eiTXZlz1zEfHwyicgUjKRQPGQ7KCwV1Q2Mibo4O4+DoouA6q+SIGYrJ86N\r\nlGrtL6XxgeSGVN9oq3XY/J0V7KmKkVvjipLMtvcpSmqXouDjFeo53OojxzeG\r\ne2wsWjGi5pN28V7rzJG5safFWuqcpPrh0MYSxxQsu/Q21Rm7MN0gpXaTGTGs\r\nRlFShvZ/JSYfy8jz7ld0Ie1v39RM/P0SvalCmLC9nC3mN2N6m2faoTyoaxeH\r\nQ2o7dtU/NBW93DRxZTd33ocL/n953NUBmW3swqyo6X7LhhKnKZJmmZ9tDUdJ\r\nqdQXCPF0HvTHhlLtSyW/xdo0KJjC1wg6jE8=\r\n=4Kgz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"cvachon44n","email":"cvachon@fortyfournorth.ca"},"directories":{},"maintainers":[{"name":"cvachon44n","email":"cvachon@fortyfournorth.ca"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unitconverter_1.2.0_1679433044590_0.7854804705369678"},"_hasShrinkwrap":false}},"time":{"created":"2021-09-24T19:05:05.986Z","1.0.0":"2021-09-24T19:05:06.206Z","modified":"2023-03-21T21:10:44.905Z","1.1.0":"2023-03-13T13:37:35.126Z","1.2.0":"2023-03-21T21:10:44.764Z"},"maintainers":[{"name":"cvachon44n","email":"cvachon@fortyfournorth.ca"}],"description":"The UnitConverter","homepage":"https://github.com/fortyfournorth/modules","repository":{"type":"git","url":"git+https://github.com/fortyfournorth/modules.git"},"bugs":{"url":"https://github.com/fortyfournorth/modules/issues"},"license":"MIT","readme":"[![44 North](https://res.cloudinary.com/fortyfournorth/image/upload/v1644103323/44North/ReadmeFileBanner_ixvgvr.jpg)](https://fortyfournorth.ca)\n\n# UnitConverter\n\nThis module is meant to provide helper methods for testing modules and services.\n\n## Install\n\nLog into `npm` and run one of the following\n\n```sh\nnpm install @44north/unitconverter --save-dev\n```\n\nor\n\n```sh\nyarn add @44north/unitconverter --dev\n```\n\n## Usage\n\n```ts\nimport { TemperatureConverter } from \"@44north/unitconverter\";\n\nconst temp1 = new TemperatureConverter(\"F\", \"C\").convert(212); // 100\nconst temp2 = new TemperatureConverter()\n    .setFromUnit(\"F\")\n    .setToUnit(\"C\")\n    .convert(212); // 100\nconst temp3 = new TemperatureConverter().convert(212, \"F\", \"C\"); // 100\nconst temp4 = TemperatureConverter.convert(212)\n    .from(\"F\")\n    .to(\"C\"); // 100\n```\n\n## Length\n\n```ts\nimport { converters } from \"@44north/unitconverter\";\nconst lengthConverter = new converters.length();\n\n// OR\n\nimport { DimensionsConverter } from \"@44north/unitconverter\";\nconst lengthConverter = DimensionsConverter();\n```\n\n### Metric Units\n\n-   `mm` - Millimeter\n-   `cm` - Centimeter\n-   `m` - Meter\n-   `km` - Kilometer\n\n### Imperial Units\n\n-   `in` - Inch\n-   `yd` - Yard\n-   `ft-us` - US Survey Foot\n-   `ft` - Foot\n-   `fathom` - Fathom\n-   `mi` - Mile\n-   `nMi` - Nautical Mile\n\n## Mass\n\n```ts\nimport { converters } from \"@44north/unitconverter\";\nconst massConverter = new converters.mass();\n\n// OR\n\nimport { MassConverter } from \"@44north/unitconverter\";\nconst massConverter = MassConverter();\n```\n\n### Metric Units\n\n-   `mcg` - Microgram\n-   `mg` - Milligram\n-   `g` - Gram\n-   `kg` - Kilogram\n-   `mt` - Metric Tonne\n\n### Imperial Units\n\n-   `oz` - Ounce\n-   `lb` - Pound\n-   `t` - Ton\n\n## Pressure\n\n```ts\nimport { converters } from \"@44north/unitconverter\";\nconst pressureConverter = new converters.pressure();\n\n// OR\n\nimport { PressureConverter } from \"@44north/unitconverter\";\nconst pressureConverter = PressureConverter();\n```\n\n### Metric Units\n\n-   `Pa` - pascal\n-   `kPa` - kilopascal\n-   `MPa` - megapascal\n-   `hPa` - hectopascal\n-   `bar` - bar\n-   `torr` - torr\n\n### Imperial Units\n\n-   `psi` - pound per square inch\n-   `ksi` - kilopound per square inch\n\n## Speed\n\n```ts\nimport { converters } from \"@44north/unitconverter\";\nconst speedConverter = new converters.speed();\n\n// OR\n\nimport { SpeedConverter } from \"@44north/unitconverter\";\nconst speedConverter = SpeedConverter();\n```\n\n### Metric Units\n\n-   `m/s` - Metre per second\n-   `km/h` - Kilometre per hour\n\n### Imperial Units\n\n-   `m/h` - Mile per hour\n-   `knot` - Knot\n-   `ft/s` - Foot per second\n\n## Temperature\n\n```ts\nimport { converters } from \"@44north/unitconverter\";\nconst temperatureConverter = new converters.temperature();\n\n// OR\n\nimport { TemperatureConverter } from \"@44north/unitconverter\";\nconst temperatureConverter = TemperatureConverter();\n```\n\n### Metric Units\n\n-   `C` - degree Celsius\n-   `K` - degree Kelvin\n\n### Imperial Units\n\n-   `F` - degree Fahrenheit\n-   `R` - degree Rankine\n\n## Volume\n\n```ts\nimport { converters } from \"@44north/unitconverter\";\nconst volumeConverter = new converters.volume();\n\n// OR\n\nimport { VolumeConverter } from \"@44north/unitconverter\";\nconst volumeConverter = VolumeConverter();\n```\n\n### Metric Units\n\n-   `mm3` - Cubic Millimeter\n-   `cm3` - Cubic Centimeter\n-   `ml` - Millilitre\n-   `cl` - Centilitre\n-   `dl` - Decilitre\n-   `l` - Litre\n-   `kl` - Kilolitre\n-   `m3` - Cubic meter\n-   `km3` - Cubic kilometer\n-   `krm` - Matsked\n-   `tsk` - Tesked\n-   `msk` - Matsked\n-   `kkp` - Kaffekopp\n-   `glas` - Glas\n-   `kanna` - Kanna\n\n### Imperial Units\n\n-   `tsp` - Teaspoon\n-   `Tbs` - Tablespoon\n-   `in3` - Cubic inch\n-   `fl-oz` - Fluid Ounce\n-   `cup` - Cup\n-   `pnt` - Pint\n-   `qt` - Quart\n-   `gal` - Gallon\n-   `ft3` - Cubic foot\n-   `yd3` - Cubic yard\n\n## Attribution\n\nThis module is based of the work of [Ben Ng](https://benng.me/) repository [convert-units](https://github.com/ben-ng/convert-units) npm module. while functional, its not been maintained or updated in several years.\n","readmeFilename":"README.md"}