nv-facutil-flag
v1.0.1
Published
nv-facutil-flag ======================= - same as constants in nodejs - just add 3 flag of eventfd
Downloads
1
Readme
nv-facutil-flag
- same as constants in nodejs
- just add 3 flag of eventfd
install
- npm install nv-facutil-flag
usage
const {_Flag} = require("nv-facutil-flag");
example
const x=require("nv-facutil-flag");
> x.EFD_CLOEXEC
[Number: 524288] [EFD_CLOEXEC]
>
> x.EFD_CLOEXEC.name
'EFD_CLOEXEC'
> x.EFD_CLOEXEC.numb
524288
>
> x.EFD_CLOEXEC.O
'0000_0000_0200_0000'
> x.EFD_CLOEXEC.X
'0008_0000'
> x.EFD_CLOEXEC.B
'0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_1000_0000_0000_0000_0000'
>
> x.EFD_CLOEXEC.D
'0000_0052_4288'
>
> var myflag = new _Flag(666666,"myflag")
undefined
> myflag
[Number: 666666] [myflag]
>
> myflag.X
'000a_2c2a'
> myflag.D
'0000_0066_6666'
> myflag.O
'0000_0000_0242_6052'
> myflag.B
'0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_1010_0010_1100_0010_1010'
> myflag.name
'myflag'
> myflag.numb
666666
>
APIS
{
_Flag: [class (anonymous) extends Number] { _prepend: [Function: _prepend] },
EFD_CLOEXEC: [Number: 524288] [EFD_CLOEXEC],
EFD_NONBLOCK: [Number: 16384] [EFD_NONBLOCK],
EFD_SEMAPHORE: [Number: 1] [EFD_SEMAPHORE],
RTLD_LAZY: [Number: 1] [RTLD_LAZY],
RTLD_NOW: [Number: 2] [RTLD_NOW],
RTLD_GLOBAL: [Number: 256] [RTLD_GLOBAL],
RTLD_LOCAL: [Number: 0] [RTLD_LOCAL],
RTLD_DEEPBIND: [Number: 8] [RTLD_DEEPBIND],
E2BIG: [Number: 7] [E2BIG],
EACCES: [Number: 13] [EACCES],
EADDRINUSE: [Number: 98] [EADDRINUSE],
EADDRNOTAVAIL: [Number: 99] [EADDRNOTAVAIL],
EAFNOSUPPORT: [Number: 97] [EAFNOSUPPORT],
EAGAIN: [Number: 11] [EAGAIN],
EALREADY: [Number: 114] [EALREADY],
EBADF: [Number: 9] [EBADF],
EBADMSG: [Number: 74] [EBADMSG],
EBUSY: [Number: 16] [EBUSY],
ECANCELED: [Number: 125] [ECANCELED],
ECHILD: [Number: 10] [ECHILD],
ECONNABORTED: [Number: 103] [ECONNABORTED],
ECONNREFUSED: [Number: 111] [ECONNREFUSED],
ECONNRESET: [Number: 104] [ECONNRESET],
EDEADLK: [Number: 35] [EDEADLK],
EDESTADDRREQ: [Number: 89] [EDESTADDRREQ],
EDOM: [Number: 33] [EDOM],
EDQUOT: [Number: 122] [EDQUOT],
EEXIST: [Number: 17] [EEXIST],
EFAULT: [Number: 14] [EFAULT],
EFBIG: [Number: 27] [EFBIG],
EHOSTUNREACH: [Number: 113] [EHOSTUNREACH],
EIDRM: [Number: 43] [EIDRM],
EILSEQ: [Number: 84] [EILSEQ],
EINPROGRESS: [Number: 115] [EINPROGRESS],
EINTR: [Number: 4] [EINTR],
EINVAL: [Number: 22] [EINVAL],
EIO: [Number: 5] [EIO],
EISCONN: [Number: 106] [EISCONN],
EISDIR: [Number: 21] [EISDIR],
ELOOP: [Number: 40] [ELOOP],
EMFILE: [Number: 24] [EMFILE],
EMLINK: [Number: 31] [EMLINK],
EMSGSIZE: [Number: 90] [EMSGSIZE],
EMULTIHOP: [Number: 72] [EMULTIHOP],
ENAMETOOLONG: [Number: 36] [ENAMETOOLONG],
ENETDOWN: [Number: 100] [ENETDOWN],
ENETRESET: [Number: 102] [ENETRESET],
ENETUNREACH: [Number: 101] [ENETUNREACH],
ENFILE: [Number: 23] [ENFILE],
ENOBUFS: [Number: 105] [ENOBUFS],
ENODATA: [Number: 61] [ENODATA],
ENODEV: [Number: 19] [ENODEV],
ENOENT: [Number: 2] [ENOENT],
ENOEXEC: [Number: 8] [ENOEXEC],
ENOLCK: [Number: 37] [ENOLCK],
ENOLINK: [Number: 67] [ENOLINK],
ENOMEM: [Number: 12] [ENOMEM],
ENOMSG: [Number: 42] [ENOMSG],
ENOPROTOOPT: [Number: 92] [ENOPROTOOPT],
ENOSPC: [Number: 28] [ENOSPC],
ENOSR: [Number: 63] [ENOSR],
ENOSTR: [Number: 60] [ENOSTR],
ENOSYS: [Number: 38] [ENOSYS],
ENOTCONN: [Number: 107] [ENOTCONN],
ENOTDIR: [Number: 20] [ENOTDIR],
ENOTEMPTY: [Number: 39] [ENOTEMPTY],
ENOTSOCK: [Number: 88] [ENOTSOCK],
ENOTSUP: [Number: 95] [ENOTSUP],
ENOTTY: [Number: 25] [ENOTTY],
ENXIO: [Number: 6] [ENXIO],
EOPNOTSUPP: [Number: 95] [EOPNOTSUPP],
EOVERFLOW: [Number: 75] [EOVERFLOW],
EPERM: [Number: 1] [EPERM],
EPIPE: [Number: 32] [EPIPE],
EPROTO: [Number: 71] [EPROTO],
EPROTONOSUPPORT: [Number: 93] [EPROTONOSUPPORT],
EPROTOTYPE: [Number: 91] [EPROTOTYPE],
ERANGE: [Number: 34] [ERANGE],
EROFS: [Number: 30] [EROFS],
ESPIPE: [Number: 29] [ESPIPE],
ESRCH: [Number: 3] [ESRCH],
ESTALE: [Number: 116] [ESTALE],
ETIME: [Number: 62] [ETIME],
ETIMEDOUT: [Number: 110] [ETIMEDOUT],
ETXTBSY: [Number: 26] [ETXTBSY],
EWOULDBLOCK: [Number: 11] [EWOULDBLOCK],
EXDEV: [Number: 18] [EXDEV],
PRIORITY_LOW: [Number: 19] [PRIORITY_LOW],
PRIORITY_BELOW_NORMAL: [Number: 10] [PRIORITY_BELOW_NORMAL],
PRIORITY_NORMAL: [Number: 0] [PRIORITY_NORMAL],
PRIORITY_ABOVE_NORMAL: [Number: -7] [PRIORITY_ABOVE_NORMAL],
PRIORITY_HIGH: [Number: -14] [PRIORITY_HIGH],
PRIORITY_HIGHEST: [Number: -20] [PRIORITY_HIGHEST],
SIGHUP: [Number: 1] [SIGHUP],
SIGINT: [Number: 2] [SIGINT],
SIGQUIT: [Number: 3] [SIGQUIT],
SIGILL: [Number: 4] [SIGILL],
SIGTRAP: [Number: 5] [SIGTRAP],
SIGABRT: [Number: 6] [SIGABRT],
SIGIOT: [Number: 6] [SIGIOT],
SIGBUS: [Number: 7] [SIGBUS],
SIGFPE: [Number: 8] [SIGFPE],
SIGKILL: [Number: 9] [SIGKILL],
SIGUSR1: [Number: 10] [SIGUSR1],
SIGSEGV: [Number: 11] [SIGSEGV],
SIGUSR2: [Number: 12] [SIGUSR2],
SIGPIPE: [Number: 13] [SIGPIPE],
SIGALRM: [Number: 14] [SIGALRM],
SIGTERM: [Number: 15] [SIGTERM],
SIGCHLD: [Number: 17] [SIGCHLD],
SIGSTKFLT: [Number: 16] [SIGSTKFLT],
SIGCONT: [Number: 18] [SIGCONT],
SIGSTOP: [Number: 19] [SIGSTOP],
SIGTSTP: [Number: 20] [SIGTSTP],
SIGTTIN: [Number: 21] [SIGTTIN],
SIGTTOU: [Number: 22] [SIGTTOU],
SIGURG: [Number: 23] [SIGURG],
SIGXCPU: [Number: 24] [SIGXCPU],
SIGXFSZ: [Number: 25] [SIGXFSZ],
SIGVTALRM: [Number: 26] [SIGVTALRM],
SIGPROF: [Number: 27] [SIGPROF],
SIGWINCH: [Number: 28] [SIGWINCH],
SIGIO: [Number: 29] [SIGIO],
SIGPOLL: [Number: 29] [SIGPOLL],
SIGPWR: [Number: 30] [SIGPWR],
SIGSYS: [Number: 31] [SIGSYS],
SIGUNUSED: [Number: 31] [SIGUNUSED],
UV_FS_SYMLINK_DIR: [Number: 1] [UV_FS_SYMLINK_DIR],
UV_FS_SYMLINK_JUNCTION: [Number: 2] [UV_FS_SYMLINK_JUNCTION],
O_RDONLY: [Number: 0] [O_RDONLY],
O_WRONLY: [Number: 1] [O_WRONLY],
O_RDWR: [Number: 2] [O_RDWR],
UV_DIRENT_UNKNOWN: [Number: 0] [UV_DIRENT_UNKNOWN],
UV_DIRENT_FILE: [Number: 1] [UV_DIRENT_FILE],
UV_DIRENT_DIR: [Number: 2] [UV_DIRENT_DIR],
UV_DIRENT_LINK: [Number: 3] [UV_DIRENT_LINK],
UV_DIRENT_FIFO: [Number: 4] [UV_DIRENT_FIFO],
UV_DIRENT_SOCKET: [Number: 5] [UV_DIRENT_SOCKET],
UV_DIRENT_CHAR: [Number: 6] [UV_DIRENT_CHAR],
UV_DIRENT_BLOCK: [Number: 7] [UV_DIRENT_BLOCK],
S_IFMT: [Number: 61440] [S_IFMT],
S_IFREG: [Number: 32768] [S_IFREG],
S_IFDIR: [Number: 16384] [S_IFDIR],
S_IFCHR: [Number: 8192] [S_IFCHR],
S_IFBLK: [Number: 24576] [S_IFBLK],
S_IFIFO: [Number: 4096] [S_IFIFO],
S_IFLNK: [Number: 40960] [S_IFLNK],
S_IFSOCK: [Number: 49152] [S_IFSOCK],
O_CREAT: [Number: 64] [O_CREAT],
O_EXCL: [Number: 128] [O_EXCL],
UV_FS_O_FILEMAP: [Number: 0] [UV_FS_O_FILEMAP],
O_NOCTTY: [Number: 256] [O_NOCTTY],
O_TRUNC: [Number: 512] [O_TRUNC],
O_APPEND: [Number: 1024] [O_APPEND],
O_DIRECTORY: [Number: 65536] [O_DIRECTORY],
O_NOATIME: [Number: 262144] [O_NOATIME],
O_NOFOLLOW: [Number: 131072] [O_NOFOLLOW],
O_SYNC: [Number: 1052672] [O_SYNC],
O_DSYNC: [Number: 4096] [O_DSYNC],
O_DIRECT: [Number: 16384] [O_DIRECT],
O_NONBLOCK: [Number: 2048] [O_NONBLOCK],
S_IRWXU: [Number: 448] [S_IRWXU],
S_IRUSR: [Number: 256] [S_IRUSR],
S_IWUSR: [Number: 128] [S_IWUSR],
S_IXUSR: [Number: 64] [S_IXUSR],
S_IRWXG: [Number: 56] [S_IRWXG],
S_IRGRP: [Number: 32] [S_IRGRP],
S_IWGRP: [Number: 16] [S_IWGRP],
S_IXGRP: [Number: 8] [S_IXGRP],
S_IRWXO: [Number: 7] [S_IRWXO],
S_IROTH: [Number: 4] [S_IROTH],
S_IWOTH: [Number: 2] [S_IWOTH],
S_IXOTH: [Number: 1] [S_IXOTH],
F_OK: [Number: 0] [F_OK],
R_OK: [Number: 4] [R_OK],
W_OK: [Number: 2] [W_OK],
X_OK: [Number: 1] [X_OK],
UV_FS_COPYFILE_EXCL: [Number: 1] [UV_FS_COPYFILE_EXCL],
COPYFILE_EXCL: [Number: 1] [COPYFILE_EXCL],
UV_FS_COPYFILE_FICLONE: [Number: 2] [UV_FS_COPYFILE_FICLONE],
COPYFILE_FICLONE: [Number: 2] [COPYFILE_FICLONE],
UV_FS_COPYFILE_FICLONE_FORCE: [Number: 4] [UV_FS_COPYFILE_FICLONE_FORCE],
COPYFILE_FICLONE_FORCE: [Number: 4] [COPYFILE_FICLONE_FORCE],
OPENSSL_VERSION_NUMBER: [Number: 269488335] [OPENSSL_VERSION_NUMBER],
SSL_OP_ALL: [Number: 2147485780] [SSL_OP_ALL],
SSL_OP_ALLOW_NO_DHE_KEX: [Number: 1024] [SSL_OP_ALLOW_NO_DHE_KEX],
SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION: [Number: 262144] [SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION],
SSL_OP_CIPHER_SERVER_PREFERENCE: [Number: 4194304] [SSL_OP_CIPHER_SERVER_PREFERENCE],
SSL_OP_CISCO_ANYCONNECT: [Number: 32768] [SSL_OP_CISCO_ANYCONNECT],
SSL_OP_COOKIE_EXCHANGE: [Number: 8192] [SSL_OP_COOKIE_EXCHANGE],
SSL_OP_CRYPTOPRO_TLSEXT_BUG: [Number: 2147483648] [SSL_OP_CRYPTOPRO_TLSEXT_BUG],
SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS: [Number: 2048] [SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS],
SSL_OP_EPHEMERAL_RSA: [Number: 0] [SSL_OP_EPHEMERAL_RSA],
SSL_OP_LEGACY_SERVER_CONNECT: [Number: 4] [SSL_OP_LEGACY_SERVER_CONNECT],
SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER: [Number: 0] [SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER],
SSL_OP_MICROSOFT_SESS_ID_BUG: [Number: 0] [SSL_OP_MICROSOFT_SESS_ID_BUG],
SSL_OP_MSIE_SSLV2_RSA_PADDING: [Number: 0] [SSL_OP_MSIE_SSLV2_RSA_PADDING],
SSL_OP_NETSCAPE_CA_DN_BUG: [Number: 0] [SSL_OP_NETSCAPE_CA_DN_BUG],
SSL_OP_NETSCAPE_CHALLENGE_BUG: [Number: 0] [SSL_OP_NETSCAPE_CHALLENGE_BUG],
SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG: [Number: 0] [SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG],
SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG: [Number: 0] [SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG],
SSL_OP_NO_COMPRESSION: [Number: 131072] [SSL_OP_NO_COMPRESSION],
SSL_OP_NO_ENCRYPT_THEN_MAC: [Number: 524288] [SSL_OP_NO_ENCRYPT_THEN_MAC],
SSL_OP_NO_QUERY_MTU: [Number: 4096] [SSL_OP_NO_QUERY_MTU],
SSL_OP_NO_RENEGOTIATION: [Number: 1073741824] [SSL_OP_NO_RENEGOTIATION],
SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION: [Number: 65536] [SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION],
SSL_OP_NO_SSLv2: [Number: 0] [SSL_OP_NO_SSLv2],
SSL_OP_NO_SSLv3: [Number: 33554432] [SSL_OP_NO_SSLv3],
SSL_OP_NO_TICKET: [Number: 16384] [SSL_OP_NO_TICKET],
SSL_OP_NO_TLSv1: [Number: 67108864] [SSL_OP_NO_TLSv1],
SSL_OP_NO_TLSv1_1: [Number: 268435456] [SSL_OP_NO_TLSv1_1],
SSL_OP_NO_TLSv1_2: [Number: 134217728] [SSL_OP_NO_TLSv1_2],
SSL_OP_NO_TLSv1_3: [Number: 536870912] [SSL_OP_NO_TLSv1_3],
SSL_OP_PKCS1_CHECK_1: [Number: 0] [SSL_OP_PKCS1_CHECK_1],
SSL_OP_PKCS1_CHECK_2: [Number: 0] [SSL_OP_PKCS1_CHECK_2],
SSL_OP_PRIORITIZE_CHACHA: [Number: 2097152] [SSL_OP_PRIORITIZE_CHACHA],
SSL_OP_SINGLE_DH_USE: [Number: 0] [SSL_OP_SINGLE_DH_USE],
SSL_OP_SINGLE_ECDH_USE: [Number: 0] [SSL_OP_SINGLE_ECDH_USE],
SSL_OP_SSLEAY_080_CLIENT_DH_BUG: [Number: 0] [SSL_OP_SSLEAY_080_CLIENT_DH_BUG],
SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG: [Number: 0] [SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG],
SSL_OP_TLS_BLOCK_PADDING_BUG: [Number: 0] [SSL_OP_TLS_BLOCK_PADDING_BUG],
SSL_OP_TLS_D5_BUG: [Number: 0] [SSL_OP_TLS_D5_BUG],
SSL_OP_TLS_ROLLBACK_BUG: [Number: 8388608] [SSL_OP_TLS_ROLLBACK_BUG],
ENGINE_METHOD_RSA: [Number: 1] [ENGINE_METHOD_RSA],
ENGINE_METHOD_DSA: [Number: 2] [ENGINE_METHOD_DSA],
ENGINE_METHOD_DH: [Number: 4] [ENGINE_METHOD_DH],
ENGINE_METHOD_RAND: [Number: 8] [ENGINE_METHOD_RAND],
ENGINE_METHOD_EC: [Number: 2048] [ENGINE_METHOD_EC],
ENGINE_METHOD_CIPHERS: [Number: 64] [ENGINE_METHOD_CIPHERS],
ENGINE_METHOD_DIGESTS: [Number: 128] [ENGINE_METHOD_DIGESTS],
ENGINE_METHOD_PKEY_METHS: [Number: 512] [ENGINE_METHOD_PKEY_METHS],
ENGINE_METHOD_PKEY_ASN1_METHS: [Number: 1024] [ENGINE_METHOD_PKEY_ASN1_METHS],
ENGINE_METHOD_ALL: [Number: 65535] [ENGINE_METHOD_ALL],
ENGINE_METHOD_NONE: [Number: 0] [ENGINE_METHOD_NONE],
DH_CHECK_P_NOT_SAFE_PRIME: [Number: 2] [DH_CHECK_P_NOT_SAFE_PRIME],
DH_CHECK_P_NOT_PRIME: [Number: 1] [DH_CHECK_P_NOT_PRIME],
DH_UNABLE_TO_CHECK_GENERATOR: [Number: 4] [DH_UNABLE_TO_CHECK_GENERATOR],
DH_NOT_SUITABLE_GENERATOR: [Number: 8] [DH_NOT_SUITABLE_GENERATOR],
ALPN_ENABLED: [Number: 1] [ALPN_ENABLED],
RSA_PKCS1_PADDING: [Number: 1] [RSA_PKCS1_PADDING],
RSA_SSLV23_PADDING: [Number: 2] [RSA_SSLV23_PADDING],
RSA_NO_PADDING: [Number: 3] [RSA_NO_PADDING],
RSA_PKCS1_OAEP_PADDING: [Number: 4] [RSA_PKCS1_OAEP_PADDING],
RSA_X931_PADDING: [Number: 5] [RSA_X931_PADDING],
RSA_PKCS1_PSS_PADDING: [Number: 6] [RSA_PKCS1_PSS_PADDING],
RSA_PSS_SALTLEN_DIGEST: [Number: -1] [RSA_PSS_SALTLEN_DIGEST],
RSA_PSS_SALTLEN_MAX_SIGN: [Number: -2] [RSA_PSS_SALTLEN_MAX_SIGN],
RSA_PSS_SALTLEN_AUTO: [Number: -2] [RSA_PSS_SALTLEN_AUTO],
TLS1_VERSION: [Number: 769] [TLS1_VERSION],
TLS1_1_VERSION: [Number: 770] [TLS1_1_VERSION],
TLS1_2_VERSION: [Number: 771] [TLS1_2_VERSION],
TLS1_3_VERSION: [Number: 772] [TLS1_3_VERSION],
POINT_CONVERSION_COMPRESSED: [Number: 2] [POINT_CONVERSION_COMPRESSED],
POINT_CONVERSION_UNCOMPRESSED: [Number: 4] [POINT_CONVERSION_UNCOMPRESSED],
POINT_CONVERSION_HYBRID: [Number: 6] [POINT_CONVERSION_HYBRID]
}
LICENSE
- ISC