{"_id":"@brandednomad/simplecalc","_rev":"2-acd8cf29b2b44be5712c24ee38a1d124","name":"@brandednomad/simplecalc","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@brandednomad/simplecalc","version":"0.1.0","description":"A simple arithmetic calculator.","main":"index.js","scripts":{"test":"mocha","con-test":"nodemon /usr/local/bin/mocha"},"keywords":["calculator"],"repository":{"type":"git","url":"git+https://github.com/BrandedNomad/npm-package-simplecalc.git"},"author":{"name":"Charl Swart"},"license":"ISC","devDependencies":{"nodemon":"^2.0.12","should":"^13.2.3"},"gitHead":"df184b3a6c2215656b8ad9fb4375101dd33913d7","bugs":{"url":"https://github.com/BrandedNomad/npm-package-simplecalc/issues"},"homepage":"https://github.com/BrandedNomad/npm-package-simplecalc#readme","_id":"@brandednomad/simplecalc@0.1.0","_nodeVersion":"12.19.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-EtZ+oer6LnWmLFRarvYQ1aI7bnhtYQ5TwGvDljMK/wrVup7fH4DLEpD6oGZw9n9qDz/bfkgvvZdRAsZ/WKz12Q==","shasum":"92908134e5bec3adfe27f95ecef1f0846d778c53","tarball":"https://registry.npmjs.org/@brandednomad/simplecalc/-/simplecalc-0.1.0.tgz","fileCount":3,"unpackedSize":2368,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg6tdCCRA9TVsSAnZWagAAdGIQAJtMTA4B4boRZKAMrYqh\nhMtEogd8TsFeoyJN5139neNRQ1a8fm8CJIm1v2L9AVoJEjwnCapWIniMCBnG\nRECipCFmo46+WyEaj1EMj0NcAO/NWZ1wBD/s/azBMB7mx2dwUAQhCUpIeGpu\n32E1fazHwjiio3XV/FbG4CkGiEMpitAF8Vw3JbpVVvlOV726lnWGRX8WJSGS\nBPWxBhy0BA0kxig+ZltZty6yy3pngPsRp47HuZST1QXsMTM+IHRpsa3m0zno\nFLL6+i15XrGlI/ZqFOLWz77eskJMJBhQG1nKr1l1hcJSTnyk7TXmqSUuiwph\noc0fsZ/QoN7R2EBacc+676FcnqJMT0P9HY12VRCrImJD8VrXk9n0CvwOjKSW\nj4lIggl3y4KK0XH2sna74O59z0pYOCyxZka5u4frDuEFBFRg3+RZOsujfD/N\nKJU8D89STjz2kT222Q2FNfpX8Qas9qbMltGP6lFZiTNYYO9AjZSAEaZrwTyF\nxLOHTBmWHpwOB0z48Pus2uHpIEm8YLiGk68b73zkRgPS0/Omp38MFqMvDraT\nnmtvv3ZWHnmkgghSu5EBmNqoGs2pKALG0Qymh0ecxIPVFauPZv9LCcGbAVyT\n4S6ZDzTWR3H92VNM2gZVp/qpYfuw2bFt/zOOSN9UjPm5J04Ii0fSMM2P+s3x\nr+Ii\r\n=A5NP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEOZJ1h4d90S0Fo9NUaWHOTEUUaSb2vb73hil+gkChEPAiBas7VGQlaSRLD/qyBo6wRqpW43LD/vsnsqCHxblsU8Jg=="}]},"_npmUser":{"name":"brandednomad","email":"cshandwritten@gmail.com"},"directories":{},"maintainers":[{"name":"brandednomad","email":"cshandwritten@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simplecalc_0.1.0_1626003266348_0.763604545208961"},"_hasShrinkwrap":false},"0.2.0":{"name":"@brandednomad/simplecalc","version":"0.2.0","description":"A simple arithmetic calculator.","main":"index.js","scripts":{"test":"mocha","con-test":"nodemon /usr/local/bin/mocha"},"keywords":["calculator"],"repository":{"type":"git","url":"git+https://github.com/BrandedNomad/npm-package-simplecalc.git"},"author":{"name":"Charl Swart"},"license":"ISC","devDependencies":{"nodemon":"^2.0.12","should":"^13.2.3"},"gitHead":"9d74cea4c786fef69ffbf75bafae5234eb575f5c","bugs":{"url":"https://github.com/BrandedNomad/npm-package-simplecalc/issues"},"homepage":"https://github.com/BrandedNomad/npm-package-simplecalc#readme","_id":"@brandednomad/simplecalc@0.2.0","_nodeVersion":"12.19.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-WblI3UxENsq8yP0XPMsNcAOrtjcucdvUME95pn8KVPf1UQP0e7QfTKc2+dS/XEGaCiJf+zT3JhQuQFGeKE4W7A==","shasum":"20d25299bd87058893641352daa3a9ec641a4a92","tarball":"https://registry.npmjs.org/@brandednomad/simplecalc/-/simplecalc-0.2.0.tgz","fileCount":3,"unpackedSize":2593,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg6uZJCRA9TVsSAnZWagAAD7EP/2m82fS/HC4LXJZ86AcI\nQYdD2/52ZTTQwsRHysnPUWkZJxs2kmXKIeZQ+YGXQeHxOg7JAnZV9/+2BSV2\n/aw/uffSmZK9kuNDu+IgEivveqiPMQmVRoYwSrtudB2yWsL4w7O99m7MCBaS\nsrOoaP4S5r/vzQOEA+6NtmlvKajH8vFa6lN5NHyR99WcCoYGEZ7z88Z78t82\nJq3YzkvrNtySvlpYFK1+ibiiLM2lTAJ7MOUaZzGfFVpx9P7JYsc5zg6b2rdg\n/YI1wGmV6/1OkE1HgoktMc32BwNU4sKFYwAFla9qI8R8JYlCmZyEZtX/cbK9\ndguqdRWPSwvgOrhMuLm1xiCmG/DeBVM24RaVasbSbLHECu4LJbPg+M7eWXWt\neJSxaVswY9PGN2ttOTLhiJdowxNdHOu1mAQZq6w12mryOfnqvzQdh9r9a1wS\n7g3fJfuVESQs+CqICnbE1PgYRe+WiCEcoMFhG50pWEHTDpENPbHTx792MeEn\nE+nY3xzB7W7dy93wbktzRKQO05Mr42VrZyskCrudK12B+5ER+E3CsICXiPZy\nd5Oq851G8y4rgip59OfpZMrbHHOSNAOAu2qUE7pDEAZ6JC8ZzoFYVUABXyMA\nabBARPBgpZ0JHgrxHcrME2eMrx/3SDFM8FtyCfZ4yxsnNY0Ez94vJXNX/E2r\nyOyU\r\n=2IzI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGKmjeMJr8rnGJRNNuseB+B9twsAbRTR942Zdxc/TcyVAiBVb9q6EfN5e0zRQgGOd4C7d3iYPJWWHf/LK+jsyMIxxg=="}]},"_npmUser":{"name":"brandednomad","email":"cshandwritten@gmail.com"},"directories":{},"maintainers":[{"name":"brandednomad","email":"cshandwritten@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simplecalc_0.2.0_1626007112629_0.8891152884420039"},"_hasShrinkwrap":false}},"time":{"created":"2021-07-11T11:34:26.296Z","0.1.0":"2021-07-11T11:34:26.488Z","modified":"2022-04-04T20:22:17.951Z","0.2.0":"2021-07-11T12:38:32.750Z"},"maintainers":[{"name":"brandednomad","email":"cshandwritten@gmail.com"}],"description":"A simple arithmetic calculator.","homepage":"https://github.com/BrandedNomad/npm-package-simplecalc#readme","keywords":["calculator"],"repository":{"type":"git","url":"git+https://github.com/BrandedNomad/npm-package-simplecalc.git"},"author":{"name":"Charl Swart"},"bugs":{"url":"https://github.com/BrandedNomad/npm-package-simplecalc/issues"},"license":"ISC","readme":"@brandednomad/simplecalc\r\n==\r\nA simple arithmetic calculator\r\n\r\n## Installation\r\n\r\nRequires __npm 2.7.0__ or higher\r\n\r\n`npm init`\r\n\r\n`npm install @brandednomad/simplecalc --save`\r\n\r\n***\r\n\r\n## Usage\r\n\r\nvar _factory = require(\"@mitchallen/calc\"); \r\n\r\nvar calc = _factory.create(); \r\n\r\ncalc.clear(); \r\ncalc.add(20); \r\ncalc.sub(5); \r\ncalc.mul(4); \r\nvar result = calc.div(2); \r\nconsole.log(result);\r\n\r\n***\r\n\r\n## Methods\r\n\r\n### _factory.create()\r\n\r\nThe factory __create__ method returns a calculator object.\r\n\r\nIt takes no parameters.\r\n\r\nThe method will return null if create fails, such as with bad parameters.\r\n\r\nYou can call create multiple times to create multiple calculater objects.\r\n\r\n### object.clear()\r\n\r\nSets the internal accumulator to zero.\r\n\r\ncalc.clear()\r\n\r\n### result = object.add(number)\r\n\r\nAdds __*number*__ to the internal accumulator. Returns the new value of the accumulator.\r\n\r\ncalc.add(2)\r\n\r\n### result = object.sub(number)\r\n\r\nSubtracts __*number*__ from the internal accumulator. Returns the new value of the accumulator.\r\n\r\ncalc.sub(2)\r\n\r\n### result = object.div(number)\r\n\r\nDivides the value of the internal accumulator by __*number*__. Returns the new value of the accumulator. If divided by 0, accumulator will be set to infinity. \r\n\r\ncalc.div(2)\r\n\r\n## result = object.value()\r\n\r\nReturns the current value of the internal accumulator.\r\n\r\nvar result = calc.value();\r\n\r\n***\r\n\r\n## Testing\r\n\r\nTo test, go to the root folder and type \r\n\r\n`npm test`\r\n\r\n***\r\n\r\n## Repo(s)\r\n\r\n* [github.com/brandednomad/npm-package-simplecalc.git](https://github.com/BrandedNomad/npm-package-simplecalc.git)\r\n\r\n***\r\n\r\n## contributing\r\n\r\nContributions not accepted at this moment\r\n\r\n## Version History\r\n\r\n#### Version 0.2.0\r\n\r\n* Added examples folder\r\n* Added Object.value() method\r\n\r\n\r\n#### Version 0.1.0\r\n\r\n* initial release\r\n","readmeFilename":"README.md"}