"os" | typescript
Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Variables

EOL

EOL: string

constants

constants: object

Type declaration

  • UV_UDP_REUSEADDR: number
  • errno: object
    • E2BIG: number
    • EACCES: number
    • EADDRINUSE: number
    • EADDRNOTAVAIL: number
    • EAFNOSUPPORT: number
    • EAGAIN: number
    • EALREADY: number
    • EBADF: number
    • EBADMSG: number
    • EBUSY: number
    • ECANCELED: number
    • ECHILD: number
    • ECONNABORTED: number
    • ECONNREFUSED: number
    • ECONNRESET: number
    • EDEADLK: number
    • EDESTADDRREQ: number
    • EDOM: number
    • EDQUOT: number
    • EEXIST: number
    • EFAULT: number
    • EFBIG: number
    • EHOSTUNREACH: number
    • EIDRM: number
    • EILSEQ: number
    • EINPROGRESS: number
    • EINTR: number
    • EINVAL: number
    • EIO: number
    • EISCONN: number
    • EISDIR: number
    • ELOOP: number
    • EMFILE: number
    • EMLINK: number
    • EMSGSIZE: number
    • EMULTIHOP: number
    • ENAMETOOLONG: number
    • ENETDOWN: number
    • ENETRESET: number
    • ENETUNREACH: number
    • ENFILE: number
    • ENOBUFS: number
    • ENODATA: number
    • ENODEV: number
    • ENOENT: number
    • ENOEXEC: number
    • ENOLCK: number
    • ENOLINK: number
    • ENOMEM: number
    • ENOMSG: number
    • ENOPROTOOPT: number
    • ENOSPC: number
    • ENOSR: number
    • ENOSTR: number
    • ENOSYS: number
    • ENOTCONN: number
    • ENOTDIR: number
    • ENOTEMPTY: number
    • ENOTSOCK: number
    • ENOTSUP: number
    • ENOTTY: number
    • ENXIO: number
    • EOPNOTSUPP: number
    • EOVERFLOW: number
    • EPERM: number
    • EPIPE: number
    • EPROTO: number
    • EPROTONOSUPPORT: number
    • EPROTOTYPE: number
    • ERANGE: number
    • EROFS: number
    • ESPIPE: number
    • ESRCH: number
    • ESTALE: number
    • ETIME: number
    • ETIMEDOUT: number
    • ETXTBSY: number
    • EWOULDBLOCK: number
    • EXDEV: number
  • signals: object
    • SIGABRT: number
    • SIGALRM: number
    • SIGBUS: number
    • SIGCHLD: number
    • SIGCONT: number
    • SIGFPE: number
    • SIGHUP: number
    • SIGILL: number
    • SIGINT: number
    • SIGIO: number
    • SIGIOT: number
    • SIGKILL: number
    • SIGPIPE: number
    • SIGPOLL: number
    • SIGPROF: number
    • SIGPWR: number
    • SIGQUIT: number
    • SIGSEGV: number
    • SIGSTKFLT: number
    • SIGSTOP: number
    • SIGSYS: number
    • SIGTERM: number
    • SIGTRAP: number
    • SIGTSTP: number
    • SIGTTIN: number
    • SIGTTOU: number
    • SIGUNUSED: number
    • SIGURG: number
    • SIGUSR1: number
    • SIGUSR2: number
    • SIGVTALRM: number
    • SIGWINCH: number
    • SIGXCPU: number
    • SIGXFSZ: number

Functions

arch

  • arch(): string
  • Returns string

cpus

  • Returns CpuInfo[]

endianness

  • endianness(): "BE" | "LE"
  • Returns "BE" | "LE"

freemem

  • freemem(): number
  • Returns number

homedir

  • homedir(): string
  • Returns string

hostname

  • hostname(): string
  • Returns string

loadavg

  • loadavg(): number[]
  • Returns number[]

networkInterfaces

  • networkInterfaces(): object
  • Returns object

platform

  • Returns Platform

release

  • release(): string
  • Returns string

tmpdir

  • tmpdir(): string
  • Returns string

totalmem

  • totalmem(): number
  • Returns number

type

  • type(): string
  • Returns string

uptime

  • uptime(): number
  • Returns number

userInfo

  • userInfo(options?: object): object
  • Parameters

    • Optional options: object
      • encoding: string

    Returns object

    • gid: number
    • homedir: string
    • shell: any
    • uid: number
    • username: string

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc