{"_id":"@1-corp/fixed-size-numbers-ts","_rev":"5-014af75846481e44bac72c4a567b99b0","name":"@1-corp/fixed-size-numbers-ts","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@1-corp/fixed-size-numbers-ts","version":"1.0.0","description":"A functional implementation of fixed size integers in javascript with typing in TypeScript.","main":"lib/index.ts","types":"lib/index.d.ts","private":false,"scripts":{"build":"tsc --build tsconfig.json","test":"mocha ./tests/*.js","lint":"tslint -c tslint.json '*/*.ts'","compile":"tsc -p .","fix":"tslint -c tslint.json '*/*.ts' --fix","prepare":"npm run compile","pretest":"npm run compile","posttest":"npm run lint"},"author":"","license":"ISC","dependencies":{"bignumber.js":"^8.0.1"},"devDependencies":{"@types/chai":"^4.1.7","@types/mocha":"^5.2.5","@types/node":"^10.12.10","chai":"^4.2.0","mocha":"^5.2.0","ts-node":"^7.0.1","tslint":"^5.11.0","typescript":"~3.1.0"},"gitHead":"6aa8a4821852f1638c1a88daf375512f1e3fb5cc","_id":"@1-corp/fixed-size-numbers-ts@1.0.0","_nodeVersion":"11.0.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-9skVd54TwrwsaiXAebTXuQS39+2oRcaJVPt1rnOqQflQjsRqm/HRUHxoMCy63hbW7LZv6Rw7qvAQpEvAIMnS+w==","shasum":"5ea67ebb10049b8358220903f91544fe8f476c32","tarball":"https://registry.npmjs.org/@1-corp/fixed-size-numbers-ts/-/fixed-size-numbers-ts-1.0.0.tgz","fileCount":39,"unpackedSize":54528,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdzx5UCRA9TVsSAnZWagAAkPMP/ir85Xek5TQuzPnFJsIm\nuX+skwTL4Fj9CPKsy7x0e9RVGQZlvVnezUOZcGRkQVZVKF1GIoBGOF4JHj0E\ngg60Brv3F0GWQLLTHHGE/bQY08MjhayLT8FwViCltooyewAn1+/7BGvk63oO\nRDOr1kVX7mVLdIv2RtD85h6AXaiMMAhXATuyoZwmTg59MJzo0/Hkop3+c8tw\nviXF3zIRAsGXFBq1PXZY4sqgOhlsC12RARYFUdHxTUV5dGoG4NaBr6ne/K+R\nFYDeVBS7CuVQvmJIuRihRgfZ4gwSo7fajVTpmchQzLK0FjNBikY46bkW9tPU\nQ2mR5NRgscwqJpu/Bt8FJSxbdGXRS2g4QGVHMQqmPmJAGwbCt6TH+J++1z7m\n4tR21FhY2Nj4Ab3CASlgJBFhFIH8Y3wtwviJJ16b4WRO1nGw+3hBwEnDYyK+\n9kJqUP+52LDxTxeogp6nUXbO5wCGsBObB5axqy/iCquN332ZkDE74C2LRLn2\nErsS4Wg4I8g4I+K9YJR4l4EoH6kyK4TCPWcG5BaQrPb0cIVOR3Qu8i084D61\nVf8ItQrYtVqZKhq5anV4X/WZEp/F6QhN6OueP5diYBfBiC4WadcvzXd1xr8x\n/zWaIa7CH5PEIUHrIWKlF5aw4xyw30FYtMtdCv2CakagNhy/dQ9N2yrSWtKQ\nZxbJ\r\n=ceDp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE8mDioUtdKGbhTlFQlmfjLDAwBMOWzOJQs5euXgm4npAiA21tKCEx3+K9VmF5Ii5xePjdaDbuM11v8RRzdC1CeoMA=="}]},"maintainers":[{"name":"warchant","email":"warchantua@gmail.com"}],"_npmUser":{"name":"warchant","email":"warchantua@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fixed-size-numbers-ts_1.0.0_1573854803632_0.34373196226752145"},"_hasShrinkwrap":false},"1.0.1":{"name":"@1-corp/fixed-size-numbers-ts","version":"1.0.1","description":"A functional implementation of fixed size integers in javascript with typing in TypeScript.","main":"lib/index.ts","types":"lib/index.d.ts","private":false,"scripts":{"build":"tsc --build tsconfig.json","test":"mocha ./tests/*.js","lint":"tslint -c tslint.json '*/*.ts'","compile":"tsc -p .","fix":"tslint -c tslint.json '*/*.ts' --fix","prepare":"npm run compile","pretest":"npm run compile","posttest":"npm run lint"},"author":"","license":"ISC","dependencies":{"bignumber.js":"^8.0.1"},"devDependencies":{"@types/chai":"^4.1.7","@types/mocha":"^5.2.5","@types/node":"^10.12.10","chai":"^4.2.0","mocha":"^5.2.0","ts-node":"^7.0.1","tslint":"^5.11.0","typescript":"~3.1.0"},"gitHead":"da962be5173d4f2a234cba3200be9bd9c692cc0d","_id":"@1-corp/fixed-size-numbers-ts@1.0.1","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-Fn6YsaeXG0K+T2qt8vA2+EECeq4jn7OQyb/fCcp8+iMVud2yzqOvM8ijuJ/pp3/xdWWyKn2Uh1OsODOpQhEMXA==","shasum":"277dcaff8ab60e7a04131f8c1ae555e96a9a1633","tarball":"https://registry.npmjs.org/@1-corp/fixed-size-numbers-ts/-/fixed-size-numbers-ts-1.0.1.tgz","fileCount":31,"unpackedSize":47436,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdzx7oCRA9TVsSAnZWagAAuw8P/1JYeLGod5u6sIqZHfCU\ntAXMG9Yz0emvr1ooF13SuKLTGjwJUdEaPm0NW4dw7Lari3XjHEdiA2fn2McP\nGFwE154PiuT5Fy0gnxFzUYxlx6eN/2hxuRd/wJoHPxtI8webnsJKQDIbLPAb\n9EeDACVKysYjesa8CGHvyyCQfaXpjhI9Xu3TIatb59YjPRSY5r36tx7IgYnt\nrqk1VZ3LKtwUSkNX2FnJSDH2hVYc+ZGArLTweuu/Jx5NqnZuJDaNAeHvgIS5\nD0Do58hU+x4k9YXnmjMZpKRRsXMtxI8o3XQQALrLwhySNIsjTpme0nd6/Dz9\nRPdQ1HktCrPOZMdcn7Ut5MxGACX5pcSy/ge/T8BG2Mg4Ku3NJVqsoY84Fr5O\n1IcCFTfRk8kp5ys7jqJBKzYsKTE1v0AzoYmzHTHYCxaMvi2RPM5ONVVPk0N/\n2DKfwLxIN0i9oMjajZdMyzLmB19V+X/2K/r5gtMyElVu+78FFQ23qYD/tQf9\njG/j9SxqbgUNReezlZpLlRxMdzdoyWgfjYW2stnk1TJKwcpu8WiYkVZm31fA\nPos3MNnGW6fjv5E6Hfpv/VNq9WNaDBSlq9RrH2jkKsqw5uH8c4HSl8iGD0mh\n4KraKU7UzSdMMLuk2zt0w5OyU058rqDLE5M3pPTaEZ3phWGHgrJSEwU0IsPc\nTYyg\r\n=afK0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDvJRfH2f/c41s79IsBAoZiso7HpYgnwn/PnGbhkl+oLAiBtxR9r8kLb4/HgN2SpU5vccvHqe0nShoLEk67B4OVH4w=="}]},"maintainers":[{"name":"warchant","email":"warchantua@gmail.com"}],"_npmUser":{"name":"warchant","email":"warchantua@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fixed-size-numbers-ts_1.0.1_1573854952405_0.16387143202673693"},"_hasShrinkwrap":false},"1.0.2":{"name":"@1-corp/fixed-size-numbers-ts","version":"1.0.2","description":"A functional implementation of fixed size integers in javascript with typing in TypeScript.","main":"lib/index.ts","types":"lib/index.d.ts","private":false,"scripts":{"build":"tsc --build tsconfig.json","test":"mocha ./tests/*.js","lint":"tslint -c tslint.json '*/*.ts'","compile":"tsc -p .","fix":"tslint -c tslint.json '*/*.ts' --fix","prepare":"npm run compile","pretest":"npm run compile"},"repository":{"type":"git","url":"git+https://github.com/1-corp/fixed-sized-numbers-ts.git"},"author":"","license":"ISC","dependencies":{"bignumber.js":"^9.0.0"},"devDependencies":{"@types/chai":"^4.2.5","@types/mocha":"^5.2.7","@types/node":"^12.12.8","chai":"^4.2.0","mocha":"^6.2.2","ts-node":"^8.5.2","tslint":"^5.20.1","typescript":"^3.7.2"},"gitHead":"f09e8e2fb1348318224932cf14f8dc5ebb2a0cd9","bugs":{"url":"https://github.com/1-corp/fixed-sized-numbers-ts/issues"},"homepage":"https://github.com/1-corp/fixed-sized-numbers-ts#readme","_id":"@1-corp/fixed-size-numbers-ts@1.0.2","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-eDtm2nLInXdYiZNyL8iG6h669zvg8caSWbyDfWmNvh+84bFhi5KKD9uBB60+1OROONJg29zoiZJsF3T8uw4DDQ==","shasum":"4840ad79bf832e53090cbbe86e02e3720db2f737","tarball":"https://registry.npmjs.org/@1-corp/fixed-size-numbers-ts/-/fixed-size-numbers-ts-1.0.2.tgz","fileCount":31,"unpackedSize":47538,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdz80ZCRA9TVsSAnZWagAANNEP/R6Eva0Iu+T1CPR2ZAFv\nTy6ujRznRcJ0gmXRRkGn5abChes7a+mQyuIFQtr++IT1gkMOWH2KvAbahTgK\ndM/jwN7cDZ/QkIm/zEBvDQ4vP4LxaUMlp5crG9usNSPBFtsafg+Is5AXZ0Di\n8UBAaPvvN8mvWp186bg8DQ2uQ46WhRv/ELiC5/WIKnHMQyNr+Ad9M9SjB1+J\nTL+K8EYEdw2qb0gnfxv0yzI3vKwk5xJ0YMNRyeUhgLO6zB40nnyawSL5Yref\nl36jL5ywZ3i67KHrMDRD08Gy9dfvSDUQPIu04QIBdWz4ysVRwvgbOT1axxAY\nPL00rCqEk2L0H9zisJJ8yXpPATvPBX1CUQWzgurG3RzDHv315Rd8RdZPu9Ab\n1T2NQcNz1xvA9ah9SQ5qc9EXODipLoTKLebor06MIF5rm2mgF5g20BHf+Qyb\nWUrs/1jLeF1b+uyHrOxwIBX2RVbDeznIn1oEnK6G/LQ0F42w/vANZGbrOUgU\nLEeoggIjsqkbZ1XHlmFX3JApFBg6IZ7no2LBsOteRWn4jqdSe4xBu85X/AXr\nRjTt9wnQgExL5fgCLGQns+opPpHm/SektZNp6cAanPUOaKaOxWD+v6QfSnAs\nG0u429pyTGIN92vS5zcHIPngrAh9ZRGl+ZOjrEO6EBxuy2nBju/W2OHLueXr\nLmm6\r\n=ckh8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFl/a3bPGP8Qs0EUY2ZNqzOnzkfV/lZebUS0V38um/5EAiBtjYs9wksgPPDLCVSHsHzu+qQKVklxsQxgmQWL63lkug=="}]},"maintainers":[{"name":"warchant","email":"warchantua@gmail.com"}],"_npmUser":{"name":"warchant","email":"warchantua@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fixed-size-numbers-ts_1.0.2_1573899544963_0.17161605889233233"},"_hasShrinkwrap":false},"1.0.3":{"name":"@1-corp/fixed-size-numbers-ts","version":"1.0.3","description":"A functional implementation of fixed size integers in javascript with typing in TypeScript.","main":"lib/index.ts","types":"lib/index.d.ts","private":false,"scripts":{"build":"tsc --build tsconfig.json","test":"mocha ./tests/*.js","lint":"tslint -c tslint.json '*/*.ts'","compile":"tsc -p .","fix":"tslint -c tslint.json '*/*.ts' --fix","prepare":"npm run compile","pretest":"npm run compile"},"repository":{"type":"git","url":"git+https://github.com/1-corp/fixed-sized-numbers-ts.git"},"author":"","license":"ISC","dependencies":{"bignumber.js":"^9.0.0"},"devDependencies":{"@types/chai":"^4.2.5","@types/mocha":"^5.2.7","@types/node":"^12.12.8","chai":"^4.2.0","mocha":"^6.2.2","ts-node":"^8.5.2","tslint":"^5.20.1","typescript":"^3.7.2"},"gitHead":"f61b1532d036879a7bc2ab4e17e6ba88c9763230","bugs":{"url":"https://github.com/1-corp/fixed-sized-numbers-ts/issues"},"homepage":"https://github.com/1-corp/fixed-sized-numbers-ts#readme","_id":"@1-corp/fixed-size-numbers-ts@1.0.3","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-9Off7iTRXjOXWKckthoGs2sOy8GrO5slp797l4QCZLCDBCfFf2WYzL6Zo+fCTfHnlCFAjgYUh9I6n6mM2/XZaQ==","shasum":"8f6b6e8b71434a9a92177e3a23f83dde146b8ab8","tarball":"https://registry.npmjs.org/@1-corp/fixed-size-numbers-ts/-/fixed-size-numbers-ts-1.0.3.tgz","fileCount":31,"unpackedSize":48692,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd0SbcCRA9TVsSAnZWagAAoh8P/24t7CxiHhK7PbQ6cNJ0\nN1J0BL+oLxNkIsfEmn4FKcwAtimhNglDMnUWk2Z+JoISDfsXxj0DqQ/EdtgG\n4sqOWcRz5ZKL/NpGVBYZ5nFK79CcEUljEYHf1iWnY+28z6e6QAVymmbcW93r\nQ88SAzWCSqZvhDkwxaQe8j4lRGHuFFP6AZ4jjHMbwG2CzRA9QYSKcKtD9abJ\nWDEf72RYN8pnkWveTL2Lxf5qMBk7E66OrdZGEhRA2WfnmkI9gDxSUlP18aDP\nLMo6u+bgolvSc5Pjzf1hf3s25tSpeWgrgWrPytfxZxVSFuO7fYdhjEwiJ9G9\n6E/EwXoplwU0yp6WbbVRuWFwSjHULk88UHZF4f9ZGc9gBcYEi8pv76rwjITm\nfV0zuYRBxyPwaRddLbj4gQ//TqLt4gP/OrpyUWU+Zo2g+2NZdPAYrKYUVijH\nbrGlzhwZ7bYWacBr5h/sg9+R9MG0/e5yhNlTVqhbR2+gtRvLH2JDKuxyr7VY\n0KMRWdFhnbM/FvNI4mAoR8FTj6rBGQE+hRt9efVyNakY+yrulf+WSXHHQLgv\nRqohRBTRhISJLNUhPNvxE2UbHpvIt36XOIaEv/yUsvyNWqW6E4vFqUELv1i4\n5zgPnd0WlvYQOTgAY+7EmkQnEBOzUx4CVAiXmRNNKXNHA+d26qqoVZxNTFDO\nSrWZ\r\n=csPd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDnrh3aWvUDhHlar2qE0ttfCsP/eGJ5NSjmNP3Lh6BizgIgQrOu+gUEfulY6WFCq9TDiit+XEubTe62vmQo1Ma0sJs="}]},"maintainers":[{"name":"warchant","email":"warchantua@gmail.com"}],"_npmUser":{"name":"warchant","email":"warchantua@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fixed-size-numbers-ts_1.0.3_1573988060173_0.9122376674091046"},"_hasShrinkwrap":false},"1.1.0":{"name":"@1-corp/fixed-size-numbers-ts","version":"1.1.0","description":"A functional implementation of fixed size integers in javascript with typing in TypeScript.","main":"lib/index.ts","types":"lib/index.d.ts","private":false,"scripts":{"build":"tsc --build tsconfig.json","test":"mocha ./tests/*.js","lint":"tslint -c tslint.json '*/*.ts'","compile":"tsc -p .","fix":"tslint -c tslint.json '*/*.ts' --fix","prepare":"npm run compile","pretest":"npm run compile"},"repository":{"type":"git","url":"git+https://github.com/1-corp/fixed-sized-numbers-ts.git"},"author":"","license":"ISC","dependencies":{"bignumber.js":"^9.0.0"},"devDependencies":{"@types/chai":"^4.2.5","@types/mocha":"^5.2.7","@types/node":"^12.12.8","chai":"^4.2.0","mocha":"^6.2.2","ts-node":"^8.5.2","tslint":"^5.20.1","typescript":"^3.7.2"},"gitHead":"b08c99f851380324977b413d5a9879b95e32eb05","bugs":{"url":"https://github.com/1-corp/fixed-sized-numbers-ts/issues"},"homepage":"https://github.com/1-corp/fixed-sized-numbers-ts#readme","_id":"@1-corp/fixed-size-numbers-ts@1.1.0","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-BEy1/iRW4T9ImlVCa8xBfF+bDjzevWbdkqqIEUcNaCmT6zx2vvHjmba09jV0xk8big46AxbLuqXgtvpE3CV4gw==","shasum":"4d5a61ff99954d9cafcdc468b21e1b0cbdfd5708","tarball":"https://registry.npmjs.org/@1-corp/fixed-size-numbers-ts/-/fixed-size-numbers-ts-1.1.0.tgz","fileCount":31,"unpackedSize":48949,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd0Tm1CRA9TVsSAnZWagAAdG4P/1QBiN39HnLLvra9lv8G\nsq16T9HkjJ8o3z8EKqRakBmSJlo5JdEw0kdwGfC8GLpUpvWD+x1PB1173ZgH\nJ5lDyxLNAnJ0OS3yF2YxicgeOmttWyLCRpZbpMorBduDrm0MU5OAQH38PxCF\nf7JEpd2f2TFZ1fWCmutB2dOypD0ZUyj/lctKWbfvziDgko0nZUE1qilom8AD\nkJpns4I/DRjt+TxZtaFF6uI6cb1YMKXT6vCs7/UPgjmAxKeMFvM393M+56cM\n6Hx62fRvlc4AZRkxDwUAi6JJqGwyV8oQeynqbQdSAmVeNuUwOXUfTq1O3zxR\n4uxEgurmItuEAKEyo89Rj1fjPqOzZ+RMRcOb3bjFzJ2doWWJMa3nQl8FnT1x\noRbDvxhh6PovZcchJlB7X4GWRrjiIz6KGuOBXp4NNXAZvr7uIcyOd0yq63Ih\nShFk/qCwPkiBwcjbEolIRBln5dh/+Hi5cDI5n03Or8n/IQX8ClayGs1BLSMF\np6sAziBaLAI3XJ2rtgDV40MrKptHdY23fBzVQUO195w5U3wRPKo7ldu4cpfl\ngCCbW5ohRMRy1fR0j2+AQGijiX68mNRgaEGz44wi/qIYHi8l3iT4vDfQxgnk\nzVDNLuqsWvECdUl92q1DZSb5gCrRK5fkCg53uvEHiucZqvzPyeElKiZegpOW\nL7q5\r\n=U9O1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEzVgYT8AS9XycZ8Ry0LT/Orz/5ADEhevIhcM1ALGMCfAiB+xxsnaDu8ZObaun00CXDSKge+v2iAFvkFYUMk+eGVmA=="}]},"maintainers":[{"name":"warchant","email":"warchantua@gmail.com"}],"_npmUser":{"name":"warchant","email":"warchantua@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fixed-size-numbers-ts_1.1.0_1573992884879_0.07815903727402396"},"_hasShrinkwrap":false}},"time":{"created":"2019-11-15T21:53:23.362Z","1.0.0":"2019-11-15T21:53:23.740Z","modified":"2022-04-04T10:29:47.706Z","1.0.1":"2019-11-15T21:55:52.547Z","1.0.2":"2019-11-16T10:19:05.130Z","1.0.3":"2019-11-17T10:54:20.294Z","1.1.0":"2019-11-17T12:14:45.016Z"},"maintainers":[{"name":"warchant","email":"warchantua@gmail.com"}],"description":"A functional implementation of fixed size integers in javascript with typing in TypeScript.","license":"ISC","readme":"# Fixed Size Numbers\n\nA functional implementation of fixed size integers in javascript with typing in TypeScript.\n\n>Note: this library is just a typed wrapper on [BigNumber.js](https://github.com/MikeMcl/bignumber.js/)\n\n**Currently no Floating Points or Decimal values are supported!!!**\n\n## API\n\nCreate a new signed or unsigned integer by passing a value in string, number, or BigNumber format to the constructor function\n\nAccess the value and the size with their respective attributes (_value, and _size)\n\n>Note: _value is always a BigNumber\n\nOr preform safe math using the methods provided\n\n```javascript\nimport { Uint8, Int8 } from 'fixed-sized-numbers-ts'\nlet safe72 = Uint8(72)\nlet safeNegative54 = Int8(-54)\n\nconsole.log(safe72)\n/*\n{\n    _value: 72,\n    _size: 8,\n    validateSize: [Function],\n    add: [Function],\n    sub: [Function],\n    mul: [Function],\n    div: [Function],\n    _uint8: true\n}\n*/\n\nconsole.log(safeNegative54)\n/*\n{\n    _value: -54,\n    _size: 8,\n    validateSize: [Function],\n    add: [Function],\n    sub: [Function],\n    mul: [Function],\n    div: [Function],\n    _isPositive: false\n    _int8: true,\n}\n*/\n```\n\nUpgrade any number simply by feeding it to a new constructor function\n\n>Note: This library freezes all objects, so you cannot simply change the _value of a constructed type. This is good and forces immutability.\n\n```javascript\nimport { Uint8, Uin64, Int8 } from 'fixed-sized-numbers-ts'\nlet safe72 = Uint8(72)\n\nconsole.log(safe72)\n/*\n{\n    _value: 72,\n    _size: 8,\n    validateSize: [Function],\n    add: [Function],\n    sub: [Function],\n    mul: [Function],\n    div: [Function],\n    _uint8: true\n}\n*/\n\nlet safeLarger72 = Uint64(safe72._value)\n\nconsole.log(safeLarger72)\n/*\n{\n    _value: 72,\n    _size: 64,\n    validateSize: [Function],\n    add: [Function],\n    sub: [Function],\n    mul: [Function],\n    div: [Function],\n    _uint64: true\n}\n*/\n\nlet signed72 = Int8(safeLarger72)\n\nconsole.log(safeLarger72)\n/*\n{\n    _value: 72,\n    _size: 8,\n    validateSize: [Function],\n    add: [Function],\n    sub: [Function],\n    mul: [Function],\n    div: [Function],\n    isPositive: true,\n    _int8: true\n}\n*/\n\n```\n\n>Note: Anything larger than 32bits needs to be constructed using strings because of imprecission in Javascript after 53 bits, this is enforced at the typing level\n\n```javascript\nimport { Uint64 } from 'fixed-sized-numbers-ts'\nlet bigSafeNumber = Uint64(\"18446744073709551616\")\n\nconsole.log(bigSafeNumber)\n/*\n{\n    _value: \"18446744073709551616\",\n    _size: 64,\n    validateSize: [Function],\n    add: [Function],\n    sub: [Function],\n    mul: [Function],\n    div: [Function],\n    _uint8: true\n}\n*/\n```\n\nFor safe math the first value in the equation will be the one who's method is being called, the second number will be the number passed to it. i.e. ``` Uint8(2).add()``` is a function that will add 2 to any other Uint8 value.\n\n>Note: Types must match for any arithmetic operation. The way the methods are generated at construction time is such that they require the same type as an argument. Additionally, the result of any of the arithmetic operations will the same type as its parent object. This is because the arithmetic operations generate a new number. \n\n```javascript\nimport { Uint8, Uint16, Int8 } from 'fixed-sized-numbers-ts'\nlet one = Uint8(1)\nlet two = Uint8(2)\nlet three = Uint8(3)\nlet threeHunnid = Uint16(300)\nlet negOne = Uint8(-1)\nlet oneSigned = Uint8(1)\n\none.add(one) // will yield a Uint8 with _value of 2\ntwo.sub(one) // will yield a Uint8 with _value of 1\ntwo.mul(three) // will yield a Uint8 with _value of 6\ntwo.div(one) // will yield a Uint8 with _value of 2\n\n// All of these will yield a type error\none.add(oneSigned) // No Uint8 -> Int8\nnegOne.add(one) // No Int8 -> Uint8\none.add(negOne) // No Uint8 -> Int8\nthreeHunnid.add(one) // No Uint16 -> Uint8\nthreeHunnid.add(negOne) // no Uint16 -> Int8\n```","readmeFilename":"README.md","homepage":"https://github.com/1-corp/fixed-sized-numbers-ts#readme","repository":{"type":"git","url":"git+https://github.com/1-corp/fixed-sized-numbers-ts.git"},"bugs":{"url":"https://github.com/1-corp/fixed-sized-numbers-ts/issues"}}