{"id":23045424,"url":"https://github.com/mykeels/farm-invest-cli","last_synced_at":"2025-10-20T09:25:54.486Z","repository":{"id":44220423,"uuid":"167958394","full_name":"mykeels/farm-invest-cli","owner":"mykeels","description":"A CLI tool, built to detect updates to the products on eFarms, FarmCrowdy, ThriveAgric and AgroPartnerships","archived":false,"fork":false,"pushed_at":"2022-02-11T00:34:22.000Z","size":70,"stargazers_count":18,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-16T04:28:13.902Z","etag":null,"topics":["cli","efarms","farm","farm-crowdy","investment","node","thrive-agric"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mykeels.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-28T12:25:55.000Z","updated_at":"2024-04-16T04:28:13.902Z","dependencies_parsed_at":"2022-09-05T02:20:38.643Z","dependency_job_id":null,"html_url":"https://github.com/mykeels/farm-invest-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mykeels%2Ffarm-invest-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mykeels%2Ffarm-invest-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mykeels%2Ffarm-invest-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mykeels%2Ffarm-invest-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mykeels","download_url":"https://codeload.github.com/mykeels/farm-invest-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229875639,"owners_count":18137869,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","efarms","farm","farm-crowdy","investment","node","thrive-agric"],"created_at":"2024-12-15T21:20:33.030Z","updated_at":"2025-10-20T09:25:49.436Z","avatar_url":"https://github.com/mykeels.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Farm Invest CLI\n\nA CLI tool, built to detect updates to the products on:\n\n- [AgroPartnerships](https://agropartnerships.co)\n- [EFarms](https://www.efarms.com.ng)\n- [ThriveAgric](https://www.thriveagric.com)\n- [FarmCrowdy](https://www.farmcrowdy.com)\n\n## Installation\n\nwith npm\n\n```sh\nnpm i -g farm-invest-cli\n```\n\nwith yarn\n\n```sh\nyarn add global farm-invest-cli\n```\n\nfor developers\n\n```sh\ngit clone https://github.com/mykeels/farm-invest-cli\ncd farm-invest-cli\nnpm install\nnpm link\n```\n\n## Usage as a CLI tool\n\n```sh\nfarm-invest-cli\nfarm-invest-cli agro # only agro-partnerships\nfarm-invest-cli efarms # only efarms\nfarm-invest-cli farm-crowdy # only farm-crowdy\nfarm-invest-cli thrive-agric # only thrive-agric\n```\n\nYou'll get an output like:\n\n![farm-invest-cli output](https://user-images.githubusercontent.com/11996508/51835933-238da100-22ff-11e9-8dfc-1086b0db4d52.png)\n\nWhere the green text shows new products, and text is only shown when there is a difference between the products currently existing and the last time it checked.\n\n## Usage in Node environment\n\n```js\nconst { syncAll, syncAgro, syncEFarms, syncFarmCrowdy, syncThriveAgric } = require('farm-invest-cli')\n\nsyncAll().then(diff =\u003e {\n    console.log(diff) // an array of (array | fast-array-diff) objects for all sources\n})\n\nsyncAgro().then(diff =\u003e {\n    console.log(diff) // an (array | fast-array-diff) object for Agro-Partnerships\n})\n\nsyncEFarms().then(diff =\u003e {\n    console.log(diff) // an (array | fast-array-diff) object for eFarms\n})\n\nsyncFarmCrowdy().then(diff =\u003e {\n    console.log(diff) // an (array | fast-array-diff) object for Farm-Crowdy\n})\n\nsyncThriveAgric().then(diff =\u003e {\n    console.log(diff) // an (array | fast-array-diff) object for Thrive-Agric\n})\n```\n\nNB: A fast-array-diff object looks like:\n\n```js\n{\n   removed:[\n       { title: 'Foo', link: 'Bar' },\n       { title: 'Bar', link: 'Foo' }\n   ],\n   added: [ { title: 'Baz', link: 'Foo' } ]\n}\n```\n\n```js\nconst { getAgro, getEFarms, getFarmCrowdy, getThriveAgric } = require('farm-invest-cli')\n\ngetAgro().then(productList =\u003e {\n    console.log(productList) // an array of active products on Agro-Partnerships\n})\n\ngetEFarms().then(productList =\u003e {\n    console.log(productList) // an array of active products on eFarms\n})\n\ngetFarmCrowdy().then(productList =\u003e {\n    console.log(productList) // an array of active products on Farm-Crowdy\n})\n\ngetThriveAgric().then(productList =\u003e {\n    console.log(productList) // an array of active products on Thrive-Agric\n})\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmykeels%2Ffarm-invest-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmykeels%2Ffarm-invest-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmykeels%2Ffarm-invest-cli/lists"}