{"id":17749316,"url":"https://github.com/ryanatkn/belt","last_synced_at":"2025-05-13T01:07:05.701Z","repository":{"id":63048638,"uuid":"564577728","full_name":"ryanatkn/belt","owner":"ryanatkn","description":"utility belt for JS 🦕 ancient not extinct","archived":false,"fork":false,"pushed_at":"2025-03-04T21:35:49.000Z","size":1141,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-21T20:47:50.302Z","etag":null,"topics":["js","typescript","web"],"latest_commit_sha":null,"homepage":"https://belt.ryanatkn.com/","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/ryanatkn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"ryanatkn","patreon":"ryanatkn"}},"created_at":"2022-11-11T02:22:42.000Z","updated_at":"2025-03-04T21:35:48.000Z","dependencies_parsed_at":"2024-04-23T03:02:31.255Z","dependency_job_id":"2b12adc6-4051-4ec4-9578-76ab4814e9b1","html_url":"https://github.com/ryanatkn/belt","commit_stats":{"total_commits":348,"total_committers":1,"mean_commits":348.0,"dds":0.0,"last_synced_commit":"183831be16437ca25a6ea64a0028a16267838bbe"},"previous_names":["grogarden/util","feltjs/util","ryanatkn/util"],"tags_count":90,"template":false,"template_full_name":"ryanatkn/fuz_template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanatkn%2Fbelt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanatkn%2Fbelt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanatkn%2Fbelt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanatkn%2Fbelt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanatkn","download_url":"https://codeload.github.com/ryanatkn/belt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246588982,"owners_count":20801562,"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":["js","typescript","web"],"created_at":"2024-10-26T11:22:46.020Z","updated_at":"2025-05-13T01:07:05.679Z","avatar_url":"https://github.com/ryanatkn.png","language":"TypeScript","funding_links":["https://github.com/sponsors/ryanatkn","https://patreon.com/ryanatkn"],"categories":[],"sub_categories":[],"readme":"# @ryanatkn/belt\n\n[\u003cimg src=\"static/logo.svg\" alt=\"a green sauropod wearing a brown utility belt\" align=\"right\" width=\"256\" height=\"256\"\u003e](https://belt.ryanatkn.com/)\n\n\u003e utility belt for JS 🦕 ancient not extinct\n\n**[belt.ryanatkn.com](https://belt.ryanatkn.com)**\n\ndesign:\n\n- kitchen-sink utilities library - sorry, I wish it weren't so, JS made me do it\n- one optional runtime dependency on `esm-env`, one optional type dependency on `@types/node`\n- mix of JS module environments - browser-only, Node-only, universal\n- mostly small pure functions\n- all TypeScript, for styles and Svelte and SvelteKit\n  see \u003ca href=\"https://github.com/fuz-dev/fuz\"\u003e@ryanatkn/fuz\u003c/a\u003e\n- complements the modern web platform, drops legacy quickly\n- kinda minimal in many ways but also not, treeshakes well\n\n## usage\n\nInstall from [npm](https://www.npmjs.com/package/@ryanatkn/belt):\n\n```bash\nnpm i -D @ryanatkn/belt\n```\n\nImport modules at their full paths:\n\n```ts\nimport {type Result, unwrap} from '@ryanatkn/belt/result.js';\nimport {random_int} from '@ryanatkn/belt/random.js';\n```\n\nDocs are a work in progress -\nsee the available modules at [belt.ryanatkn.com](https://belt.ryanatkn.com) and\n[/src/routes/package.ts](https://github.com/ryanatkn/belt/blob/main/src/routes/package.ts),\nI recommend reading the source code for now when the doc comments and types are insufficient.\n\n## build\n\n```bash\nnpm run build\n# or\ngro build\n```\n\n## test\n\nFor more see [`uvu`](https://github.com/lukeed/uvu)\nand [Gro's test docs](https://github.com/feltjs/gro/blob/main/src/docs/test.md).\n\n```bash\ngro test\ngro test filepattern1 filepatternB\ngro test -- uvu --forwarded_args 'to uvu'\n```\n\n## deploy\n\n[Deploy](https://github.com/feltjs/gro/blob/main/src/docs/deploy.md)\n(build, commit, and push) to the `deploy` branch, e.g. for GitHub Pages:\n\n```bash\nnpm run deploy\n# or\ngro deploy\n```\n\n## credits 🐢\u003csub\u003e🐢\u003c/sub\u003e\u003csub\u003e\u003csub\u003e🐢\u003c/sub\u003e\u003c/sub\u003e\n\nMy sister Lisa helped me with the logo -\n[instagram.com/lisaeatkinson](https://www.instagram.com/lisaeatkinson/) -\nshe's a designer and currently looking for work\n\n## license [🐦](https://wikipedia.org/wiki/Free_and_open-source_software)\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanatkn%2Fbelt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanatkn%2Fbelt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanatkn%2Fbelt/lists"}