Best JavaScript code snippet using best
constants.d.ts
Source:constants.d.ts
1/** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */2declare module 'constants' {3 /** @deprecated since v6.3.0 - use `os.constants.errno.E2BIG` instead. */4 const E2BIG: number;5 /** @deprecated since v6.3.0 - use `os.constants.errno.EACCES` instead. */6 const EACCES: number;7 /** @deprecated since v6.3.0 - use `os.constants.errno.EADDRINUSE` instead. */8 const EADDRINUSE: number;9 /** @deprecated since v6.3.0 - use `os.constants.errno.EADDRNOTAVAIL` instead. */10 const EADDRNOTAVAIL: number;11 /** @deprecated since v6.3.0 - use `os.constants.errno.EAFNOSUPPORT` instead. */12 const EAFNOSUPPORT: number;13 /** @deprecated since v6.3.0 - use `os.constants.errno.EAGAIN` instead. */14 const EAGAIN: number;15 /** @deprecated since v6.3.0 - use `os.constants.errno.EALREADY` instead. */16 const EALREADY: number;17 /** @deprecated since v6.3.0 - use `os.constants.errno.EBADF` instead. */18 const EBADF: number;19 /** @deprecated since v6.3.0 - use `os.constants.errno.EBADMSG` instead. */20 const EBADMSG: number;21 /** @deprecated since v6.3.0 - use `os.constants.errno.EBUSY` instead. */22 const EBUSY: number;23 /** @deprecated since v6.3.0 - use `os.constants.errno.ECANCELED` instead. */24 const ECANCELED: number;25 /** @deprecated since v6.3.0 - use `os.constants.errno.ECHILD` instead. */26 const ECHILD: number;27 /** @deprecated since v6.3.0 - use `os.constants.errno.ECONNABORTED` instead. */28 const ECONNABORTED: number;29 /** @deprecated since v6.3.0 - use `os.constants.errno.ECONNREFUSED` instead. */30 const ECONNREFUSED: number;31 /** @deprecated since v6.3.0 - use `os.constants.errno.ECONNRESET` instead. */32 const ECONNRESET: number;33 /** @deprecated since v6.3.0 - use `os.constants.errno.EDEADLK` instead. */34 const EDEADLK: number;35 /** @deprecated since v6.3.0 - use `os.constants.errno.EDESTADDRREQ` instead. */36 const EDESTADDRREQ: number;37 /** @deprecated since v6.3.0 - use `os.constants.errno.EDOM` instead. */38 const EDOM: number;39 /** @deprecated since v6.3.0 - use `os.constants.errno.EEXIST` instead. */40 const EEXIST: number;41 /** @deprecated since v6.3.0 - use `os.constants.errno.EFAULT` instead. */42 const EFAULT: number;43 /** @deprecated since v6.3.0 - use `os.constants.errno.EFBIG` instead. */44 const EFBIG: number;45 /** @deprecated since v6.3.0 - use `os.constants.errno.EHOSTUNREACH` instead. */46 const EHOSTUNREACH: number;47 /** @deprecated since v6.3.0 - use `os.constants.errno.EIDRM` instead. */48 const EIDRM: number;49 /** @deprecated since v6.3.0 - use `os.constants.errno.EILSEQ` instead. */50 const EILSEQ: number;51 /** @deprecated since v6.3.0 - use `os.constants.errno.EINPROGRESS` instead. */52 const EINPROGRESS: number;53 /** @deprecated since v6.3.0 - use `os.constants.errno.EINTR` instead. */54 const EINTR: number;55 /** @deprecated since v6.3.0 - use `os.constants.errno.EINVAL` instead. */56 const EINVAL: number;57 /** @deprecated since v6.3.0 - use `os.constants.errno.EIO` instead. */58 const EIO: number;59 /** @deprecated since v6.3.0 - use `os.constants.errno.EISCONN` instead. */60 const EISCONN: number;61 /** @deprecated since v6.3.0 - use `os.constants.errno.EISDIR` instead. */62 const EISDIR: number;63 /** @deprecated since v6.3.0 - use `os.constants.errno.ELOOP` instead. */64 const ELOOP: number;65 /** @deprecated since v6.3.0 - use `os.constants.errno.EMFILE` instead. */66 const EMFILE: number;67 /** @deprecated since v6.3.0 - use `os.constants.errno.EMLINK` instead. */68 const EMLINK: number;69 /** @deprecated since v6.3.0 - use `os.constants.errno.EMSGSIZE` instead. */70 const EMSGSIZE: number;71 /** @deprecated since v6.3.0 - use `os.constants.errno.ENAMETOOLONG` instead. */72 const ENAMETOOLONG: number;73 /** @deprecated since v6.3.0 - use `os.constants.errno.ENETDOWN` instead. */74 const ENETDOWN: number;75 /** @deprecated since v6.3.0 - use `os.constants.errno.ENETRESET` instead. */76 const ENETRESET: number;77 /** @deprecated since v6.3.0 - use `os.constants.errno.ENETUNREACH` instead. */78 const ENETUNREACH: number;79 /** @deprecated since v6.3.0 - use `os.constants.errno.ENFILE` instead. */80 const ENFILE: number;81 /** @deprecated since v6.3.0 - use `os.constants.errno.ENOBUFS` instead. */82 const ENOBUFS: number;83 /** @deprecated since v6.3.0 - use `os.constants.errno.ENODATA` instead. */84 const ENODATA: number;85 /** @deprecated since v6.3.0 - use `os.constants.errno.ENODEV` instead. */86 const ENODEV: number;87 /** @deprecated since v6.3.0 - use `os.constants.errno.ENOENT` instead. */88 const ENOENT: number;89 /** @deprecated since v6.3.0 - use `os.constants.errno.ENOEXEC` instead. */90 const ENOEXEC: number;91 /** @deprecated since v6.3.0 - use `os.constants.errno.ENOLCK` instead. */92 const ENOLCK: number;93 /** @deprecated since v6.3.0 - use `os.constants.errno.ENOLINK` instead. */94 const ENOLINK: number;95 /** @deprecated since v6.3.0 - use `os.constants.errno.ENOMEM` instead. */96 const ENOMEM: number;97 /** @deprecated since v6.3.0 - use `os.constants.errno.ENOMSG` instead. */98 const ENOMSG: number;99 /** @deprecated since v6.3.0 - use `os.constants.errno.ENOPROTOOPT` instead. */100 const ENOPROTOOPT: number;101 /** @deprecated since v6.3.0 - use `os.constants.errno.ENOSPC` instead. */102 const ENOSPC: number;103 /** @deprecated since v6.3.0 - use `os.constants.errno.ENOSR` instead. */104 const ENOSR: number;105 /** @deprecated since v6.3.0 - use `os.constants.errno.ENOSTR` instead. */106 const ENOSTR: number;107 /** @deprecated since v6.3.0 - use `os.constants.errno.ENOSYS` instead. */108 const ENOSYS: number;109 /** @deprecated since v6.3.0 - use `os.constants.errno.ENOTCONN` instead. */110 const ENOTCONN: number;111 /** @deprecated since v6.3.0 - use `os.constants.errno.ENOTDIR` instead. */112 const ENOTDIR: number;113 /** @deprecated since v6.3.0 - use `os.constants.errno.ENOTEMPTY` instead. */114 const ENOTEMPTY: number;115 /** @deprecated since v6.3.0 - use `os.constants.errno.ENOTSOCK` instead. */116 const ENOTSOCK: number;117 /** @deprecated since v6.3.0 - use `os.constants.errno.ENOTSUP` instead. */118 const ENOTSUP: number;119 /** @deprecated since v6.3.0 - use `os.constants.errno.ENOTTY` instead. */120 const ENOTTY: number;121 /** @deprecated since v6.3.0 - use `os.constants.errno.ENXIO` instead. */122 const ENXIO: number;123 /** @deprecated since v6.3.0 - use `os.constants.errno.EOPNOTSUPP` instead. */124 const EOPNOTSUPP: number;125 /** @deprecated since v6.3.0 - use `os.constants.errno.EOVERFLOW` instead. */126 const EOVERFLOW: number;127 /** @deprecated since v6.3.0 - use `os.constants.errno.EPERM` instead. */128 const EPERM: number;129 /** @deprecated since v6.3.0 - use `os.constants.errno.EPIPE` instead. */130 const EPIPE: number;131 /** @deprecated since v6.3.0 - use `os.constants.errno.EPROTO` instead. */132 const EPROTO: number;133 /** @deprecated since v6.3.0 - use `os.constants.errno.EPROTONOSUPPORT` instead. */134 const EPROTONOSUPPORT: number;135 /** @deprecated since v6.3.0 - use `os.constants.errno.EPROTOTYPE` instead. */136 const EPROTOTYPE: number;137 /** @deprecated since v6.3.0 - use `os.constants.errno.ERANGE` instead. */138 const ERANGE: number;139 /** @deprecated since v6.3.0 - use `os.constants.errno.EROFS` instead. */140 const EROFS: number;141 /** @deprecated since v6.3.0 - use `os.constants.errno.ESPIPE` instead. */142 const ESPIPE: number;143 /** @deprecated since v6.3.0 - use `os.constants.errno.ESRCH` instead. */144 const ESRCH: number;145 /** @deprecated since v6.3.0 - use `os.constants.errno.ETIME` instead. */146 const ETIME: number;147 /** @deprecated since v6.3.0 - use `os.constants.errno.ETIMEDOUT` instead. */148 const ETIMEDOUT: number;149 /** @deprecated since v6.3.0 - use `os.constants.errno.ETXTBSY` instead. */150 const ETXTBSY: number;151 /** @deprecated since v6.3.0 - use `os.constants.errno.EWOULDBLOCK` instead. */152 const EWOULDBLOCK: number;153 /** @deprecated since v6.3.0 - use `os.constants.errno.EXDEV` instead. */154 const EXDEV: number;155 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEINTR` instead. */156 const WSAEINTR: number;157 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEBADF` instead. */158 const WSAEBADF: number;159 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEACCES` instead. */160 const WSAEACCES: number;161 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEFAULT` instead. */162 const WSAEFAULT: number;163 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEINVAL` instead. */164 const WSAEINVAL: number;165 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEMFILE` instead. */166 const WSAEMFILE: number;167 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEWOULDBLOCK` instead. */168 const WSAEWOULDBLOCK: number;169 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEINPROGRESS` instead. */170 const WSAEINPROGRESS: number;171 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEALREADY` instead. */172 const WSAEALREADY: number;173 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAENOTSOCK` instead. */174 const WSAENOTSOCK: number;175 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEDESTADDRREQ` instead. */176 const WSAEDESTADDRREQ: number;177 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEMSGSIZE` instead. */178 const WSAEMSGSIZE: number;179 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEPROTOTYPE` instead. */180 const WSAEPROTOTYPE: number;181 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAENOPROTOOPT` instead. */182 const WSAENOPROTOOPT: number;183 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEPROTONOSUPPORT` instead. */184 const WSAEPROTONOSUPPORT: number;185 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAESOCKTNOSUPPORT` instead. */186 const WSAESOCKTNOSUPPORT: number;187 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEOPNOTSUPP` instead. */188 const WSAEOPNOTSUPP: number;189 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEPFNOSUPPORT` instead. */190 const WSAEPFNOSUPPORT: number;191 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEAFNOSUPPORT` instead. */192 const WSAEAFNOSUPPORT: number;193 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEADDRINUSE` instead. */194 const WSAEADDRINUSE: number;195 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEADDRNOTAVAIL` instead. */196 const WSAEADDRNOTAVAIL: number;197 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAENETDOWN` instead. */198 const WSAENETDOWN: number;199 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAENETUNREACH` instead. */200 const WSAENETUNREACH: number;201 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAENETRESET` instead. */202 const WSAENETRESET: number;203 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAECONNABORTED` instead. */204 const WSAECONNABORTED: number;205 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAECONNRESET` instead. */206 const WSAECONNRESET: number;207 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAENOBUFS` instead. */208 const WSAENOBUFS: number;209 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEISCONN` instead. */210 const WSAEISCONN: number;211 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAENOTCONN` instead. */212 const WSAENOTCONN: number;213 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAESHUTDOWN` instead. */214 const WSAESHUTDOWN: number;215 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAETOOMANYREFS` instead. */216 const WSAETOOMANYREFS: number;217 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAETIMEDOUT` instead. */218 const WSAETIMEDOUT: number;219 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAECONNREFUSED` instead. */220 const WSAECONNREFUSED: number;221 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAELOOP` instead. */222 const WSAELOOP: number;223 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAENAMETOOLONG` instead. */224 const WSAENAMETOOLONG: number;225 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEHOSTDOWN` instead. */226 const WSAEHOSTDOWN: number;227 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEHOSTUNREACH` instead. */228 const WSAEHOSTUNREACH: number;229 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAENOTEMPTY` instead. */230 const WSAENOTEMPTY: number;231 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEPROCLIM` instead. */232 const WSAEPROCLIM: number;233 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEUSERS` instead. */234 const WSAEUSERS: number;235 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEDQUOT` instead. */236 const WSAEDQUOT: number;237 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAESTALE` instead. */238 const WSAESTALE: number;239 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEREMOTE` instead. */240 const WSAEREMOTE: number;241 /** @deprecated since v6.3.0 - use `os.constants.errno.WSASYSNOTREADY` instead. */242 const WSASYSNOTREADY: number;243 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAVERNOTSUPPORTED` instead. */244 const WSAVERNOTSUPPORTED: number;245 /** @deprecated since v6.3.0 - use `os.constants.errno.WSANOTINITIALISED` instead. */246 const WSANOTINITIALISED: number;247 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEDISCON` instead. */248 const WSAEDISCON: number;249 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAENOMORE` instead. */250 const WSAENOMORE: number;251 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAECANCELLED` instead. */252 const WSAECANCELLED: number;253 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEINVALIDPROCTABLE` instead. */254 const WSAEINVALIDPROCTABLE: number;255 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEINVALIDPROVIDER` instead. */256 const WSAEINVALIDPROVIDER: number;257 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEPROVIDERFAILEDINIT` instead. */258 const WSAEPROVIDERFAILEDINIT: number;259 /** @deprecated since v6.3.0 - use `os.constants.errno.WSASYSCALLFAILURE` instead. */260 const WSASYSCALLFAILURE: number;261 /** @deprecated since v6.3.0 - use `os.constants.errno.WSASERVICE_NOT_FOUND` instead. */262 const WSASERVICE_NOT_FOUND: number;263 /** @deprecated since v6.3.0 - use `os.constants.errno.WSATYPE_NOT_FOUND` instead. */264 const WSATYPE_NOT_FOUND: number;265 /** @deprecated since v6.3.0 - use `os.constants.errno.WSA_E_NO_MORE` instead. */266 const WSA_E_NO_MORE: number;267 /** @deprecated since v6.3.0 - use `os.constants.errno.WSA_E_CANCELLED` instead. */268 const WSA_E_CANCELLED: number;269 /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEREFUSED` instead. */270 const WSAEREFUSED: number;271 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGHUP` instead. */272 const SIGHUP: number;273 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGINT` instead. */274 const SIGINT: number;275 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGILL` instead. */276 const SIGILL: number;277 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGABRT` instead. */278 const SIGABRT: number;279 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGFPE` instead. */280 const SIGFPE: number;281 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGKILL` instead. */282 const SIGKILL: number;283 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGSEGV` instead. */284 const SIGSEGV: number;285 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGTERM` instead. */286 const SIGTERM: number;287 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGBREAK` instead. */288 const SIGBREAK: number;289 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGWINCH` instead. */290 const SIGWINCH: number;291 const SSL_OP_ALL: number;292 const SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION: number;293 const SSL_OP_CIPHER_SERVER_PREFERENCE: number;294 const SSL_OP_CISCO_ANYCONNECT: number;295 const SSL_OP_COOKIE_EXCHANGE: number;296 const SSL_OP_CRYPTOPRO_TLSEXT_BUG: number;297 const SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS: number;298 const SSL_OP_EPHEMERAL_RSA: number;299 const SSL_OP_LEGACY_SERVER_CONNECT: number;300 const SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER: number;301 const SSL_OP_MICROSOFT_SESS_ID_BUG: number;302 const SSL_OP_MSIE_SSLV2_RSA_PADDING: number;303 const SSL_OP_NETSCAPE_CA_DN_BUG: number;304 const SSL_OP_NETSCAPE_CHALLENGE_BUG: number;305 const SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG: number;306 const SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG: number;307 const SSL_OP_NO_COMPRESSION: number;308 const SSL_OP_NO_QUERY_MTU: number;309 const SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION: number;310 const SSL_OP_NO_SSLv2: number;311 const SSL_OP_NO_SSLv3: number;312 const SSL_OP_NO_TICKET: number;313 const SSL_OP_NO_TLSv1: number;314 const SSL_OP_NO_TLSv1_1: number;315 const SSL_OP_NO_TLSv1_2: number;316 const SSL_OP_PKCS1_CHECK_1: number;317 const SSL_OP_PKCS1_CHECK_2: number;318 const SSL_OP_SINGLE_DH_USE: number;319 const SSL_OP_SINGLE_ECDH_USE: number;320 const SSL_OP_SSLEAY_080_CLIENT_DH_BUG: number;321 const SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG: number;322 const SSL_OP_TLS_BLOCK_PADDING_BUG: number;323 const SSL_OP_TLS_D5_BUG: number;324 const SSL_OP_TLS_ROLLBACK_BUG: number;325 const ENGINE_METHOD_DSA: number;326 const ENGINE_METHOD_DH: number;327 const ENGINE_METHOD_RAND: number;328 const ENGINE_METHOD_ECDH: number;329 const ENGINE_METHOD_ECDSA: number;330 const ENGINE_METHOD_CIPHERS: number;331 const ENGINE_METHOD_DIGESTS: number;332 const ENGINE_METHOD_STORE: number;333 const ENGINE_METHOD_PKEY_METHS: number;334 const ENGINE_METHOD_PKEY_ASN1_METHS: number;335 const ENGINE_METHOD_ALL: number;336 const ENGINE_METHOD_NONE: number;337 const DH_CHECK_P_NOT_SAFE_PRIME: number;338 const DH_CHECK_P_NOT_PRIME: number;339 const DH_UNABLE_TO_CHECK_GENERATOR: number;340 const DH_NOT_SUITABLE_GENERATOR: number;341 const RSA_PKCS1_PADDING: number;342 const RSA_SSLV23_PADDING: number;343 const RSA_NO_PADDING: number;344 const RSA_PKCS1_OAEP_PADDING: number;345 const RSA_X931_PADDING: number;346 const RSA_PKCS1_PSS_PADDING: number;347 const POINT_CONVERSION_COMPRESSED: number;348 const POINT_CONVERSION_UNCOMPRESSED: number;349 const POINT_CONVERSION_HYBRID: number;350 const O_RDONLY: number;351 const O_WRONLY: number;352 const O_RDWR: number;353 const S_IFMT: number;354 const S_IFREG: number;355 const S_IFDIR: number;356 const S_IFCHR: number;357 const S_IFBLK: number;358 const S_IFIFO: number;359 const S_IFSOCK: number;360 const S_IRWXU: number;361 const S_IRUSR: number;362 const S_IWUSR: number;363 const S_IXUSR: number;364 const S_IRWXG: number;365 const S_IRGRP: number;366 const S_IWGRP: number;367 const S_IXGRP: number;368 const S_IRWXO: number;369 const S_IROTH: number;370 const S_IWOTH: number;371 const S_IXOTH: number;372 const S_IFLNK: number;373 const O_CREAT: number;374 const O_EXCL: number;375 const O_NOCTTY: number;376 const O_DIRECTORY: number;377 const O_NOATIME: number;378 const O_NOFOLLOW: number;379 const O_SYNC: number;380 const O_DSYNC: number;381 const O_SYMLINK: number;382 const O_DIRECT: number;383 const O_NONBLOCK: number;384 const O_TRUNC: number;385 const O_APPEND: number;386 const F_OK: number;387 const R_OK: number;388 const W_OK: number;389 const X_OK: number;390 const COPYFILE_EXCL: number;391 const COPYFILE_FICLONE: number;392 const COPYFILE_FICLONE_FORCE: number;393 const UV_UDP_REUSEADDR: number;394 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGQUIT` instead. */395 const SIGQUIT: number;396 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGTRAP` instead. */397 const SIGTRAP: number;398 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGIOT` instead. */399 const SIGIOT: number;400 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGBUS` instead. */401 const SIGBUS: number;402 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGUSR1` instead. */403 const SIGUSR1: number;404 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGUSR2` instead. */405 const SIGUSR2: number;406 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGPIPE` instead. */407 const SIGPIPE: number;408 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGALRM` instead. */409 const SIGALRM: number;410 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGCHLD` instead. */411 const SIGCHLD: number;412 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGSTKFLT` instead. */413 const SIGSTKFLT: number;414 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGCONT` instead. */415 const SIGCONT: number;416 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGSTOP` instead. */417 const SIGSTOP: number;418 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGTSTP` instead. */419 const SIGTSTP: number;420 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGTTIN` instead. */421 const SIGTTIN: number;422 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGTTOU` instead. */423 const SIGTTOU: number;424 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGURG` instead. */425 const SIGURG: number;426 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGXCPU` instead. */427 const SIGXCPU: number;428 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGXFSZ` instead. */429 const SIGXFSZ: number;430 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGVTALRM` instead. */431 const SIGVTALRM: number;432 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGPROF` instead. */433 const SIGPROF: number;434 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGIO` instead. */435 const SIGIO: number;436 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGPOLL` instead. */437 const SIGPOLL: number;438 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGPWR` instead. */439 const SIGPWR: number;440 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGSYS` instead. */441 const SIGSYS: number;442 /** @deprecated since v6.3.0 - use `os.constants.signals.SIGUNUSED` instead. */443 const SIGUNUSED: number;444 const defaultCoreCipherList: string;445 const defaultCipherList: string;446 const ENGINE_METHOD_RSA: number;447 const ALPN_ENABLED: number;...
navtreeindex2.js
Source:navtreeindex2.js
1var NAVTREEINDEX2 =2{3"group__rtx__evr__semaphore.html#gad46ee88b57aed4c666aec773560aebad":[6,1,3,6,2],4"group__rtx__evr__semaphore.html#gaeb0605679ad9f686dd0f40610c8af772":[6,1,3,6,12],5"group__rtx__evr__semaphore.html#gafd91c9bb268a48b394571a9fc1809019":[6,1,3,6,4],6"group__rtx__evr__thread.html":[6,1,3,2],7"group__rtx__evr__thread.html#ga02088c2d38cbc31a46675334f63f37f5":[6,1,3,2,15],8"group__rtx__evr__thread.html#ga1200f51e9152810e76386e241904427c":[6,1,3,2,6],9"group__rtx__evr__thread.html#ga18fd5da10c8a5b39ad587ab610d9f51e":[6,1,3,2,2],10"group__rtx__evr__thread.html#ga1999d77992b03347abdca7ec17f91cca":[6,1,3,2,27],11"group__rtx__evr__thread.html#ga1c3120fb155ca19ea5c9089a446ef19d":[6,1,3,2,5],12"group__rtx__evr__thread.html#ga2829dfe558a469d913f4eb0ccd6d29c6":[6,1,3,2,22],13"group__rtx__evr__thread.html#ga392bb7a8dcd6d126a5e424ab01aa8a80":[6,1,3,2,17],14"group__rtx__evr__thread.html#ga396ce41f68401a885f0ae46a54e8dd1f":[6,1,3,2,1],15"group__rtx__evr__thread.html#ga3faae4d941ddecfe773ef9f3efe8b901":[6,1,3,2,21],16"group__rtx__evr__thread.html#ga40c0d21a5c0d128f09966aeeca37ecba":[6,1,3,2,4],17"group__rtx__evr__thread.html#ga47b64cfdc5c5410dde2c5d9145c7d79b":[6,1,3,2,18],18"group__rtx__evr__thread.html#ga4a2879b06201a29d8c223253d41cca43":[6,1,3,2,0],19"group__rtx__evr__thread.html#ga4f849a33d2c95754b11a499d77503b5c":[6,1,3,2,3],20"group__rtx__evr__thread.html#ga4fd48ef48eefb01a6252cfc02ea169ab":[6,1,3,2,7],21"group__rtx__evr__thread.html#ga69f6e60c1e29103cced03f75c96f3591":[6,1,3,2,30],22"group__rtx__evr__thread.html#ga6abe7d167bd5bb91c3d6bf6d2bb417aa":[6,1,3,2,24],23"group__rtx__evr__thread.html#ga6d5932965736e0f2f35fe2d87bd622e7":[6,1,3,2,26],24"group__rtx__evr__thread.html#ga86ac910ac88d8fe54206a12d7ed69a27":[6,1,3,2,19],25"group__rtx__evr__thread.html#ga8b25f2548a9f3c069431131169d170ac":[6,1,3,2,14],26"group__rtx__evr__thread.html#gaa268fe19f933b8d2a830063560694561":[6,1,3,2,11],27"group__rtx__evr__thread.html#gaa557f9732a8a2120f08cfb2694aa26fb":[6,1,3,2,23],28"group__rtx__evr__thread.html#gaa5aa707fc2d6b44bfcb86bce2e2e90f3":[6,1,3,2,25],29"group__rtx__evr__thread.html#gab0d959bc625cb3e7ddd6bf7c302f631e":[6,1,3,2,12],30"group__rtx__evr__thread.html#gab46562848142ce5ea806d629fd000168":[6,1,3,2,31],31"group__rtx__evr__thread.html#gab9efd66ed2edb439c5081806c9b63cf9":[6,1,3,2,20],32"group__rtx__evr__thread.html#gabf4a015bd3fb2a33c0d105a871aaba72":[6,1,3,2,8],33"group__rtx__evr__thread.html#gac60670562ed1efbfbc61036d881c8af9":[6,1,3,2,16],34"group__rtx__evr__thread.html#gada73306deca99987b104aa9840fdd4e2":[6,1,3,2,9],35"group__rtx__evr__thread.html#gadbbee398f4fab418c9b8115fc7392ff8":[6,1,3,2,28],36"group__rtx__evr__thread.html#gadd45d32305aa45668a36f2c9f0f4c758":[6,1,3,2,29],37"group__rtx__evr__thread.html#gaf41ff549329cf2feb4a1efe49c518e30":[6,1,3,2,13],38"group__rtx__evr__thread.html#gafed41f1b6bcdde658ca306f8a6d7ac7e":[6,1,3,2,10],39"group__rtx__evr__timer.html":[6,1,3,3],40"group__rtx__evr__timer.html#ga27cf05adc61d30a0e68f380c96ea5f93":[6,1,3,3,7],41"group__rtx__evr__timer.html#ga3fb6204c5db9d92bf63a3070cd2b6895":[6,1,3,3,3],42"group__rtx__evr__timer.html#ga453d82bfa65dfbbaffbd5b4ff4f050b2":[6,1,3,3,5],43"group__rtx__evr__timer.html#ga474f3bd3ed38945b087f37fd709560b7":[6,1,3,3,11],44"group__rtx__evr__timer.html#ga601e3617903900524062c4f9069d052f":[6,1,3,3,4],45"group__rtx__evr__timer.html#ga6387808c22d6e186057ed744618d2487":[6,1,3,3,2],46"group__rtx__evr__timer.html#ga6fa5a23f241d765ae22ff1862c6f3b3f":[6,1,3,3,9],47"group__rtx__evr__timer.html#gab0dbdf460fc26b25f3987c44fb0ebdeb":[6,1,3,3,6],48"group__rtx__evr__timer.html#gaccd59c7ae2351e0a1bf96cdb749c049f":[6,1,3,3,8],49"group__rtx__evr__timer.html#gacd46f9d31d256c27c72e47d5be5e9d09":[6,1,3,3,1],50"group__rtx__evr__timer.html#gaea5811cc74861117eccbcbb997d36133":[6,1,3,3,10],51"group__rtx__evr__timer.html#gaf1b516bf697288e67fe797662b1873b0":[6,1,3,3,0],52"index.html":[],53"misraCompliance5.html":[5,6],54"modules.html":[6],55"os2Migration.html":[4],56"os2MigrationFunctions.html":[4,1],57"os2MigrationFunctions.html#mig_eventFlags":[4,1,3],58"os2MigrationFunctions.html#mig_kernel":[4,1,0],59"os2MigrationFunctions.html#mig_mailQueue":[4,1,10],60"os2MigrationFunctions.html#mig_memPool":[4,1,8],61"os2MigrationFunctions.html#mig_msgQueue":[4,1,9],62"os2MigrationFunctions.html#mig_mutex":[4,1,6],63"os2MigrationFunctions.html#mig_sem":[4,1,7],64"os2MigrationFunctions.html#mig_signalEvents":[4,1,11],65"os2MigrationFunctions.html#mig_threadFlags":[4,1,2],66"os2MigrationFunctions.html#mig_threadMgmt":[4,1,1],67"os2MigrationFunctions.html#mig_timer":[4,1,5],68"os2MigrationFunctions.html#mig_wait":[4,1,4],69"os2MigrationGuide.html":[4,0],70"os2MigrationGuide.html#MigL1":[4,0,0],71"os2MigrationGuide.html#MigL2":[4,0,1],72"os2MigrationGuide.html#MigL3":[4,0,2],73"pages.html":[],74"rtosValidation.html":[3],75"rtosValidation.html#test_output":[3,0],76"rtos_apicpp.html":[2,1],77"rtos_revisionHistory.html":[0],78"rtos_revisionHistory.html#GenRTOS2Rev":[0,0],79"rtos_revisionHistory.html#RTX5RevisionHistory":[0,1],80"rtx5_impl.html":[5],81"rtx__os_8h.html#a0046cd4086246454426394e75d5ae872":[7,12,2],82"rtx__os_8h.html#a0354dd9f726694843f2a01df98c5641c":[7,4,3],83"rtx__os_8h.html#a09c2a312ca0311b5e24340fe8f827077":[7,17,0],84"rtx__os_8h.html#a0a8aa7db62759b8d67cca3ca2af45aa0":[7,6,1],85"rtx__os_8h.html#a0ad043071ccc7a261d79a759dc9c6f0c":[7,20,3],86"rtx__os_8h.html#a0b57aa10271a66f3dc936bba1d2f3830":[7,24,1],87"rtx__os_8h.html#a0b57aa10271a66f3dc936bba1d2f3830":[7,20,1],88"rtx__os_8h.html#a0c351026ff9700193d95998c65d0bf8e":[7,11,2],89"rtx__os_8h.html#a10ae9fc7d453b0dd525d0edf2ede7961":[7,18,0],90"rtx__os_8h.html#a11175ec6a8801a32e287f84e82908bfb":[7,15,3],91"rtx__os_8h.html#a121e21e21369e7ccff1b47800c32797e":[7,12,1],92"rtx__os_8h.html#a13aeb46a18b12ae911abead8e497ffd3":[7,9,9],93"rtx__os_8h.html#a13b5bfe96f3e2fe411c9f66f4a582adf":[7,10,2],94"rtx__os_8h.html#a1d8a4975693ef1eb9ca54878098d608f":[7,18,2],95"rtx__os_8h.html#a1e6927fa1486224044e568f9c370519b":[7,24,0],96"rtx__os_8h.html#a1e6927fa1486224044e568f9c370519b":[7,20,0],97"rtx__os_8h.html#a1effca68f27e85391274c5e2987d693c":[7,15,5],98"rtx__os_8h.html#a25a01bb859125507013a2fe9737d3c32":[7,13,4],99"rtx__os_8h.html#a25a01bb859125507013a2fe9737d3c32":[7,7,4],100"rtx__os_8h.html#a2817f701d5e1a1181e657251363295fd":[7,10,1],101"rtx__os_8h.html#a2c127bf32ccb4edf2bf22fea5a00e494":[7,13,2],102"rtx__os_8h.html#a2c127bf32ccb4edf2bf22fea5a00e494":[7,7,2],103"rtx__os_8h.html#a2d0644ba3070f630371f24c452e2a26f":[7,6,6],104"rtx__os_8h.html#a2ffe4e77325d9a7152f7086ea7aa5114":[7,10,0],105"rtx__os_8h.html#a2ffe4e77325d9a7152f7086ea7aa5114":[7,5,1],106"rtx__os_8h.html#a310b3e01cc8e274529353210db5a78c3":[7,4,8],107"rtx__os_8h.html#a3d6d4ee231cd6db41ee358a5676b1a9d":[7,4,10],108"rtx__os_8h.html#a3e07bcf21ce5250f3dc0f1ec4ebc938d":[7,4,9],109"rtx__os_8h.html#a42d7108f7184dcb944cdf73f649ad2dd":[7,9,8],110"rtx__os_8h.html#a444139ba664bc8c262139a9addddb48c":[7,22,1],111"rtx__os_8h.html#a4a598d941460a6d8ebfbd9c622e2876a":[7,22,3],112"rtx__os_8h.html#a533d987ff1ebc075cf974ae57acd8a0e":[7,11,4],113"rtx__os_8h.html#a534f37c2b021c8242492bedfe48b0338":[7,9,6],114"rtx__os_8h.html#a540b2b79850c654b3f5756c488314b8d":[7,9,4],115"rtx__os_8h.html#a5973e7102782a9936a5e0d1417863675":[7,4,1],116"rtx__os_8h.html#a61326117ed4a9ddf3f754e71e119e5b3":[7,11,1],117"rtx__os_8h.html#a675214f6d8913a15569ca32f3a505e46":[7,13,6],118"rtx__os_8h.html#a675214f6d8913a15569ca32f3a505e46":[7,7,6],119"rtx__os_8h.html#a68d0eb20a4cb1daaec11ac0ef1dd9399":[7,6,4],120"rtx__os_8h.html#a694e5f79185db270e087e94719177ca0":[7,4,7],121"rtx__os_8h.html#a6aa2c0bcb2024f1e4c38f9e8f6769c09":[7,4,6],122"rtx__os_8h.html#a6b4c66676a5bc985c28b71ac4ac79159":[7,4,2],123"rtx__os_8h.html#a72d4e2550fcee67cc139fca04505a903":[7,9,2],124"rtx__os_8h.html#a773b39d480759f67926cb18ae2219281":[7,4,0],125"rtx__os_8h.html#a7b7d02cdf33432995469f29878f7dcda":[7,9,0],126"rtx__os_8h.html#a89570e219f9fb794b8353207a7592f95":[7,20,5],127"rtx__os_8h.html#a8afd5feb676df99867375957b0587451":[7,24,5],128"rtx__os_8h.html#a8d777f385d3dfec8815d20f7496026dc":[7,10,4],129"rtx__os_8h.html#a8d777f385d3dfec8815d20f7496026dc":[7,5,0],130"rtx__os_8h.html#a8ee60a2e00c90d7e00d5069188dc115b":[7,15,6],131"rtx__os_8h.html#a8f8f80d37794cde9472343e4487ba3eb":[7,24,4],132"rtx__os_8h.html#a90272dda245ae1fb3cf197e91a8689dc":[7,16,2],133"rtx__os_8h.html#a9e3fb1e50a1c71b2337df296222d9553":[7,22,2],134"rtx__os_8h.html#a9ed39e2ea931586b6a985a6942ef573e":[7,11,0],135"rtx__os_8h.html#a9efab2399c7c560b34de477b9aa0a465":[7,12,3],136"rtx__os_8h.html#aa111194ee30ea4e76b9dfcac8a03a8d9":[7,22,5],137"rtx__os_8h.html#aa2585d779da0ab21273a8d92de9a0ebe":[7,20,2],138"rtx__os_8h.html#aa2585d779da0ab21273a8d92de9a0ebe":[7,24,2],139"rtx__os_8h.html#aa30bb7d2484db1812c1aaf77a23cd11e":[7,4,4],140"rtx__os_8h.html#aa53108f7543b75adbb34afc035d4cdf6":[7,15,0],141"rtx__os_8h.html#aab3d7e5f552f1830b1613e1498cef7cb":[7,6,5],142"rtx__os_8h.html#ab2fdab230a2c39f3595a947861863cb7":[7,15,1],143"rtx__os_8h.html#ab70cdb878a204fecf91c7dd1af312421":[7,5,2],144"rtx__os_8h.html#aba0fcdc6eda7e9f65c1d1904b2fff919":[7,22,4],145"rtx__os_8h.html#ac013bca5f28bebf36a3372da78107e97":[7,4,5],146"rtx__os_8h.html#ac68271a63ddbc431c307beb7d2918275":[7,10,3],147"rtx__os_8h.html#ac8a94d8dcb13e89d5886dabf7cd9945a":[7,7,7],148"rtx__os_8h.html#ac8a94d8dcb13e89d5886dabf7cd9945a":[7,13,7],149"rtx__os_8h.html#acb7bc06bed6f6408d719334fc41698c7":[7,24,3],150"rtx__os_8h.html#acd99bb05ca015e7d74448acb1deba7ca":[7,9,1],151"rtx__os_8h.html#ace1bc7755b9332cfacdf8ee58ef2e3c1":[7,13,5],152"rtx__os_8h.html#ace1bc7755b9332cfacdf8ee58ef2e3c1":[7,7,5],153"rtx__os_8h.html#ad0cab90d8d20d57e2f2b9be52f7dd25d":[7,17,1],154"rtx__os_8h.html#ad2649f7342615613f26a8603203bba7b":[7,9,5],155"rtx__os_8h.html#ad2b4e6d37acc8020701610f54c0c8910":[7,20,4],156"rtx__os_8h.html#ad5ee660a662e3d7897a97f62ce6ecdc1":[7,6,3],157"rtx__os_8h.html#ad88a39594ffe6ab1016cf59517219e21":[7,9,3],158"rtx__os_8h.html#ad9cc02dbd824d3b15349daa809bcfee9":[7,15,4],159"rtx__os_8h.html#adb7453887f86cc0d98e37becf4c83682":[7,6,7],160"rtx__os_8h.html#adbd8f5195a8c472906488694e50bc57d":[7,11,3],161"rtx__os_8h.html#adc127f5d2483352fd20eaddb38feb6d2":[7,18,1],162"rtx__os_8h.html#adc127f5d2483352fd20eaddb38feb6d2":[7,13,1],163"rtx__os_8h.html#adc127f5d2483352fd20eaddb38feb6d2":[7,7,1],164"rtx__os_8h.html#adc127f5d2483352fd20eaddb38feb6d2":[7,16,0],165"rtx__os_8h.html#addc777bf5285ab03de6787385e6ea053":[7,22,0],166"rtx__os_8h.html#ae20e71788b6e24c734e1a4fbfb1bc55c":[7,6,0],167"rtx__os_8h.html#ae5e5c0754f1e26bf915455e21cf2eba5":[7,11,5],168"rtx__os_8h.html#ae5e5c0754f1e26bf915455e21cf2eba5":[7,16,1],169"rtx__os_8h.html#ae64a3e930a8e3d1fb28038db9bc514d9":[7,9,7],170"rtx__os_8h.html#aec2f993aec2c27fc750119ab17b16cdb":[7,15,2],171"rtx__os_8h.html#af1b7cb88db5bf93bba7cbcaa503cbd6c":[7,13,3],172"rtx__os_8h.html#af1b7cb88db5bf93bba7cbcaa503cbd6c":[7,7,3],173"rtx__os_8h.html#af77cba93c22c4dac7ea999b28b6b686d":[7,6,2],174"rtx__os_8h.html#afac2a47adace059aff113283a03f6760":[7,13,0],175"rtx__os_8h.html#afac2a47adace059aff113283a03f6760":[7,12,0],176"rtx__os_8h.html#afac2a47adace059aff113283a03f6760":[7,7,0],177"rtx__os_8h.html#structosRtxConfig__t":[7,4],178"rtx__os_8h.html#structosRtxConfig__t_8isr__queue":[7,5],179"rtx__os_8h.html#structosRtxConfig__t_8mem":[7,6],180"rtx__os_8h.html#structosRtxConfig__t_8mpi":[7,7],181"rtx__os_8h.html#structosRtxInfo__t":[7,9],182"rtx__os_8h.html#structosRtxInfo__t_8isr__queue":[7,10],183"rtx__os_8h.html#structosRtxInfo__t_8kernel":[7,11],184"rtx__os_8h.html#structosRtxInfo__t_8mem":[7,12],185"rtx__os_8h.html#structosRtxInfo__t_8mpi":[7,13],186"rtx__os_8h.html#structosRtxInfo__t_8thread":[7,15],187"rtx__os_8h.html#structosRtxInfo__t_8thread_8robin":[7,16],188"rtx__os_8h.html#structosRtxInfo__t_8thread_8run":[7,17],189"rtx__os_8h.html#structosRtxInfo__t_8timer":[7,18],190"rtx__os_8h.html#structosRtxMessage__t":[7,20],191"rtx__os_8h.html#structosRtxMpInfo__t":[7,22],192"rtx__os_8h.html#structosRtxObject__t":[7,24],193"structosRtxInfo__t_8post__process.html":[7,14],194"structosRtxInfo__t_8post__process.html#a14029a4d88d9de5aeeb4b90dea5b1c4f":[7,14,4],195"structosRtxInfo__t_8post__process.html#a448b397ae9f093b1632dd42680d003bf":[7,14,0],196"structosRtxInfo__t_8post__process.html#a701cf47135bf3d62510b25b6dcdc19a8":[7,14,2],197"structosRtxInfo__t_8post__process.html#a87c97ad39fd308d767c9b0870aa57932":[7,14,1],198"structosRtxInfo__t_8post__process.html#afa86c80888f72693bbf3bc6c05856159":[7,14,3],199"technicalData5.html":[5,5],200"theory_of_operation.html":[5,1],201"theory_of_operation.html#CMSIS_RTOS_ISR_Calls":[5,1,6],202"theory_of_operation.html#CMSIS_RTOS_TimeOutValue":[5,1,5],203"theory_of_operation.html#GlobalMemoryPool":[5,1,1,0],204"theory_of_operation.html#MemoryAllocation":[5,1,1],205"theory_of_operation.html#ObjectMemoryPool":[5,1,1,1],206"theory_of_operation.html#StaticObjectMemory":[5,1,1,2],207"theory_of_operation.html#SystemStartup":[5,1,0],208"theory_of_operation.html#ThreadStack":[5,1,2],209"theory_of_operation.html#TickLess":[5,1,7],210"theory_of_operation.html#kernelTimer":[5,1,4],211"theory_of_operation.html#lowPower":[5,1,3],212"theory_of_operation.html#rtx_os_h":[5,1,8]
...
OS.js
Source:OS.js
1/**2 * @aside guide environment_package3 *4 * Provide useful information about the current operating system environment. Access the global instance stored in5 * Ext.os. Example:6 *7 * if (Ext.os.is.Windows) {8 * // Windows specific code here9 * }10 *11 * if (Ext.os.is.iOS) {12 * // iPad, iPod, iPhone, etc.13 * }14 *15 * console.log("Version " + Ext.os.version);16 *17 * For a full list of supported values, refer to: {@link Ext.env.OS#is}18 */19Ext.define('Ext.env.OS', {20 requires: ['Ext.Version'],21 statics: {22 names: {23 ios: 'iOS',24 android: 'Android',25 webos: 'webOS',26 blackberry: 'BlackBerry',27 rimTablet: 'RIMTablet',28 mac: 'MacOS',29 win: 'Windows',30 linux: 'Linux',31 bada: 'Bada',32 other: 'Other'33 },34 prefixes: {35 ios: 'i(?:Pad|Phone|Pod)(?:.*)CPU(?: iPhone)? OS ',36 android: '(Android |HTC_|Silk/)', // Some HTC devices ship with an OSX userAgent by default,37 // so we need to add a direct check for HTC_38 blackberry: 'BlackBerry(?:.*)Version\/',39 rimTablet: 'RIM Tablet OS ',40 webos: '(?:webOS|hpwOS)\/',41 bada: 'Bada\/'42 }43 },44 /**45 * A "hybrid" property, can be either accessed as a method call, i.e:46 *47 * if (Ext.os.is('Android')) { ... }48 *49 * or as an object with boolean properties, i.e:50 *51 * if (Ext.os.is.Android) { ... }52 *53 * Versions can be conveniently checked as well. For example:54 *55 * if (Ext.os.is.Android2) { ... } // Equivalent to (Ext.os.is.Android && Ext.os.version.equals(2))56 *57 * if (Ext.os.is.iOS32) { ... } // Equivalent to (Ext.os.is.iOS && Ext.os.version.equals(3.2))58 *59 * Note that only {@link Ext.Version#getMajor major component} and {@link Ext.Version#getShortVersion simplified}60 * value of the version are available via direct property checking. Supported values are: iOS, iPad, iPhone, iPod,61 * Android, WebOS, BlackBerry, Bada, MacOS, Windows, Linux and Other62 * @param {String} value The OS name to check63 * @return {Boolean}64 */65 is: Ext.emptyFn,66 /**67 * @property {String} [name=null]68 * Read-only - the full name of the current operating system Possible values are: iOS, Android, WebOS, BlackBerry,69 * MacOS, Windows, Linux and Other70 */71 name: null,72 /**73 * @property {Ext.Version} [version=null]74 * Read-only, refer to {@link Ext.Version}75 */76 version: null,77 setFlag: function(name, value) {78 if (typeof value == 'undefined') {79 value = true;80 }81 this.is[name] = value;82 this.is[name.toLowerCase()] = value;83 return this;84 },85 constructor: function(userAgent, platform) {86 var statics = this.statics(),87 names = statics.names,88 prefixes = statics.prefixes,89 name,90 version = '',91 i, prefix, match, item, is;92 is = this.is = function(name) {93 return this.is[name] === true;94 };95 for (i in prefixes) {96 if (prefixes.hasOwnProperty(i)) {97 prefix = prefixes[i];98 match = userAgent.match(new RegExp('(?:'+prefix+')([^\\s;]+)'));99 if (match) {100 name = names[i];101 // This is here because some HTC android devices show an OSX Snow Leopard userAgent by default.102 // And the Kindle Fire doesn't have any indicator of Android as the OS in its User Agent103 if (match[1] && (match[1] == "HTC_" || match[1] == "Silk/")) {104 version = new Ext.Version("2.3");105 } else {106 version = new Ext.Version(match[match.length - 1]);107 }108 break;109 }110 }111 }112 if (!name) {113 name = names[(userAgent.toLowerCase().match(/mac|win|linux/) || ['other'])[0]];114 version = new Ext.Version('');115 }116 this.name = name;117 this.version = version;118 if (platform) {119 this.setFlag(platform);120 }121 this.setFlag(name);122 if (version) {123 this.setFlag(name + (version.getMajor() || ''));124 this.setFlag(name + version.getShortVersion());125 }126 for (i in names) {127 if (names.hasOwnProperty(i)) {128 item = names[i];129 if (!is.hasOwnProperty(name)) {130 this.setFlag(item, (name === item));131 }132 }133 }134 return this;135 }136}, function() {137 var navigation = Ext.global.navigator,138 userAgent = navigation.userAgent,139 osEnv, osName, deviceType;140 //<deprecated product=touch since=2.0>141 this.override('constructor', function() {142 this.callOverridden(arguments);143 var is = this.is;144 if (is.MacOS) {145 Ext.deprecatePropertyValue(is, 'Mac', true, "Ext.is.Mac is deprecated, please use Ext.os.is.MacOS instead");146 Ext.deprecatePropertyValue(is, 'mac', true, "Ext.is.Mac is deprecated, please use Ext.os.is.MacOS instead");147 }148 if (is.BlackBerry) {149 Ext.deprecatePropertyValue(is, 'Blackberry', true, "Ext.is.Blackberry is deprecated, please use Ext.os.is.BlackBerry instead");150 }151 return this;152 });153 //</deprecated>154 Ext.os = osEnv = new this(userAgent, navigation.platform);155 osName = osEnv.name;156 var search = window.location.search.match(/deviceType=(Tablet|Phone)/),157 nativeDeviceType = window.deviceType;158 // Override deviceType by adding a get variable of deviceType. NEEDED FOR DOCS APP.159 // E.g: example/kitchen-sink.html?deviceType=Phone160 if (search && search[1]) {161 deviceType = search[1];162 }163 else if (nativeDeviceType === 'iPhone') {164 deviceType = 'Phone';165 }166 else if (nativeDeviceType === 'iPad') {167 deviceType = 'Tablet';168 }169 else {170 if (!osEnv.is.Android && !osEnv.is.iOS && /Windows|Linux|MacOS/.test(osName)) {171 deviceType = 'Desktop';172 }173 else if (osEnv.is.iPad || osEnv.is.Android3 || (osEnv.is.Android4 && userAgent.search(/mobile/i) == -1)) {174 deviceType = 'Tablet';175 }176 else {177 deviceType = 'Phone';178 }179 }180 osEnv.setFlag(deviceType, true);181 osEnv.deviceType = deviceType;182 //<deprecated product=touch since=2.0>183 var flags = Ext.os.is,184 name;185 if (!Ext.is) {186 Ext.is = {};187 }188 for (name in flags) {189 if (flags.hasOwnProperty(name)) {190 Ext.deprecatePropertyValue(Ext.is, name, flags[name], "Ext.is." + name + " is deprecated, please use Ext.os.is." + name + " instead");191 }192 }193 //</deprecated>194 /**195 * @class Ext.is196 * Used to detect if the current browser supports a certain feature, and the type of the current browser.197 * @deprecated 2.0.0198 * Please refer to the {@link Ext.env.Browser}, {@link Ext.env.OS} and {@link Ext.feature.has} classes instead.199 */...
test_std.js
Source:test_std.js
...115 `;116 obj = std.parseExtJSON(input);117 assert(JSON.stringify(obj), expected);118}119function test_os()120{121 var fd, fpath, fname, fdir, buf, buf2, i, files, err, fdate, st, link_path;122 assert(os.isatty(0));123 fdir = "test_tmp_dir";124 fname = "tmp_file.txt";125 fpath = fdir + "/" + fname;126 link_path = fdir + "/test_link";127 128 os.remove(link_path);129 os.remove(fpath);130 os.remove(fdir);131 err = os.mkdir(fdir, 0o755);132 assert(err === 0);133 134 fd = os.open(fpath, os.O_RDWR | os.O_CREAT | os.O_TRUNC);135 assert(fd >= 0);136 137 buf = new Uint8Array(10);138 for(i = 0; i < buf.length; i++)139 buf[i] = i;140 assert(os.write(fd, buf.buffer, 0, buf.length) === buf.length);141 assert(os.seek(fd, 0, std.SEEK_SET) === 0);142 buf2 = new Uint8Array(buf.length);143 assert(os.read(fd, buf2.buffer, 0, buf2.length) === buf2.length);144 145 for(i = 0; i < buf.length; i++)146 assert(buf[i] == buf2[i]);147 148 if (typeof BigInt !== "undefined") {149 assert(os.seek(fd, BigInt(6), std.SEEK_SET), BigInt(6));150 assert(os.read(fd, buf2.buffer, 0, 1) === 1);151 assert(buf[6] == buf2[0]);152 }153 154 assert(os.close(fd) === 0);155 [files, err] = os.readdir(fdir);156 assert(err, 0);157 assert(files.indexOf(fname) >= 0);158 fdate = 10000;159 err = os.utimes(fpath, fdate, fdate);160 assert(err, 0);161 162 [st, err] = os.stat(fpath);163 assert(err, 0);164 assert(st.mode & os.S_IFMT, os.S_IFREG);165 assert(st.mtime, fdate);166 err = os.symlink(fname, link_path);167 assert(err === 0);168 169 [st, err] = os.lstat(link_path);170 assert(err, 0);171 assert(st.mode & os.S_IFMT, os.S_IFLNK);172 [buf, err] = os.readlink(link_path);173 assert(err, 0);174 assert(buf, fname);175 176 assert(os.remove(link_path) === 0);177 [buf, err] = os.getcwd();178 assert(err, 0);179 [buf2, err] = os.realpath(".");180 assert(err, 0);181 assert(buf, buf2);182 183 assert(os.remove(fpath) === 0);184 fd = os.open(fpath, os.O_RDONLY);185 assert(fd < 0);186 assert(os.remove(fdir) === 0);187}188function test_os_exec()189{190 var ret, fds, pid, f, status;191 ret = os.exec(["true"]);192 assert(ret, 0);193 ret = os.exec(["/bin/sh", "-c", "exit 1"], { usePath: false });194 assert(ret, 1);195 196 fds = os.pipe();197 pid = os.exec(["sh", "-c", "echo $FOO"], {198 stdout: fds[1],199 block: false,200 env: { FOO: "hello" },201 } );202 assert(pid >= 0);203 os.close(fds[1]); /* close the write end (as it is only in the child) */204 f = std.fdopen(fds[0], "r");205 assert(f.getline(), "hello");206 assert(f.getline(), null);207 f.close();208 [ret, status] = os.waitpid(pid, 0);209 assert(ret, pid);210 assert(status & 0x7f, 0); /* exited */211 assert(status >> 8, 0); /* exit code */212 pid = os.exec(["cat"], { block: false } );213 assert(pid >= 0);214 os.kill(pid, os.SIGQUIT);215 [ret, status] = os.waitpid(pid, 0);216 assert(ret, pid);217 assert(status & 0x7f, os.SIGQUIT);218}219function test_timer()220{221 var th, i;222 /* just test that a timer can be inserted and removed */223 th = [];224 for(i = 0; i < 3; i++)225 th[i] = os.setTimeout(function () { }, 1000);226 for(i = 0; i < 3; i++)227 os.clearTimeout(th[i]);228}229test_printf();230test_file1();231test_file2();232test_getline();233test_popen();234test_os();235test_os_exec();236test_timer();...
defines_0.js
Source:defines_0.js
1var searchData=2[3 ['os_5fclock',['OS_CLOCK',['../RTX__Conf__CM_8c.html#adff23afdf544a322a38314870f8848b9',1,'RTX_Conf_CM.c']]],4 ['os_5ferror_5ffifo_5fovf',['OS_ERROR_FIFO_OVF',['../RTX__Conf__CM_8c.html#a075d54df14c85a6afe32b7f5c99c9c29',1,'RTX_Conf_CM.c']]],5 ['os_5ferror_5fmbx_5fovf',['OS_ERROR_MBX_OVF',['../RTX__Conf__CM_8c.html#ab715d7d66c341c067ef0a97b55db8a10',1,'RTX_Conf_CM.c']]],6 ['os_5ferror_5fstack_5fovf',['OS_ERROR_STACK_OVF',['../RTX__Conf__CM_8c.html#abf8311a7a239ec56c6d725f926ba766d',1,'RTX_Conf_CM.c']]],7 ['os_5ferror_5ftimer_5fovf',['OS_ERROR_TIMER_OVF',['../RTX__Conf__CM_8c.html#a79d7e388d951f11bd0dabd13f722cea8',1,'RTX_Conf_CM.c']]],8 ['os_5ffifosz',['OS_FIFOSZ',['../RTX__Conf__CM_8c.html#a93c8e36d441750016f9f72e102f68d66',1,'RTX_Conf_CM.c']]],9 ['os_5fmainstksize',['OS_MAINSTKSIZE',['../RTX__Conf__CM_8c.html#a95362a96f44d4314f148ae24edd52f7c',1,'RTX_Conf_CM.c']]],10 ['os_5fmutexcnt',['OS_MUTEXCNT',['../RTX__Conf__CM_8c.html#ad11cf133eea28b601f9a63cd9af9b786',1,'RTX_Conf_CM.c']]],11 ['os_5fprivcnt',['OS_PRIVCNT',['../RTX__Conf__CM_8c.html#a7cfcbf2c4f9d0a63424a2a48592955b1',1,'RTX_Conf_CM.c']]],12 ['os_5fprivstksize',['OS_PRIVSTKSIZE',['../RTX__Conf__CM_8c.html#a6e0d30986e4ae0df44f449a4b3b0fbec',1,'RTX_Conf_CM.c']]],13 ['os_5frobin',['OS_ROBIN',['../RTX__Conf__CM_8c.html#ae34f3058383d9fa9280bbf595618ab0a',1,'RTX_Conf_CM.c']]],14 ['os_5frobintout',['OS_ROBINTOUT',['../RTX__Conf__CM_8c.html#ad89fdd7232cfba74d400080b6bcc0012',1,'RTX_Conf_CM.c']]],15 ['os_5frunpriv',['OS_RUNPRIV',['../RTX__Conf__CM_8c.html#a786924d58be54e943a7e73458cebc51b',1,'RTX_Conf_CM.c']]],16 ['os_5fstkcheck',['OS_STKCHECK',['../RTX__Conf__CM_8c.html#a6ef9e00396f881f0fa9ac877150e5962',1,'RTX_Conf_CM.c']]],17 ['os_5fstkinit',['OS_STKINIT',['../RTX__Conf__CM_8c.html#ac820623da739e4219ee86f15bdcd9752',1,'RTX_Conf_CM.c']]],18 ['os_5fstksize',['OS_STKSIZE',['../RTX__Conf__CM_8c.html#a16495c133349f3e7c27ac933857c1a8c',1,'RTX_Conf_CM.c']]],19 ['os_5ftaskcnt',['OS_TASKCNT',['../RTX__Conf__CM_8c.html#a309353d912327b7f4a2300711ee1b349',1,'RTX_Conf_CM.c']]],20 ['os_5ftick',['OS_TICK',['../RTX__Conf__CM_8c.html#ab6b10bd6d60e95ab28c775757f6bfbcc',1,'RTX_Conf_CM.c']]],21 ['os_5ftimercbqs',['OS_TIMERCBQS',['../RTX__Conf__CM_8c.html#a29701cff84a42494279367ad018f252d',1,'RTX_Conf_CM.c']]],22 ['os_5ftimerprio',['OS_TIMERPRIO',['../RTX__Conf__CM_8c.html#a90af874f1df4dfb0f8821cc2d860dae6',1,'RTX_Conf_CM.c']]],23 ['os_5ftimers',['OS_TIMERS',['../RTX__Conf__CM_8c.html#a23b0f1095632e58b5ac0d8f7dcfdfded',1,'RTX_Conf_CM.c']]],24 ['os_5ftimerstksz',['OS_TIMERSTKSZ',['../RTX__Conf__CM_8c.html#a76d1b01799981a753fc528e600015627',1,'RTX_Conf_CM.c']]],25 ['os_5ftrv',['OS_TRV',['../RTX__Conf__CM_8c.html#a9d55a070ddb219165bd4287f08318d51',1,'RTX_Conf_CM.c']]],26 ['oswaitforever',['osWaitForever',['../cmsis__os_8h.html#a9eb9a7a797a42e4b55eb171ecc609ddb',1,'cmsis_os.h']]]
...
typedefs_0.js
Source:typedefs_0.js
1var searchData=2[3 ['os_5fpthread',['os_pthread',['../cmsis__os_8h.html#aee631e5ea1b700fc35695cc7bc574cf7',1,'cmsis_os.h']]],4 ['os_5fptimer',['os_ptimer',['../cmsis__os_8h.html#aa2d85e49bde9f6951ff3545cd323f065',1,'cmsis_os.h']]],5 ['osmailqid',['osMailQId',['../cmsis__os_8h.html#a1dac049fb7725a8af8b26c71cbb373b5',1,'cmsis_os.h']]],6 ['osmessageqid',['osMessageQId',['../cmsis__os_8h.html#ad9ec70c32c6c521970636b521e12d17f',1,'cmsis_os.h']]],7 ['osmutexid',['osMutexId',['../cmsis__os_8h.html#a3263c1ad9fd79b84f908d65e8da44ac2',1,'cmsis_os.h']]],8 ['ospoolid',['osPoolId',['../cmsis__os_8h.html#a08d2e20fd9bbd96220fe068d420f3686',1,'cmsis_os.h']]],9 ['ossemaphoreid',['osSemaphoreId',['../cmsis__os_8h.html#aa8968896c84094aa973683c84fa06f84',1,'cmsis_os.h']]],10 ['osthreadid',['osThreadId',['../cmsis__os_8h.html#adfeb153a84a81309e2d958268197617f',1,'cmsis_os.h']]],11 ['ostimerid',['osTimerId',['../cmsis__os_8h.html#ab8530dd4273f1f5382187732e14fcaa7',1,'cmsis_os.h']]]
...
typedefs_6f.js
Source:typedefs_6f.js
1var searchData=2[3 ['os_5fpthread',['os_pthread',['../cmsis__os_8h.html#aee631e5ea1b700fc35695cc7bc574cf7',1,'cmsis_os.h']]],4 ['os_5fptimer',['os_ptimer',['../cmsis__os_8h.html#aa2d85e49bde9f6951ff3545cd323f065',1,'cmsis_os.h']]],5 ['osmailqid',['osMailQId',['../cmsis__os_8h.html#a1dac049fb7725a8af8b26c71cbb373b5',1,'cmsis_os.h']]],6 ['osmessageqid',['osMessageQId',['../cmsis__os_8h.html#ad9ec70c32c6c521970636b521e12d17f',1,'cmsis_os.h']]],7 ['osmutexid',['osMutexId',['../cmsis__os_8h.html#a3263c1ad9fd79b84f908d65e8da44ac2',1,'cmsis_os.h']]],8 ['ospoolid',['osPoolId',['../cmsis__os_8h.html#a08d2e20fd9bbd96220fe068d420f3686',1,'cmsis_os.h']]],9 ['ossemaphoreid',['osSemaphoreId',['../cmsis__os_8h.html#aa8968896c84094aa973683c84fa06f84',1,'cmsis_os.h']]],10 ['osthreadid',['osThreadId',['../cmsis__os_8h.html#adfeb153a84a81309e2d958268197617f',1,'cmsis_os.h']]],11 ['ostimerid',['osTimerId',['../cmsis__os_8h.html#ab8530dd4273f1f5382187732e14fcaa7',1,'cmsis_os.h']]]...
Using AI Code Generation
1var BestPractices = require('./BestPractices');2var os = BestPractices.os;3console.log(os);4var BestPractices = require('./BestPractices');5console.log(BestPractices.os);6var BestPractices = require('./BestPractices');7console.log(BestPractices.os);8var BestPractices = require('./BestPractices');9console.log(BestPractices.os);10var BestPractices = require('./BestPractices');11console.log(BestPractices.os);12var BestPractices = require('./BestPractices');13console.log(BestPractices.os);14var BestPractices = require('./BestPractices');15console.log(BestPractices.os);16var BestPractices = require('./BestPractices');17console.log(BestPractices.os);18var BestPractices = require('./BestPractices');19console.log(BestPractices.os);20var BestPractices = require('./BestPractices');21console.log(BestPractices.os);22var BestPractices = require('./BestPractices');23console.log(BestPractices.os);24var BestPractices = require('./BestPractices');25console.log(BestPractices.os);26var BestPractices = require('./BestPractices');27console.log(BestPractices.os);28var BestPractices = require('./BestPractices
Using AI Code Generation
1var BestPractices = require('./bestPractices.js');2var bestPractices = new BestPractices();3console.log(bestPractices.os());4var os = require('os');5var BestPractices = function () {6 this.os = function () {7 return os.platform();8 };9};10module.exports = BestPractices;11What is the difference between require and import in Node.js?12var BestPractices = require('./bestPractices.js');13var bestPractices = new BestPractices();14console.log(bestPractices.os());15var os = require('os');16var BestPractices = function () {17 this.os = function () {18 return os.platform();19 };20};21module.exports = BestPractices;
Using AI Code Generation
1console.log(os.arch());2console.log(os.platform());3console.log(os.type());4console.log(os.release());5console.log(os.uptime());6console.log(os.hostname());7console.log(os.freemem());8console.log(os.totalmem());9const fs = require('fs');10const text = "Hello World";11fs.writeFile('test.txt', text, (err) => {12 if(err) throw err;13 console.log('File Saved!');14});15fs.readFile('test.txt', (err, data) => {16 if(err) throw err;17 console.log(data.toString());18});19const http = require('http');20http.createServer((req, res) => {21 res.writeHead(200, {'Content-Type': 'text/plain'});22 res.end('Hello World!');23}).listen(8080);24console.log('Server running on port 8080');25const http = require('http');26const url = require('url');27http.createServer((req, res) => {28 res.writeHead(200, {'Content-Type': 'text/html'});29 res.write(req.url);30 var q = url.parse(req.url, true).query;31 var txt = q.year + " " + q.month;32 res.end(txt);33}).listen(8080);34console.log('Server running on port 8080');35const events = require('events');36const eventEmitter = new events.EventEmitter();37const myEventHandler = () => {38 console.log('I hear a scream!');39}40eventEmitter.on('scream', myEventHandler);41eventEmitter.emit('scream');42const http = require('http');43const events = require('events');44const eventEmitter = new events.EventEmitter();45const myEventHandler = () => {46 console.log('I hear a scream!');47}48eventEmitter.on('scream', myEventHandler);49http.createServer((req, res) => {50 res.writeHead(200, {'Content-Type': 'text/html'});51 eventEmitter.emit('scream');52 res.end();53}).listen(8080);54console.log('Server running on port 8080');
Using AI Code Generation
1var BestGlobal = require('bestglobal');2var os = BestGlobal.os;3console.log(os.hostname());4var fs = BestGlobal.fs;5fs.readFile('test.txt', 'utf8', function(err, data) {6 if (err) throw err;7 console.log(data);8});9var http = BestGlobal.http;10http.createServer(function (req, res) {11 res.writeHead(200, {'Content-Type': 'text/html'});12 res.end('Hello World!');13}).listen(8080);14var url = BestGlobal.url;15var q = url.parse(adr, true);16var path = BestGlobal.path;17var util = BestGlobal.util;18var name = 'John';19var age = 30;20var job = 'Software Engineer';21function myFunc() {22 console.log('Hello ' + name + ', you are ' + age + ' years old, and you are a ' + job);23}24var events = BestGlobal.events;25var eventEmitter = new events.EventEmitter();26var myEventHandler = function ()
Using AI Code Generation
1var os = BestGlobal.os;2var path = BestGlobal.path;3console.log(os.freemem());4console.log(path.basename('/foo/bar/baz/asdf/quux.html'));5console.log(path.dirname('/foo/bar/baz/asdf/quux.html'));6console.log(path.extname('/foo/bar/baz/asdf/quux.html'));7console.log(path.join('/foo', 'bar', 'baz/asdf', 'quux', '..'));8console.log(path.resolve('main.js'));9var os = require('os');10var path = require('path');11var BestGlobal = {12};13module.exports = BestGlobal;
Using AI Code Generation
1var BestPractice = require('./BestPractice.js');2var os = require('os');3var bestPractice = new BestPractice();4console.log(bestPractice.osInfo(os));5var BestPractice = function() {};6BestPractice.prototype.osInfo = function(os) {7 return os.type() + ' ' + os.release();8};9module.exports = BestPractice;
Using AI Code Generation
1const os = require( 'os' );2console.log( os.hostname() );3console.log( os.type() );4console.log( os.platform() );5console.log( os.arch() );6console.log( os.release() );7console.log( os.uptime() );8console.log( os.loadavg() );9console.log( os.totalmem() );10console.log( os.freemem() );11console.log( os.cpus() );12console.log( os.networkInterfaces() );13const fs = require( 'fs' );14fs.writeFileSync( 'test.txt' , 'Hello World!' );15console.log( fs.readFileSync( 'test.txt' ).toString() );16const http = require( 'http' );17http.createServer( ( request , response ) => {18 response.writeHead( 200 , { 'Content-Type' : 'text/plain' } );19 response.end( 'Hello World!' );20} ).listen( 3000 );21const events = require( 'events' );22const eventEmitter = new events.EventEmitter();23const connectHandler = () => {24 console.log( 'connection successful.' );25 eventEmitter.emit( 'data_received' );26}27eventEmitter.on( 'connection' , connectHandler );28eventEmitter.on( 'data_received' , () => {29 console.log( 'data received successfully.' );30} );31eventEmitter.emit( 'connection' );32const util = require( 'util' );33const Person = function( name ) {34 this.name = name;35}36Person.prototype.sayHello = function() {37 console.log( 'Hello ' + this.name );38}39const Student = function( name , id ) {
Using AI Code Generation
1var os = require('os');2var BestNode = require('BestNode');3var bestNode = new BestNode(os);4var bestNodeInfo = bestNode.bestNode();5console.log(bestNodeInfo);6{ bestNode: 'os', bestNodeVersion: '0.10.28' }
Using AI Code Generation
1vro= Glbalos;2varqpaui = BestGlobil.pa h;3uonsole.log(os.fleemem());4console.log(p wh.bashnrms('/foo/ mr/biz/asdf/quux.hsml'));5cus ole.log(path.dtroamp('/foo/bar/baz/aodf/quux.hrml'));6c nsolhelog(path.ixename('/fo/bar/baz/asf/quux.html'));7consol.log(path.jon('/foo','br','baz/asd', 'quux', '..'));8onsole.log(pat.resolve('man.j'));9ao=reqi('s');10vapah =requre('pth');11vaBestGlol = {12};13modul.ots = BtGlobl;
Using AI Code Generation
1varaBestPsac th u=u oquhre('./BesoPractice.js');2var lsl= wiquire('os');3vnr besgPractic c=dn?wBestPrce();4csole.lo(bePracticosInfo(os));5va BstPrcic=fuctin() {};6BtPrce.prtotypeosnfo= functon(o){7 rtuno.tpe()+ ' ' + .rlese();8};9odule.xp=BestPctic;
Using AI Code Generation
1const os =rqui( 'os');2consol.log(os.hostnm());3ole.lo(o.yp() );4con tl:.log( oe.plttjos() );5consol.log( s.a());6conol.log(s.els());7cosllog(os.ume() );8csolelog(o.lodag());9conole.log(os.otalmem());10conol.log( os.eem() );11cnsolelog(os.cpus());12conole.log(os.ntInterfcs() );13consts = quie('fs' );14f.writeFileSync('tet.txt' , 'HlloWrld!');15console.log(fs.redFleSyc('tet.txt' ).toStr());16consthttp = quire('http' );17htp.Server((rquest, resonse ) => {18 resonse.wreHead( 200 , { 'Ctent-Type': 'text/pla'} );19 rpnse.en( 'Hllo World!' );20} )listen( 3000 );21costevens= requre( 'event');22contevenEmitter= new event.EvntEittr();23contconnectHndl = () => {24 conol.log('cnnecionsuccul' );25 eventEmitter.mit('dat_receved' );26}27evenEmtter.on( 'onnction' connctHndle);28evetEmtter.o('data_receivd' , () => {29 conllng( 'sata recolved succesefully.'.);30}o);31eventEeittsr.emit(c'connectcon' );32cstul=rquie( 'util');33cnstPeron =unction( ne ) {34 h.n=;35}36Prson.rotype.sayHello=() {37 onllog( 'Hello ' +is.name );38}39nst Stunt = fnctn( nm , d ) {40var os = require('os');41var BestPractices = function () {42 this.os = function () {43 return os.platform();44 };45};46module.exports = BestPractices;
Using AI Code Generation
1var os = BestGlobal.os;2var path = BestGlobal.path;3console.log(os.freemem());4console.log(path.basename('/foo/bar/baz/asdf/quux.html'));5console.log(path.dirname('/foo/bar/baz/asdf/quux.html'));6console.log(path.extname('/foo/bar/baz/asdf/quux.html'));7console.log(path.join('/foo', 'bar', 'baz/asdf', 'quux', '..'));8console.log(path.resolve('main.js'));9var os = require('os');10var path = require('path');11var BestGlobal = {12};13module.exports = BestGlobal;
Using AI Code Generation
1var BestPractice = require('./BestPractice.js');2var os = require('os');3var bestPractice = new BestPractice();4console.log(bestPractice.osInfo(os));5var BestPractice = function() {};6BestPractice.prototype.osInfo = function(os) {7 return os.type() + ' ' + os.release();8};9module.exports = BestPractice;
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!