{"id":28543285,"url":"https://github.com/klaby/chork","last_synced_at":"2026-04-25T11:33:58.095Z","repository":{"id":40748917,"uuid":"336380679","full_name":"klaby/chork","owner":"klaby","description":"🔬 Minimalistic JS data type checking and serialization utility..","archived":false,"fork":false,"pushed_at":"2023-01-07T23:14:29.000Z","size":670,"stargazers_count":0,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-22T01:12:02.726Z","etag":null,"topics":["minimalist-js-data","nodejs","serializer","typechecker","typeof"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/klaby.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":"2021-02-05T20:24:04.000Z","updated_at":"2021-12-30T11:42:50.000Z","dependencies_parsed_at":"2023-02-08T03:17:17.082Z","dependency_job_id":null,"html_url":"https://github.com/klaby/chork","commit_stats":null,"previous_names":["hiukky/chork"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/klaby/chork","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klaby%2Fchork","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klaby%2Fchork/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klaby%2Fchork/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klaby%2Fchork/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/klaby","download_url":"https://codeload.github.com/klaby/chork/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klaby%2Fchork/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32261116,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["minimalist-js-data","nodejs","serializer","typechecker","typeof"],"created_at":"2025-06-09T21:08:40.723Z","updated_at":"2026-04-25T11:33:58.086Z","avatar_url":"https://github.com/klaby.png","language":"TypeScript","funding_links":["https://www.buymeacoffee.com/hiukky"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg width=\"250\" alt=\"chork logo\" src=\"./assets/chork.svg\"/\u003e\n\u003c/div\u003e\n\n\u003ch3 align=\"center\"\u003e Minimalist JS data type checking utility. \u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003csub\u003eBuilt with ❤︎ by \u003ca href=\"https://hiukky.com\"\u003eHiukky\u003c/a\u003e\n  \u003cbr/\u003e\n\u003c/p\u003e\n\n\u003cbr\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/hiukky/chork/stargazers\"\u003e\n    \u003cimg alt=\"GitHub stars\" src=\"https://img.shields.io/github/stars/hiukky/chork?color=FF7A92\u0026style=for-the-badge\u0026colorA=1F2630\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/hiukky/chork/issues\"\u003e\n    \u003cimg alt=\"GitHub issues\" src=\"https://img.shields.io/github/issues/hiukky/chork?style=for-the-badge\u0026color=FF7A92\u0026colorA=1F2630\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/hiukky/chork/network\"\u003e\n    \u003cimg alt=\"GitHub forks\" src=\"https://img.shields.io/github/forks/hiukky/chork?color=FF7A92\u0026style=for-the-badge\u0026colorA=1F2630\"\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/chork\"\u003e\n   \u003cimg alt=\"npm bundle size\" src=\"https://img.shields.io/bundlephobia/minzip/chork?color=1F2630\u0026style=for-the-badge\u0026colorA=1F2630\u0026label=size\"\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/chork\"\u003e\n    \u003cimg alt=\"NPM\" src=\"https://img.shields.io/npm/dt/chork?color=1F2630\u0026style=for-the-badge\u0026colorA=1F2630\" /\u003e\n    \u003c/a\u003e\n\u003c/div\u003e\n\n# About\n\nChork is a minimal library for checking data types in javascript.\n\nTypeof `typeof` works well, but only for variables of the primitive type and not for structures like Array, Date and others. Chork solves this by bringing the real type of past value.\n\n\u003cbr\u003e\n\n# Installation\n\n### Using NPM\n\n```\nnpm i chork\n```\n\n### Using Yarn\n\n```\nyarn add chork\n```\n\n\u003cbr\u003e\n\n# Use\n\nCurrently, chork has two test functions which are `check` and `checkAll`.\n\n- ### check\n\nIt receives only one argument of any kind.\n\n```ts\nimport { check } from 'chork'\n\ncheck(1) // 'number'\ncheck('foo') // 'string'\ncheck([1, 'foo']) // 'array'\ncheck({ key: 1 }) // 'object'\ncheck(new Date()) // 'date'\n```\n\n- ### checkAll\n\nThe `checkAll` function works in the same way as `check`, the only difference is that it returns an object with a `key` being its own value and a `value` being the result with the type of data tested.\n\n```ts\nimport { check } from 'chork'\n\ncheckAll(1) // { '1': 'number' }\ncheckAll('foo') // { foo: 'string' }\ncheckAll([1, 'foo']) // { '1': 'number', foo: 'string' }\ncheckAll({ key: 1 }) // { key: 'number' }\ncheckAll(new Date()) // { 'Sat Feb 06 2021 12:35:41 GMT-0300 (Brasilia Standard Time)': 'date' }\n```\n\n### Available types\n\n- **string**\n- **number**\n- **bigint**\n- **boolean**\n- **undefined**\n- **symbol**\n- **null**\n- **object**\n- **array**\n- **map**\n- **date**\n- **function**\n\n\u003cbr\u003e\n\n# Contributing\n\nChork is in an initial version without many features yet, but you can feel free to send your suggestion or open a PR.\n\n\u003cbr\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://www.buymeacoffee.com/hiukky\"\u003e\n    \u003cimg width=\"250\" alt=\"buy me a coffee\" src=\"./assets/coffe.svg\"/\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\u003cbr\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/hiukky/chork/blob/master/LICENSE\"\u003e\n    \u003cimg alt=\"GitHub license\" src=\"https://img.shields.io/github/license/hiukky/chork?color=1F2630\u0026style=for-the-badge\u0026colorA=1F2630\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklaby%2Fchork","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fklaby%2Fchork","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklaby%2Fchork/lists"}