{"_id":"@benehmke/measurement","name":"@benehmke/measurement","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"type":"module","name":"@benehmke/measurement","version":"0.1.0","description":"Javascript Classes for storing, and converting units of measurement","main":"esm/index.js","scripts":{"test":"mocha -r @babel/register","build":"babel src -d esm --no-babelrc"},"repository":{"type":"git","url":"git+https://github.com/bemky/measurement.git"},"keywords":["units","measurement","measure"],"author":{"name":"Ben Ehmke"},"license":"MIT","bugs":{"url":"https://github.com/bemky/measurement/issues"},"homepage":"https://github.com/bemky/measurement#readme","devDependencies":{"@babel/cli":"^7.13.0","@babel/plugin-proposal-export-default-from":"^7.12.13","@babel/preset-env":"^7.13.9","@babel/register":"^7.13.8","mocha":"^10.1.0"},"gitHead":"34eb6735f468dc1c8e1cff97275c78de39ea2ee3","_id":"@benehmke/measurement@0.1.0","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-vRbtJEHfoz2mI97qeq3lLN0d4V/aD8niE2yEoPe2h83cBoqQyUoxPoXRrh5HvRLmusDYb44Tejeh1tO3aQ+ifA==","shasum":"362e97b1e6ac1cb0bbaf60ea654e01d0c1f3ac8d","tarball":"https://registry.npmjs.org/@benehmke/measurement/-/measurement-0.1.0.tgz","fileCount":14,"unpackedSize":11665,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcGEgXX5RqRVw78yN153eV8ku+4N2wflR9fArcjObfNQIhAJgucF5wj2kHSYTaUVCo8HQVEjeF06uRqPOfhPvduNnS"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJje+RkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrg5A//c4Up23p+5iAqacspGMMk0p0L+PKtaMHxhjdiTAmBz5lcetSt\r\nAf0RMpurGHgU8XJy72T4/urhtX77itb49ChvpkYZP95egGvlR0I2Km7MS2i3\r\nRHsSjc7+XuMRB+Iiy2SKXN90ChrAIUI7QOMIhR4OW7nlEl76j4SpNcU6U2/W\r\n2WVfK6s52gUVFiwc1yqShWbx2CYrQCkahd6xrq9ntOJyn0LdR5mqyMhXiIbc\r\nZyYN0KsqBxfjyiSVR7dO7UeQO9UeKsfjL7neGpeWT6m7Rv5GT5Uah+hXdZBw\r\nPQfiubUpvrVD3G11ls2dUTV+M7xlefagVBmXbFPVmIlzUM9wD0/a7RUaalIi\r\n1Hso3PWnATF1pfI8nXV77NCqrUNhOd1zAo1MFP5/mDMeGLe+G9CJiQEy0oc/\r\n6vggxoI2EqdOq4cv36YR7enhs0nf0IVsN359m4u0yiYruWW7RD+YkoQvCDQj\r\nlQHeJdPv5MxcfBlBxfKJFGklqCEarmD4W4oegBJzFrGj94vOv8FGDuN4AulN\r\nukt4WW5atpILq+47z6gCTYhm2LZOkBUz9SU8UHdNJaSunxrsh1j1GaMMlv+8\r\nOqRxDeYmIPwGslTKif5/k4G14LlHUXeX5Fio9z/qPSNr77d+BdYDHippu2nr\r\nyfn9bPC6Sjxtz3TYqY0+3kFNwrkV2xA0bGQ=\r\n=NUl8\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"benehmke","email":"benehmke@gmail.com"},"directories":{},"maintainers":[{"name":"benehmke","email":"benehmke@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/measurement_0.1.0_1669063780715_0.6305920333818427"},"_hasShrinkwrap":false}},"time":{"created":"2022-11-21T20:49:40.659Z","0.1.0":"2022-11-21T20:49:40.893Z","modified":"2022-11-21T20:49:41.035Z"},"maintainers":[{"name":"benehmke","email":"benehmke@gmail.com"}],"description":"Javascript Classes for storing, and converting units of measurement","homepage":"https://github.com/bemky/measurement#readme","keywords":["units","measurement","measure"],"repository":{"type":"git","url":"git+https://github.com/bemky/measurement.git"},"author":{"name":"Ben Ehmke"},"bugs":{"url":"https://github.com/bemky/measurement/issues"},"license":"MIT","readme":"# Measurement\nJavascript Classes for storing, and converting units of measurement\n\n## Installation\n\n    npm install @benehmke/measurement\n\n```javascript\nimport {Length} from 'measurement';\n\nconst boxFront = new Length('9 ft');\nconst boxSide = new Length(4, 'ft');\nconst boxHeight = new Length({value: 4, unit: 'in'})\n```\n\n## Usage\n\n### `to(units)`\n\n```javascript\nconst boxFront = new Length('9 ft');\nconsole.log(boxFront.to('in'));\n// >> 108 in\n```\n\n### `valueOf`\n\n```javascript\nconst distanceA = new Length('9 ft');\nconst distanceB = new Length('5 m');\nconsole.log(distanceA < distanceB);\n// >> true\n```\n\n## Units\n#### Length\n|Name|Label|\n| --- | --- |\n|Millimeter|`mm`|\n|Centimeter|`cm`|\n|Meter|`m`|\n|Kilometer|`km`|\n|Inch|`in`|\n|Foot|`ft`|\n|Yard|`yd`|\n|Mile|`mi`|\n\n#### Area\n|Name|Label|\n| --- | --- |\n|Square Meter|`sqm`|\n|Square Foot|`sqft`|\n|Tsubo|`tsubo`|\n\n## Development\n### TODO\n- [ ] Add/Subtract Method\n- [ ] Length.toArea\n- [ ] Custom Unit rename (ex ft2 for sqft)\n- [ ] Volume\n- [ ] Weight\n\n### Build\n    npm run build\n### Test\n    npm run test\n### Release\n    npm publish","readmeFilename":"README.md"}