npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

nix-errno-codes

v0.0.1

Published

Constants enumerating POSIX/Linux errno.h error codes.

Downloads

11

Readme

nix-errno-codes

Constants enumerating POSIX/Linux errno.h error codes.

Completely library agnostic. TypeScript-compatible. No dependencies.

Installation

npm install errno-codes --save

Usage

import {
  readdirSync,
} from 'fs';

import {
  CODES,
  getDescription,
} from './index';

try {
  readdirSync('./non-existent-file.txt');
} catch(error) {
  if (error.code === CODES.ENOENT) {
    console.error(getDescription(CODES.ENOENT)); // No such file or directory
  }
}

Codes

| Code | Description | |-----------------|----------------------------------------------------------| | E2BIG | Argument list too long | | ECCES | Permission denied | | EADDRINUSE | Address already in use | | EADDRNOTAVAIL | Address not available | | EAFNOSUPPORT | Address family not supported | | EAGAIN | Resource temporarily unavailable | | EALREADY | Connection already in progress | | EBADE | Invalid exchange | | EBADF | Bad file descriptor | | EBADFD | File descriptor in bad state | | EBADMSG | Bad message | | EBADR | Invalid request descriptor | | EBADRQC | Invalid request code | | EBADSLT | Invalid slot | | EBUSY | Device or resource busy | | ECANCELED | Operation canceled | | ECHILD | No child processes | | ECHRNG | Channel number out of range | | ECOMM | Communication error on send | | ECONNABORTED | Connection aborted | | ECONNREFUSED | Connection refused | | ECONNRESET | Connection reset | | EDEADLK | Resource deadlock avoided | | EDEADLOCK | Resource deadlock avoided or File locking deadlock error | | EDESTADDRREQ | Destination address required | | EDOM | Mathematics argument out of domain of function | | EDQUOT | Disk quota exceeded | | EEXIST | File exists | | EFAULT | Bad address | | EFBIG | File too large | | EHOSTDOWN | Host is down | | EHOSTUNREACH | Host is unreachable | | EHWPOISON | Memory page has hardware error | | EIDRM | Identifier removed | | EILSEQ | Invalid or incomplete multibyte or wide character | | EINPROGRESS | Operation in progress | | EINTR | Interrupted function call | | EINVAL | Invalid argument | | EIO | Input/output error | | EISCONN | Socket is connected | | EISDIR | Is a directory | | EISNAM | Is a named type file | | EKEYEXPIRED | Key has expired | | EKEYREJECTED | Key was rejected by service | | EKEYREVOKED | Key has been revoked | | EL2HLT | Level 2 halted | | EL2NSYNC | Level 2 not synchronized | | EL3HLT | Level 3 halted | | EL3RST | Level 3 reset | | ELIBACC | Cannot access a needed shared library | | ELIBBAD | Accessing a corrupted shared library | | ELIBMAX | Attempting to link in too many shared libraries | | ELIBSCN | .lib section in a.out corrupted | | ELIBEXEC | Cannot exec a shared library directly | | ELNRANGE | Link number out of range | | ELOOP | Too many levels of symbolic links | | EMEDIUMTYPE | Wrong medium type | | EMFILE | Too many open files | | EMLINK | Too many links | | EMSGSIZE | Message too long | | EMULTIHOP | Multihop attempted | | ENAMETOOLONG | Filename too long | | ENETDOWN | Network is down | | ENETRESET | Connection aborted by network | | ENETUNREACH | Network unreachable | | ENFILE | Too many open files in system | | ENOANO | No anode | | ENOBUFS | No buffer space available | | ENODATA | No message is available on the STREAM head read queue | | ENODEV | No such device | | ENOENT | No such file or directory | | ENOEXEC | Exec format error | | ENOKEY | Required key not available | | ENOLCK | No locks available | | ENOLINK | Link has been severed | | ENOMEDIUM | No medium found | | ENOMEM | Not enough space/cannot allocate memory | | ENOMSG | No message of the desired type | | ENONET | Machine is not on the network | | ENOPKG | Package not installed | | ENOPROTOOPT | Protocol not available | | ENOSPC | No space left on device | | ENOSR | No STREAM resources | | ENOSTR | Not a STREAM | | ENOSYS | Function not implemented | | ENOTBLK | Block device required | | ENOTCONN | The socket is not connected | | ENOTDIR | Not a directory | | ENOTEMPTY | Directory not empty | | ENOTRECOVERABLE | State not recoverable | | ENOTSOCK | Not a socket | | ENOTSUP | Operation not supported | | ENOTTY | Inappropriate I/O control operation | | ENOTUNIQ | Name not unique on network | | ENXIO | No such device or address | | EOPNOTSUPP | Operation not supported on socket | | EOVERFLOW | Value too large to be stored in data type | | EOWNERDEAD | Owner died | | EPERM | Operation not permitted | | EPFNOSUPPORT | Protocol family not supported | | EPIPE | Broken pipe | | EPROTO | Protocol error | | EPROTONOSUPPORT | Protocol not supported | | EPROTOTYPE | Protocol wrong type for socket | | ERANGE | Result too large | | EREMCHG | Remote address changed | | EREMOTE | Object is remote | | EREMOTEIO | Remote I/O error | | ERESTART | Interrupted system call should be restarted | | ERFKILL | Operation not possible due to RF-kill | | EROFS | Read-only filesystem | | ESHUTDOWN | Cannot send after transport endpoint shutdown | | ESPIPE | Invalid seek | | ESOCKTNOSUPPORT | Socket type not supported | | ESRCH | No such process | | ESTALE | Stale file handle | | ESTRPIPE | Streams pipe error | | ETIME | Timer expired | | ETIMEDOUT | Connection timed out | | ETOOMANYREFS | Too many references: cannot splice | | ETXTBSY | Text file busy | | EUCLEAN | Structure needs cleaning | | EUNATCH | Protocol driver not attached | | EUSERS | Too many users | | EWOULDBLOCK | Operation would block | | EXDEV | Improper link | | EXFULL | Exchange full |