{"id":22001447,"url":"https://github.com/alshdavid/kit","last_synced_at":"2025-03-23T05:27:12.843Z","repository":{"id":164664145,"uuid":"640100470","full_name":"alshdavid/kit","owner":"alshdavid","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-15T03:13:11.000Z","size":279,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-15T03:23:54.583Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/alshdavid.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-13T02:06:38.000Z","updated_at":"2025-02-15T03:13:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"3fb3db56-4b41-41f7-9726-c068ffd3bd77","html_url":"https://github.com/alshdavid/kit","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alshdavid%2Fkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alshdavid%2Fkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alshdavid%2Fkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alshdavid%2Fkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alshdavid","download_url":"https://codeload.github.com/alshdavid/kit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245061384,"owners_count":20554563,"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":"2024-11-29T23:13:52.218Z","updated_at":"2025-03-23T05:27:12.838Z","avatar_url":"https://github.com/alshdavid.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JavaScript Kit Utils\n\n```\nnpm install @alshdavid/kit\n```\n\n```typescript\nimport { sha256 } from '@alshdavid/kit/crypto'\n\nvoid (async function main() {\n  const foo = await sha256('foo')\n})()\n```\n\nFrom the browser\n\n```javascript\nconst kit = await import(\n  'https://cdn.jsdelivr.net/npm/@alshdavid/kit@latest/browser/esm/index.js'\n)\n\nawait kit.localStorage.setItem('foo', 'bar')\nkit.log(await alshx.localStorage.getItem('foo'))\n\n// Also automatically added to globalThis\nawait alshx.localStorage.setItem('foo', 'bar')\nconsole.log(await alshx.localStorage.getItem('foo'))\n```\n\n```html\n\u003cscript type=\"importmap\"\u003e\n{\n  \"imports\": {\n    \"@alshx/kit/\": \"https://cdn.jsdelivr.net/npm/@alshdavid/kit@latest/browser/esm/\"\n  }\n}\n\u003c/script\u003e\n\n\u003cscript type=\"module\"\u003e\n  import * as preact from '@alshx/kit/preact.js'\n  console.log(preact)\n\u003c/script\u003e\n\n\u003cscript type=\"module\"\u003e\n  import * as kit from '@alshx/kit/index.js'\n  console.log(kit)\n\u003c/script\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falshdavid%2Fkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falshdavid%2Fkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falshdavid%2Fkit/lists"}