{"_id":"@harvest-profit/harvest-profit-calculations","_rev":"28-cd4a86991714a6de132bcf228ac1ed4e","name":"@harvest-profit/harvest-profit-calculations","dist-tags":{"latest":"1.2.3"},"versions":{"1.0.0":{"name":"@harvest-profit/harvest-profit-calculations","version":"1.0.0","author":{"name":"Jaryd Krishnan","email":"jaryd@harvestprofit.com"},"license":"UNLICENSED","_id":"@harvest-profit/harvest-profit-calculations@1.0.0","maintainers":[{"name":"jarydkrish","email":"jaryd@harvestprofit.com"}],"homepage":"https://github.com/HarvestProfit/harvest-profit-calculations#readme","bugs":{"url":"https://github.com/HarvestProfit/harvest-profit-calculations/issues"},"dist":{"shasum":"b40c35342103004a19f1f02e25cf5a57a3956e32","tarball":"https://registry.npmjs.org/@harvest-profit/harvest-profit-calculations/-/harvest-profit-calculations-1.0.0.tgz","integrity":"sha512-VbnUEtjdRFpLEQ071UGkQ0yElpSx0ZbUNrT0Zzd0xJMvpejmKt/jVDSZFi0u9SH+UUP7GSzdgdTlEMJ6/U84lw==","signatures":[{"sig":"MEQCIFvzB+cpMeTqf09crYUZl2dboq1NnfBPjiaU1oQpsg4FAiAY06C20m1UUel+T9BzjG9KXJYdeCWLy+95x5VfDkRuoA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"jest":{"transform":{"^.+\\.jsx?$":"babel-jest"},"collectCoverageFrom":["src/**/!(index).{js,jsx}"]},"main":"dist/index.js","files":["README.md","dist"],"gitHead":"cff92b89796475076b2f6bd6595a09e8f2b0ef19","scripts":{"docs":"yarn run clean-docs && yarn run build-docs","test":"jest test/ --coverage","build":"babel src -d dist","clean":"rm -rf ./dist","build-docs":"jsdoc src/* -t ./node_modules/ink-docstrap/template --configure jsdoc.conf.json --destination docs --readme README.md","clean-docs":"rm -rf ./docs","prepublish":"yarn run clean && yarn run build","publish-docs":"yarn run docs && gh-pages -d docs","report-coverage":"coveralls < ./coverage/lcov.info"},"_npmUser":{"name":"jarydkrish","email":"jaryd@harvestprofit.com"},"repository":{"url":"git+https://github.com/HarvestProfit/harvest-profit-calculations.git","type":"git"},"_npmVersion":"5.6.0","description":"All the calculations","directories":{},"_nodeVersion":"8.6.0","dependencies":{"lodash":"^4.17.4"},"devDependencies":{"jest":"^22.0.4","jsdoc":"^3.5.5","eslint":"^4.9.0","gh-pages":"^1.1.0","babel-cli":"^6.26.0","babel-core":"^6.0.0","babel-jest":"^22.0.4","babel-eslint":"^8.0.3","ink-docstrap":"^1.3.2","babel-preset-env":"^1.6.1","babel-preset-airbnb":"^2.4.0","eslint-plugin-react":"^7.4.0","babel-preset-stage-2":"^6.24.1","eslint-config-airbnb":"^16.1.0","eslint-plugin-import":"^2.7.0","eslint-plugin-jsx-a11y":"^6.0.2"},"_npmOperationalInternal":{"tmp":"tmp/harvest-profit-calculations-1.0.0.tgz_1513986319654_0.8564989494625479","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@harvest-profit/harvest-profit-calculations","version":"1.1.0","author":{"name":"Jaryd Krishnan","email":"jaryd@harvestprofit.com"},"license":"UNLICENSED","_id":"@harvest-profit/harvest-profit-calculations@1.1.0","maintainers":[{"name":"nickhorob","email":"nick@harvestprofit.com"},{"name":"jakehumphrey","email":"jakehumphrey18@gmail.com"},{"name":"jarydkrish","email":"jaryd@harvestprofit.com"}],"dist":{"shasum":"2c1b3e59c8aabb5705120657c1a3904b2d4d7247","tarball":"https://registry.npmjs.org/@harvest-profit/harvest-profit-calculations/-/harvest-profit-calculations-1.1.0.tgz","integrity":"sha512-fSuam+D5zzjxW3T7ETK8SKY9eiZpaztcJ485jbjat9PBj9tAk2FLQY/XWjcx4VTmHnUq0a2O5BAexcvZVdNCZg==","signatures":[{"sig":"MEQCIAScc9WBCvrNNwdkd5ZkeL/z4YizYOJ4xqRRaW2tX5k6AiBhfwQXOeq+AKkTkLgAbBoR54GW2z+IxvdALf4IRbqYhA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"jest":{"transform":{"^.+\\.jsx?$":"babel-jest"},"collectCoverageFrom":["src/**/!(index).{js,jsx}"]},"main":"dist/index.js","files":["README.md","dist"],"scripts":{"docs":"yarn run clean-docs && yarn run build-docs","test":"jest test/ --coverage","build":"babel src -d dist","clean":"rm -rf ./dist","build-docs":"jsdoc src/* -t ./node_modules/ink-docstrap/template --configure jsdoc.conf.json --destination docs --readme README.md","clean-docs":"rm -rf ./docs","prepublish":"yarn run clean && yarn run build","publish-docs":"yarn run docs && gh-pages -d docs","report-coverage":"coveralls < ./coverage/lcov.info"},"_npmUser":{"name":"jarydkrish","email":"jaryd@harvestprofit.com"},"repository":{"url":"https://github.com/HarvestProfit/harvest-profit-calculations","type":"git"},"description":"All the calculations","directories":{},"dependencies":{"lodash":"^4.17.4"},"devDependencies":{"jest":"^22.0.4","jsdoc":"^3.5.5","eslint":"^4.9.0","gh-pages":"^1.1.0","babel-cli":"^6.26.0","babel-core":"^6.0.0","babel-jest":"^22.0.4","babel-eslint":"^8.0.3","ink-docstrap":"^1.3.2","babel-preset-env":"^1.6.1","babel-preset-airbnb":"^2.4.0","eslint-plugin-react":"^7.4.0","babel-preset-stage-2":"^6.24.1","eslint-config-airbnb":"^16.1.0","eslint-plugin-import":"^2.7.0","eslint-plugin-jsx-a11y":"^6.0.2"},"_npmOperationalInternal":{"tmp":"tmp/harvest-profit-calculations-1.1.0.tgz_1514323245378_0.09667486231774092","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"@harvest-profit/harvest-profit-calculations","version":"1.1.1","author":{"name":"Jaryd Krishnan","email":"jaryd@harvestprofit.com"},"license":"UNLICENSED","_id":"@harvest-profit/harvest-profit-calculations@1.1.1","maintainers":[{"name":"nickhorob","email":"nick@harvestprofit.com"},{"name":"jakehumphrey","email":"jakehumphrey18@gmail.com"},{"name":"jarydkrish","email":"jaryd@harvestprofit.com"}],"dist":{"shasum":"0ccdc3baa3b9f2c08cc2bdb5b77ff6a046b1b505","tarball":"https://registry.npmjs.org/@harvest-profit/harvest-profit-calculations/-/harvest-profit-calculations-1.1.1.tgz","integrity":"sha512-XN85g79v8oP5C1N8gKmtijdEr2ZiuyRTefAgCGNiMF1hEiC1fAwUY3ICJFGAGf2oPlc2mG0sDO6nP4kBqKRxkg==","signatures":[{"sig":"MEUCIFab+ghjc1FcbQjY9//OFbBniWBP2N8u4kjmooBfAt4GAiEA2XByrH3lbKeoF1Feod9KcTq4ByF+Teo0NflU0gvqTXk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"jest":{"transform":{"^.+\\.jsx?$":"babel-jest"},"collectCoverageFrom":["src/**/!(index).{js,jsx}"]},"main":"dist/index.js","files":["README.md","dist"],"scripts":{"docs":"yarn run clean-docs && yarn run build-docs","test":"jest test/ --coverage","build":"babel src -d dist","clean":"rm -rf ./dist","build-docs":"jsdoc src/* -t ./node_modules/ink-docstrap/template --configure jsdoc.conf.json --destination docs --readme README.md","clean-docs":"rm -rf ./docs","prepublish":"yarn run clean && yarn run build","publish-docs":"yarn run docs && gh-pages -d docs","report-coverage":"coveralls < ./coverage/lcov.info"},"_npmUser":{"name":"jarydkrish","email":"jaryd@harvestprofit.com"},"repository":{"url":"https://github.com/HarvestProfit/harvest-profit-calculations","type":"git"},"description":"All the calculations","directories":{},"dependencies":{"lodash":"^4.17.4"},"devDependencies":{"jest":"^22.0.4","jsdoc":"^3.5.5","eslint":"^4.9.0","gh-pages":"^1.1.0","babel-cli":"^6.26.0","babel-core":"^6.0.0","babel-jest":"^22.0.4","babel-eslint":"^8.0.3","ink-docstrap":"^1.3.2","babel-preset-env":"^1.6.1","babel-preset-airbnb":"^2.4.0","eslint-plugin-react":"^7.4.0","babel-preset-stage-2":"^6.24.1","eslint-config-airbnb":"^16.1.0","eslint-plugin-import":"^2.7.0","eslint-plugin-jsx-a11y":"^6.0.2"},"_npmOperationalInternal":{"tmp":"tmp/harvest-profit-calculations-1.1.1.tgz_1514341904729_0.6732468954287469","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"@harvest-profit/harvest-profit-calculations","version":"1.2.0","author":{"name":"Jaryd Krishnan","email":"jaryd@harvestprofit.com"},"license":"UNLICENSED","_id":"@harvest-profit/harvest-profit-calculations@1.2.0","maintainers":[{"name":"nickhorob","email":"nick@harvestprofit.com"},{"name":"jakehumphrey","email":"jakehumphrey18@gmail.com"},{"name":"jarydkrish","email":"jaryd@harvestprofit.com"}],"contributors":[{"name":"Jake Humphrey"}],"homepage":"https://github.com/HarvestProfit/harvest-profit-calculations#readme","bugs":{"url":"https://github.com/HarvestProfit/harvest-profit-calculations/issues"},"dist":{"shasum":"a0ecee06b8a2d68873b1e302a5ba815d626e20b9","tarball":"https://registry.npmjs.org/@harvest-profit/harvest-profit-calculations/-/harvest-profit-calculations-1.2.0.tgz","integrity":"sha512-/P8DEdUsA679JCOHODUYy7c5znax2p4Qv/HKNNnP1sidbpTwxjXsn/tdLMNtGETi0tAdGmcI6aII4V5yctFmVQ==","signatures":[{"sig":"MEYCIQCtv1nl2mfc+CL6XgtCDFfJTilQr11O80EeTCXtc1FabAIhAP/B1VqE98VmZG/lBZYiv5yfvVhk1BmlmD4HcPL3AvqI","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"jest":{"transform":{"^.+\\.jsx?$":"babel-jest"},"collectCoverageFrom":["src/**/!(index).{js,jsx}"]},"main":"dist/index.js","files":["README.md","dist"],"gitHead":"171793a35a51a57228eb0c3c565ab1561a72f577","scripts":{"docs":"yarn run clean-docs && yarn run build-docs","test":"jest test/ --coverage","build":"babel src -d dist","clean":"rm -rf ./dist","build-docs":"jsdoc src/* -t ./node_modules/ink-docstrap/template --configure jsdoc.conf.json --destination docs --readme README.md","clean-docs":"rm -rf ./docs","prepublish":"yarn run clean && yarn run build","publish-docs":"yarn run docs && gh-pages -d docs","report-coverage":"coveralls < ./coverage/lcov.info"},"_npmUser":{"name":"jakehumphrey","email":"jakehumphrey18@gmail.com"},"repository":{"url":"git+https://github.com/HarvestProfit/harvest-profit-calculations.git","type":"git"},"_npmVersion":"5.4.2","description":"All the calculations","directories":{},"_nodeVersion":"8.7.0","dependencies":{"lodash":"^4.17.4"},"devDependencies":{"jest":"^22.0.4","jsdoc":"^3.5.5","eslint":"^4.9.0","gh-pages":"^1.1.0","babel-cli":"^6.26.0","babel-core":"^6.0.0","babel-jest":"^22.0.4","babel-eslint":"^8.0.3","ink-docstrap":"^1.3.2","babel-preset-env":"^1.6.1","babel-preset-airbnb":"^2.4.0","eslint-plugin-react":"^7.4.0","babel-preset-stage-2":"^6.24.1","eslint-config-airbnb":"^16.1.0","eslint-plugin-import":"^2.7.0","eslint-plugin-jsx-a11y":"^6.0.2"},"_npmOperationalInternal":{"tmp":"tmp/harvest-profit-calculations-1.2.0.tgz_1515023490941_0.8942289792466909","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"@harvest-profit/harvest-profit-calculations","version":"1.2.1","author":{"name":"Jaryd Krishnan","email":"jaryd@harvestprofit.com"},"license":"UNLICENSED","_id":"@harvest-profit/harvest-profit-calculations@1.2.1","maintainers":[{"name":"nickhorob","email":"nick@harvestprofit.com"},{"name":"jakehumphrey","email":"jakehumphrey18@gmail.com"},{"name":"jarydkrish","email":"jaryd@harvestprofit.com"}],"contributors":[{"name":"Jake Humphrey"}],"homepage":"https://github.com/HarvestProfit/harvest-profit-calculations#readme","bugs":{"url":"https://github.com/HarvestProfit/harvest-profit-calculations/issues"},"dist":{"shasum":"da5b3e26fb3f894c1b7a22e63d565259818874ca","tarball":"https://registry.npmjs.org/@harvest-profit/harvest-profit-calculations/-/harvest-profit-calculations-1.2.1.tgz","integrity":"sha512-iRGQ3Qdz8N0ntpSXgzsxYAWdwjzS3qDk4AnzsT2ddmLhoNqkHf7kUerFDsjBd8J6Cfz8D2Qot14b0z3mrXYnMA==","signatures":[{"sig":"MEYCIQC3OQfR3X8p1wMqW0UUw5XWV5Ijc9NvbhnF4yaucJhQUgIhAKBvIPs/ndhePiqPcMPn9y9Bu78BMZOFZEf1His5zD/Q","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"jest":{"transform":{"^.+\\.jsx?$":"babel-jest"},"collectCoverageFrom":["src/**/!(index).{js,jsx}"]},"main":"dist/index.js","files":["README.md","dist"],"gitHead":"f26a6fa08de17558e3f3051708b16c45cbd28a2e","scripts":{"docs":"yarn run clean-docs && yarn run build-docs","test":"jest test/ --coverage","build":"babel src -d dist","clean":"rm -rf ./dist","build-docs":"jsdoc src/* -t ./node_modules/ink-docstrap/template --configure jsdoc.conf.json --destination docs --readme README.md","clean-docs":"rm -rf ./docs","prepublish":"yarn run clean && yarn run build","publish-docs":"yarn run docs && gh-pages -d docs","report-coverage":"coveralls < ./coverage/lcov.info"},"_npmUser":{"name":"jakehumphrey","email":"jakehumphrey18@gmail.com"},"repository":{"url":"git+https://github.com/HarvestProfit/harvest-profit-calculations.git","type":"git"},"_npmVersion":"5.4.2","description":"All the calculations","directories":{},"_nodeVersion":"8.7.0","dependencies":{"lodash":"^4.17.4"},"devDependencies":{"jest":"^22.0.4","jsdoc":"^3.5.5","eslint":"^4.9.0","gh-pages":"^1.1.0","babel-cli":"^6.26.0","babel-core":"^6.0.0","babel-jest":"^22.0.4","babel-eslint":"^8.0.3","ink-docstrap":"^1.3.2","babel-preset-env":"^1.6.1","babel-preset-airbnb":"^2.4.0","eslint-plugin-react":"^7.4.0","babel-preset-stage-2":"^6.24.1","eslint-config-airbnb":"^16.1.0","eslint-plugin-import":"^2.7.0","eslint-plugin-jsx-a11y":"^6.0.2"},"_npmOperationalInternal":{"tmp":"tmp/harvest-profit-calculations-1.2.1.tgz_1515027625398_0.0466988836415112","host":"s3://npm-registry-packages"}},"1.2.2":{"name":"@harvest-profit/harvest-profit-calculations","version":"1.2.2","author":{"name":"Jaryd Krishnan","email":"jaryd@harvestprofit.com"},"license":"UNLICENSED","_id":"@harvest-profit/harvest-profit-calculations@1.2.2","maintainers":[{"name":"nickhorob","email":"nick@harvestprofit.com"},{"name":"jakehumphrey","email":"jakehumphrey18@gmail.com"},{"name":"jarydkrish","email":"jaryd@harvestprofit.com"}],"contributors":[{"name":"Jake Humphrey"}],"dist":{"shasum":"c8bc96dfd2658675d4dd3fb4b2fd590c2e4f8908","tarball":"https://registry.npmjs.org/@harvest-profit/harvest-profit-calculations/-/harvest-profit-calculations-1.2.2.tgz","integrity":"sha512-KUOzQMdfJf6W4S3xksm2Iu6RVdu8hQQfSyIpf4wrEjCbG2Tn52wKZd39ekOc4Qh3tRN9DQ9l5ZbRU20jIHZc8Q==","signatures":[{"sig":"MEYCIQCCcw0VBZdaBU3XxeDWrnBb14NGc5TlTImMFJ/nYSxppgIhAMKlTjHnY5wdl/HndlxXstXDyraK9wKgxHF3+KCciQny","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"jest":{"transform":{"^.+\\.jsx?$":"babel-jest"},"collectCoverageFrom":["src/**/!(index).{js,jsx}"]},"main":"dist/index.js","files":["README.md","dist"],"scripts":{"docs":"yarn run clean-docs && yarn run build-docs","test":"jest test/ --coverage","build":"babel src -d dist","clean":"rm -rf ./dist","build-docs":"jsdoc src/* -t ./node_modules/ink-docstrap/template --configure jsdoc.conf.json --destination docs --readme README.md","clean-docs":"rm -rf ./docs","prepublish":"yarn run clean && yarn run build","publish-docs":"yarn run docs && gh-pages -d docs","report-coverage":"coveralls < ./coverage/lcov.info"},"_npmUser":{"name":"jakehumphrey","email":"jakehumphrey18@gmail.com"},"repository":{"url":"https://github.com/HarvestProfit/harvest-profit-calculations","type":"git"},"description":"All the calculations","directories":{},"dependencies":{"lodash":"^4.17.4"},"devDependencies":{"jest":"^22.0.4","jsdoc":"^3.5.5","eslint":"^4.9.0","gh-pages":"^1.1.0","babel-cli":"^6.26.0","babel-core":"^6.0.0","babel-jest":"^22.0.4","babel-eslint":"^8.0.3","ink-docstrap":"^1.3.2","babel-preset-env":"^1.6.1","babel-preset-airbnb":"^2.4.0","eslint-plugin-react":"^7.4.0","babel-preset-stage-2":"^6.24.1","eslint-config-airbnb":"^16.1.0","eslint-plugin-import":"^2.7.0","eslint-plugin-jsx-a11y":"^6.0.2"},"_npmOperationalInternal":{"tmp":"tmp/harvest-profit-calculations-1.2.2.tgz_1516405694827_0.49816463445313275","host":"s3://npm-registry-packages"}},"1.2.3":{"name":"@harvest-profit/harvest-profit-calculations","version":"1.2.3","author":{"name":"Jaryd Krishnan","email":"jaryd@harvestprofit.com"},"license":"UNLICENSED","_id":"@harvest-profit/harvest-profit-calculations@1.2.3","maintainers":[{"name":"dillonjbrown","email":"dillon@harvestprofit.com"},{"name":"jakehumphrey","email":"jakehumphrey18@gmail.com"},{"name":"jarydkrish","email":"jaryd@harvestprofit.com"},{"name":"nickhorob","email":"nick@harvestprofit.com"}],"contributors":[{"name":"Jake Humphrey"}],"homepage":"https://github.com/HarvestProfit/harvest-profit-calculations#readme","bugs":{"url":"https://github.com/HarvestProfit/harvest-profit-calculations/issues"},"dist":{"shasum":"bd930eefd6336cf83ffc38e372842ca7f4daa2a3","tarball":"https://registry.npmjs.org/@harvest-profit/harvest-profit-calculations/-/harvest-profit-calculations-1.2.3.tgz","fileCount":10,"integrity":"sha512-qYXnqLbIOUo5ySpnZdFvpXW5T8YbdImBpIErI65Xa/D1mFx8j9NCXjv8hw9+pWGfiKe9AyZToaxtTH2epENx2g==","signatures":[{"sig":"MEUCIApRNpUMkPs3sPYkfI0dfXrglIU1A29HL+Dc07xQgXACAiEAqOMHesRLkLxxaGrutztjqgxSGCFgmfacCL5SfM40bzw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24233},"jest":{"transform":{"^.+\\.jsx?$":"babel-jest"},"collectCoverageFrom":["src/**/!(index).{js,jsx}"]},"main":"dist/index.js","files":["README.md","dist"],"gitHead":"5c7025c6b7a1533bf3d820d8f6bd678f5b2bc712","scripts":{"docs":"yarn run clean-docs && yarn run build-docs","test":"jest test/ --coverage","build":"babel src -d dist","clean":"rm -rf ./dist","build-docs":"jsdoc src/* -t ./node_modules/ink-docstrap/template --configure jsdoc.conf.json --destination docs --readme README.md","clean-docs":"rm -rf ./docs","prepublish":"yarn run clean && yarn run build","publish-docs":"yarn run docs && gh-pages -d docs","report-coverage":"coveralls < ./coverage/lcov.info"},"_npmUser":{"name":"jakehumphrey","email":"jakehumphrey18@gmail.com"},"repository":{"url":"git+https://github.com/HarvestProfit/harvest-profit-calculations.git","type":"git"},"_npmVersion":"5.4.2","description":"All the calculations","directories":{},"_nodeVersion":"8.7.0","dependencies":{"lodash":"^4.17.4"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^22.0.4","jsdoc":"^3.5.5","eslint":"^4.9.0","gh-pages":"^1.1.0","babel-cli":"^6.26.0","babel-core":"^6.0.0","babel-jest":"^22.0.4","babel-eslint":"^8.0.3","ink-docstrap":"^1.3.2","babel-preset-env":"^1.6.1","babel-preset-airbnb":"^2.4.0","eslint-plugin-react":"^7.4.0","babel-preset-stage-2":"^6.24.1","eslint-config-airbnb":"^16.1.0","eslint-plugin-import":"^2.7.0","eslint-plugin-jsx-a11y":"^6.0.2"},"_npmOperationalInternal":{"tmp":"tmp/harvest-profit-calculations_1.2.3_1520121766688_0.662719994603197","host":"s3://npm-registry-packages"}}},"time":{"created":"2017-12-22T23:45:19.749Z","modified":"2025-10-28T17:44:36.291Z","1.0.0":"2017-12-22T23:45:19.749Z","1.1.0":"2017-12-26T21:20:46.464Z","1.1.1":"2017-12-27T02:31:45.547Z","1.2.0":"2018-01-03T23:51:31.851Z","1.2.1":"2018-01-04T01:00:27.161Z","1.2.2":"2018-01-19T23:48:15.796Z","1.2.3":"2018-03-04T00:02:47.270Z"},"bugs":{"url":"https://github.com/HarvestProfit/harvest-profit-calculations/issues"},"author":{"name":"Jaryd Krishnan","email":"jaryd@harvestprofit.com"},"license":"UNLICENSED","homepage":"https://github.com/HarvestProfit/harvest-profit-calculations#readme","repository":{"url":"git+https://github.com/HarvestProfit/harvest-profit-calculations.git","type":"git"},"description":"All the calculations","contributors":[{"name":"Jake Humphrey"}],"maintainers":[{"email":"cody@harvestprofit.com","name":"codster0073"},{"email":"jakehumphrey18@gmail.com","name":"jakehumphrey"}],"readme":"<div style=\"text-align: center\">\n  <img src=\"https://www.harvestprofit.com/logo.png\" alt=\"Harvest Profit\"></img>\n</div>\n\n## Installation\n\nYou will need an [NPM access token](https://docs.npmjs.com/private-modules/intro) to access this repo.\n\nSimply run the following to install:\n```bash\nyarn add @harvest-profit/harvest-profit-calculations\n```\n\n## Usage\n\nTo use this package, just give it a try!\n```javascript\nimport { Contract } from '@harvest-profit/harvest-profit-calculations';\n\nconst contractUrl = Contract.translateContractTypeToUrl(Contract.hedgeToArriveType);\nconsole.log(contractUrl); // Outputs: `hedge_to_arrive`\n```\n\n## Additional Notes\nThis package is meant to standardize and document all the calculations used in the Harvest Profit App.  The `Calculations` module is a good example of that.  That module contains very simple functions like `calculateAvgCashPrice` which simply divides revenue by sold production, but each function documents on how to get that number which is important.  If you are new to the project, that would be a good place to start reading some documentation.  \n\nAs for standardizing, the `Contract` module is a good example of that.  You should NEVER be checking what type the contract is, or setting the contract type without using the module defined types.  Example:\n\n```javascript\n// Example of BAD\nif (contract.type_name === 'cashsale') {\n   // ... do something\n }\n```\n\n```javascript\n// Example of GOOD\nif (contract.type_name === Contract.cashSaleType) {\n   // ... do something\n }\n```\nOr better yet...\n```javascript\n// Example of GOOD\nif (Contract.isCashSaleType(contract.type_name)) {\n   // ... do something\n }\n```\n\n## Development\n[Clone](https://help.github.com/articles/cloning-a-repository/) this repo, and begin committing changes. PRs are preferred over committing directly to master.\n\nTo run tests locally on your machine, run the following:\n```bash\nyarn run test\n```\n\nTo preview documentation locally on your machine, run the following:\n```bash\nyarn run build-docs\n```\n\nAfter merging your pull request, consider updating the documentation with the following command:\n```bash\nyarn run publish-docs\n```\n\n## Publishing\nThis package is published as a Private NPM Module.\n\nTo publish to the private NPM registry, simply run the following, after bumping the `package.json` version:\n```bash\n# Publish using Yarn\nyarn publish\n\n# Or publish using NPM\nnpm publish\n```\n\n## License\n\nCopyright 2017-Present Harvest Profit.\nThis repo contains private code. No copying or external use permitted.\n","readmeFilename":"README.md"}