{"id":13508074,"url":"https://github.com/jlord/sheetsee-core","last_synced_at":"2025-08-19T23:08:58.367Z","repository":{"id":12543179,"uuid":"15213263","full_name":"jlord/sheetsee-core","owner":"jlord","description":"Module with core data manipulation functions for sheetsee.js","archived":false,"fork":false,"pushed_at":"2017-03-29T18:28:30.000Z","size":20,"stargazers_count":15,"open_issues_count":15,"forks_count":13,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-22T12:52:54.893Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jlord.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":"2013-12-15T23:56:12.000Z","updated_at":"2024-11-23T14:14:53.000Z","dependencies_parsed_at":"2022-09-26T18:31:51.965Z","dependency_job_id":null,"html_url":"https://github.com/jlord/sheetsee-core","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jlord/sheetsee-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlord%2Fsheetsee-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlord%2Fsheetsee-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlord%2Fsheetsee-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlord%2Fsheetsee-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jlord","download_url":"https://codeload.github.com/jlord/sheetsee-core/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlord%2Fsheetsee-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271236280,"owners_count":24723978,"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","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-08-01T02:00:47.540Z","updated_at":"2025-08-19T23:08:58.327Z","avatar_url":"https://github.com/jlord.png","language":"JavaScript","funding_links":[],"categories":["modules for working with excel/google spreadsheets:"],"sub_categories":[],"readme":"[![Standard - JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n\n# sheetsee-core\n\nThis module is included in every Sheetsee build. It contains methods for basic data manipulation you might want to do.\n\n## Working With Your Data\n\nSheetsee pairs with [Tabletop.js](https://github.com/jsoma/tabletop) which will fetch the data from your spreadsheet and return it as an _array of objects_. You'll use these methods from Sheetsee after you have that data.\n\n## Methods\n\nHere are the functions you can use!\n\n### `Sheetsee.getKeywordCount(data, keyword)`\n\n- `data` _array of objects_\n- `keyword` _string_\n- Returns _number_\n\nGiven your **data** and **keyword** to search by, this function returns the number of times it occurs throughout all of the data.\n\n```javascript\ngetGroupCount(data, 'cat')\n// returns a number\n```\n\n### `Sheetsee.getKeyword(data, keyword)`\n\n- `data` _array of objects_\n- `keyword` _string_\n- Returns _number_\n\nGiven your **data** and a **keyword** to search by, this function returns every row which contains a match to the keyword.\n\n```javascript\ngetKeyword(data, 'cat')\n// returns array of objects\n```\n\n### `Sheetsee.getColumnTotal(data, column)`\n\n- `data` _array of objects_\n- `column` _string_\n- Returns _number_\n\n_Use only with columns of numbers_\n\nGiven your **data**  and **column** header, this function sums each cell in that column and returns the value.\n\n```javascript\ngetColumnTotal(data, 'cuddlability')\n// returns number\n```\n\n### `Sheetsee.getColumnAverage(data, column)`\n\n- `data` _array of objects_\n- `column` _string_\n- Returns _number_\n\nGiven your **data**  and **column** header, this function returns the average value of every cell in the column.\n\n```javascript\ngetColumnAverage(data, 'cuddlability')\n// returns number\n```\n\n### `Sheetsee.getMin(data, column)`\n\n- `data` _array of objects_\n- `column` _string_\n- Returns _array_\n\nGiven your **data**  and **column** header, this function returns an array of the rows with the lowest values within the specified column.\n\n```javascript\ngetMin(data, 'cuddlability')\n// returns array\n```\n\n### `Sheetsee.getMax(data, column)`\n\n- `data` _array of objects_\n- `column` _string_\n- Returns _array_\n\nGiven your **data**  and **column** header, this function returns an array of the rows with the highest values within the specified column.\n\n```javascript\ngetMin(data, 'cuddlability')\n// returns array of objects\n```\n\n### `Sheetsee.getMatches(data, filter, column)`\n\n- `data` _array of objects_\n- `filter` _string_\n- `column` _string_\n- Returns _array_\n\nTakes **data**, a **filter** term to search by within a **column** and returns every row that matches,\n\n```javascript\ngetMatches(data, 'dog', 'kind')\n// returns array of objects\n// [{'name': 'coco', 'kind': 'dog'...}, {'name': 'wolfgang', 'kind': 'dog'...},{'name': 'cooc', 'kind': 'dog'...} ]\n```\n\n### `Sheetsee.getOccurance(data, column)`\n\n- `data` _array of objects_\n- `column` _string_\n- Returns _object_\n\nTakes **data** **column** header and returns an object with key/value pairs of how often an item occurs in the column.\n\n```JAVASCRIPT\ngetOccurance(data, 'kind')\n// Returns an object\n// {'dog': 3, 'cat': 3}\n```\n\n### Math\n\nDon't Forget JavaScript Math! Create variables that are the sums, differences, multiples and so forth of others. Lots of info on that [here on MDN](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math).\n\n```javascript\nvar profit09 = Sheetsee.getColumnTotal(data, '2009')\nvar profit10 = Sheetsee.getColumnTotal(data, '2010')\nvar difference = profit09 - profit10\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlord%2Fsheetsee-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjlord%2Fsheetsee-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlord%2Fsheetsee-core/lists"}