{"id":17283699,"url":"https://github.com/prettymuchbryce/nix-errno-codes","last_synced_at":"2025-09-03T08:43:47.398Z","repository":{"id":66163058,"uuid":"220344203","full_name":"prettymuchbryce/nix-errno-codes","owner":"prettymuchbryce","description":"Constants enumerating POSIX/Linux errno.h error codes","archived":false,"fork":false,"pushed_at":"2019-11-08T00:56:26.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-31T16:39:08.800Z","etag":null,"topics":[],"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/prettymuchbryce.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":"2019-11-07T23:01:08.000Z","updated_at":"2019-11-08T00:56:28.000Z","dependencies_parsed_at":"2023-05-22T19:00:30.607Z","dependency_job_id":null,"html_url":"https://github.com/prettymuchbryce/nix-errno-codes","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"da4736d2773db9915116410d8be3c38ec91d9f80"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/prettymuchbryce/nix-errno-codes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prettymuchbryce%2Fnix-errno-codes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prettymuchbryce%2Fnix-errno-codes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prettymuchbryce%2Fnix-errno-codes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prettymuchbryce%2Fnix-errno-codes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prettymuchbryce","download_url":"https://codeload.github.com/prettymuchbryce/nix-errno-codes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prettymuchbryce%2Fnix-errno-codes/sbom","scorecard":{"id":744828,"data":{"date":"2025-08-11","repo":{"name":"github.com/prettymuchbryce/nix-errno-codes","commit":"da4736d2773db9915116410d8be3c38ec91d9f80"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/8 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T18:25:27.183Z","repository_id":66163058,"created_at":"2025-08-22T18:25:27.183Z","updated_at":"2025-08-22T18:25:27.183Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273416461,"owners_count":25101808,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-15T09:51:58.778Z","updated_at":"2025-09-03T08:43:47.371Z","avatar_url":"https://github.com/prettymuchbryce.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nix-errno-codes\n\nConstants enumerating POSIX/Linux [errno.h](http://man7.org/linux/man-pages/man3/errno.3.html) error codes.\n\nCompletely library agnostic. TypeScript-compatible. No dependencies.\n\n## Installation\n\n```console\nnpm install nix-errno-codes --save\n```\n\n## Usage\n\n```javascript\nimport {\n  readdirSync,\n} from 'fs';\n\nimport {\n  CODES,\n  getDescription,\n} from 'nix-errno-codes';\n\ntry {\n  readdirSync('./non-existent-file.txt');\n} catch(error) {\n  if (error.code === CODES.ENOENT) {\n    console.error(getDescription(CODES.ENOENT)); // No such file or directory\n  }\n}\n```\n\n## Codes\n| Code            | Description                                              |\n|-----------------|----------------------------------------------------------|\n| E2BIG           | Argument list too long                                   |\n| ECCES           | Permission denied                                        |\n| EADDRINUSE      | Address already in use                                   |\n| EADDRNOTAVAIL   | Address not available                                    |\n| EAFNOSUPPORT    | Address family not supported                             |\n| EAGAIN          | Resource temporarily unavailable                         |\n| EALREADY        | Connection already in progress                           |\n| EBADE           | Invalid exchange                                         |\n| EBADF           | Bad file descriptor                                      |\n| EBADFD          | File descriptor in bad state                             |\n| EBADMSG         | Bad message                                              |\n| EBADR           | Invalid request descriptor                               |\n| EBADRQC         | Invalid request code                                     |\n| EBADSLT         | Invalid slot                                             |\n| EBUSY           | Device or resource busy                                  |\n| ECANCELED       | Operation canceled                                       |\n| ECHILD          | No child processes                                       |\n| ECHRNG          | Channel number out of range                              |\n| ECOMM           | Communication error on send                              |\n| ECONNABORTED    | Connection aborted                                       |\n| ECONNREFUSED    | Connection refused                                       |\n| ECONNRESET      | Connection reset                                         |\n| EDEADLK         | Resource deadlock avoided                                |\n| EDEADLOCK       | Resource deadlock avoided or File locking deadlock error |\n| EDESTADDRREQ    | Destination address required                             |\n| EDOM            | Mathematics argument out of domain of function           |\n| EDQUOT          | Disk quota exceeded                                      |\n| EEXIST          | File exists                                              |\n| EFAULT          | Bad address                                              |\n| EFBIG           | File too large                                           |\n| EHOSTDOWN       | Host is down                                             |\n| EHOSTUNREACH    | Host is unreachable                                      |\n| EHWPOISON       | Memory page has hardware error                           |\n| EIDRM           | Identifier removed                                       |\n| EILSEQ          | Invalid or incomplete multibyte or wide character        |\n| EINPROGRESS     | Operation in progress                                    |\n| EINTR           | Interrupted function call                                |\n| EINVAL          | Invalid argument                                         |\n| EIO             | Input/output error                                       |\n| EISCONN         | Socket is connected                                      |\n| EISDIR          | Is a directory                                           |\n| EISNAM          | Is a named type file                                     |\n| EKEYEXPIRED     | Key has expired                                          |\n| EKEYREJECTED    | Key was rejected by service                              |\n| EKEYREVOKED     | Key has been revoked                                     |\n| EL2HLT          | Level 2 halted                                           |\n| EL2NSYNC        | Level 2 not synchronized                                 |\n| EL3HLT          | Level 3 halted                                           |\n| EL3RST          | Level 3 reset                                            |\n| ELIBACC         | Cannot access a needed shared library                    |\n| ELIBBAD         | Accessing a corrupted shared library                     |\n| ELIBMAX         | Attempting to link in too many shared libraries          |\n| ELIBSCN         | .lib section in a.out corrupted                          |\n| ELIBEXEC        | Cannot exec a shared library directly                    |\n| ELNRANGE        | Link number out of range                                 |\n| ELOOP           | Too many levels of symbolic links                        |\n| EMEDIUMTYPE     | Wrong medium type                                        |\n| EMFILE          | Too many open files                                      |\n| EMLINK          | Too many links                                           |\n| EMSGSIZE        | Message too long                                         |\n| EMULTIHOP       | Multihop attempted                                       |\n| ENAMETOOLONG    | Filename too long                                        |\n| ENETDOWN        | Network is down                                          |\n| ENETRESET       | Connection aborted by network                            |\n| ENETUNREACH     | Network unreachable                                      |\n| ENFILE          | Too many open files in system                            |\n| ENOANO          | No anode                                                 |\n| ENOBUFS         | No buffer space available                                |\n| ENODATA         | No message is available on the STREAM head read queue    |\n| ENODEV          | No such device                                           |\n| ENOENT          | No such file or directory                                |\n| ENOEXEC         | Exec format error                                        |\n| ENOKEY          | Required key not available                               |\n| ENOLCK          | No locks available                                       |\n| ENOLINK         | Link has been severed                                    |\n| ENOMEDIUM       | No medium found                                          |\n| ENOMEM          | Not enough space/cannot allocate memory                  |\n| ENOMSG          | No message of the desired type                           |\n| ENONET          | Machine is not on the network                            |\n| ENOPKG          | Package not installed                                    |\n| ENOPROTOOPT     | Protocol not available                                   |\n| ENOSPC          | No space left on device                                  |\n| ENOSR           | No STREAM resources                                      |\n| ENOSTR          | Not a STREAM                                             |\n| ENOSYS          | Function not implemented                                 |\n| ENOTBLK         | Block device required                                    |\n| ENOTCONN        | The socket is not connected                              |\n| ENOTDIR         | Not a directory                                          |\n| ENOTEMPTY       | Directory not empty                                      |\n| ENOTRECOVERABLE | State not recoverable                                    |\n| ENOTSOCK        | Not a socket                                             |\n| ENOTSUP         | Operation not supported                                  |\n| ENOTTY          | Inappropriate I/O control operation                      |\n| ENOTUNIQ        | Name not unique on network                               |\n| ENXIO           | No such device or address                                |\n| EOPNOTSUPP      | Operation not supported on socket                        |\n| EOVERFLOW       | Value too large to be stored in data type                |\n| EOWNERDEAD      | Owner died                                               |\n| EPERM           | Operation not permitted                                  |\n| EPFNOSUPPORT    | Protocol family not supported                            |\n| EPIPE           | Broken pipe                                              |\n| EPROTO          | Protocol error                                           |\n| EPROTONOSUPPORT | Protocol not supported                                   |\n| EPROTOTYPE      | Protocol wrong type for socket                           |\n| ERANGE          | Result too large                                         |\n| EREMCHG         | Remote address changed                                   |\n| EREMOTE         | Object is remote                                         |\n| EREMOTEIO       | Remote I/O error                                         |\n| ERESTART        | Interrupted system call should be restarted              |\n| ERFKILL         | Operation not possible due to RF-kill                    |\n| EROFS           | Read-only filesystem                                     |\n| ESHUTDOWN       | Cannot send after transport endpoint shutdown            |\n| ESPIPE          | Invalid seek                                             |\n| ESOCKTNOSUPPORT | Socket type not supported                                |\n| ESRCH           | No such process                                          |\n| ESTALE          | Stale file handle                                        |\n| ESTRPIPE        | Streams pipe error                                       |\n| ETIME           | Timer expired                                            |\n| ETIMEDOUT       | Connection timed out                                     |\n| ETOOMANYREFS    | Too many references: cannot splice                       |\n| ETXTBSY         | Text file busy                                           |\n| EUCLEAN         | Structure needs cleaning                                 |\n| EUNATCH         | Protocol driver not attached                             |\n| EUSERS          | Too many users                                           |\n| EWOULDBLOCK     | Operation would block                                    |\n| EXDEV           | Improper link                                            |\n| EXFULL          | Exchange full                                            |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprettymuchbryce%2Fnix-errno-codes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprettymuchbryce%2Fnix-errno-codes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprettymuchbryce%2Fnix-errno-codes/lists"}