{"id":29287504,"url":"https://github.com/carbonicsoda/ts-errno","last_synced_at":"2025-07-06T01:40:45.143Z","repository":{"id":297902158,"uuid":"998197565","full_name":"CarbonicSoda/ts-errno","owner":"CarbonicSoda","description":"TypeScript Symbolic Errors for ERRNO","archived":false,"fork":false,"pushed_at":"2025-06-08T07:42:51.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-08T08:25:05.320Z","etag":null,"topics":["constants","errno","errors","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/ts-errno","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/CarbonicSoda.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,"zenodo":null}},"created_at":"2025-06-08T04:33:42.000Z","updated_at":"2025-06-08T07:42:53.000Z","dependencies_parsed_at":"2025-06-08T08:35:19.450Z","dependency_job_id":null,"html_url":"https://github.com/CarbonicSoda/ts-errno","commit_stats":null,"previous_names":["carbonicsoda/ts-errno"],"tags_count":0,"template":false,"template_full_name":"CarbonicSoda/carbonsoda.package-template","purl":"pkg:github/CarbonicSoda/ts-errno","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarbonicSoda%2Fts-errno","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarbonicSoda%2Fts-errno/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarbonicSoda%2Fts-errno/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarbonicSoda%2Fts-errno/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CarbonicSoda","download_url":"https://codeload.github.com/CarbonicSoda/ts-errno/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarbonicSoda%2Fts-errno/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263837080,"owners_count":23517922,"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":["constants","errno","errors","typescript"],"created_at":"2025-07-06T01:40:44.354Z","updated_at":"2025-07-06T01:40:45.134Z","avatar_url":"https://github.com/CarbonicSoda.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Usage\n\nThis package is for ERRNO symbolic constants and error throwing, with full\ntyping support.\n\nList of ERRNO is based off\n[LibUV/Errors](https://docs.libuv.org/en/stable/errors.html) (adopted by\nNode.js). Corresponding number codes are not included, as they are not\ncross-platform consistent.\n\nInstall this package in your project:\n\n```bash\n# via npm\nnpm add ts-errno\n\n# or pnpm\npnpm add ts-errno\n\n# or yarn\nyarn add ts-errno\n```\n\nNow errors could be thrown easily:\n\n```ts\n// demo.ts\nimport { err } from \"ts-errno\";\n\n// throw with additional message\nif (!exist(file)) {\n    throw err(\"ENOENT\")`${file} not found.`;\n}\n\n// throw with additional details\ntry {\n    open(file);\n} catch (e) {\n    throw err(\"ENOENT\", e)`${file} not found.`;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarbonicsoda%2Fts-errno","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarbonicsoda%2Fts-errno","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarbonicsoda%2Fts-errno/lists"}