{"id":26172022,"url":"https://github.com/oktopost/plankton","last_synced_at":"2025-10-28T16:37:00.432Z","repository":{"id":54731115,"uuid":"78328556","full_name":"Oktopost/plankton","owner":"Oktopost","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-17T12:26:58.000Z","size":81,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-03-08T08:17:07.691Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Oktopost.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-08T07:36:40.000Z","updated_at":"2022-06-12T13:45:41.000Z","dependencies_parsed_at":"2022-08-14T01:10:10.311Z","dependency_job_id":null,"html_url":"https://github.com/Oktopost/plankton","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oktopost%2Fplankton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oktopost%2Fplankton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oktopost%2Fplankton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oktopost%2Fplankton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Oktopost","download_url":"https://codeload.github.com/Oktopost/plankton/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243104176,"owners_count":20236943,"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":[],"created_at":"2025-03-11T19:52:58.178Z","updated_at":"2025-10-28T16:36:55.392Z","avatar_url":"https://github.com/Oktopost.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Plankton\n\n[![NPM Version](https://img.shields.io/npm/v/oktopost-plankton.svg)](https://www.npmjs.com/package/oktopost-plankton)\n[![Build Status](https://travis-ci.org/Oktopost/plankton.svg?branch=master)](https://travis-ci.org/Oktopost/plankton)\n[![Coverage Status](https://coveralls.io/repos/github/Oktopost/plankton/badge.svg?branch=master)](https://coveralls.io/github/Oktopost/plankton?branch=master)\n\nAdditional standalone libraries\n \n* [`oktopost-plankton-url`](./docs/plankton/url.md) \n\n## Installation and Usage\n\n```\nnpm install oktopost-plankton --save\n```\n\n* In node\n```js\nconst is = require('oktopost-plankton').is;\nconst obj = require('oktopost-plankton').obj;\nconst foreach = require('oktopost-plankton').foreach;\n\n\nif (is.defined(myArray))\n{\n\tforeach.key(myArray, function (index)\n\t{\n\t\tconsole.log('Got index ' + index);\n\t});\n\t\n\tforeach(myArray, function (value)\n\t{\n\t\tconsole.log('Got value ' + value);\n\t});\n}\n\n\nlet myCollectionKeys = obj.keys(myCollection);\n```\n\n* In web Plankton library is registered under `window.Plankton` and can be used as following:\n\n```js\nvar is = window.Plankton.is;\nvar obj = window.Plankton.obj;\nvar foreach = window.Plankton.foreach;\n\nif (is.defined(myArray))\n{\n\tforeach.key(myArray, function (index)\n\t{\n\t\tconsole.log('Got index ' + index);\n\t});\n\t\n\tforeach(myArray, function (value)\n\t{\n\t\tconsole.log('Got value ' + value);\n\t});\n}\n\nvar myCollectionKeys = obj.keys(myCollection);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktopost%2Fplankton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foktopost%2Fplankton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktopost%2Fplankton/lists"}