Modules
Standard Library
Third Party Modules
NPM
Docs
Manual
API
Deploy
Community
Discord
GitHub
Twitter
YouTube
Mastodon
Search...
⌘ K
!--frsh-globalsearch:0-->
Module
std
/
node
/
fs.ts
>
O_DSYNC
Deno standard library
denoland/deno_std
Version
0.224.0
0.223.0
0.222.1
0.222.0
0.221.0
0.220.1
0.220.0
0.219.1
0.219.0
0.218.2
0.218.0
0.217.0
0.216.0
0.215.0
0.214.0
0.213.0
0.212.0
0.211.0
0.210.0
0.209.0
0.208.0
0.207.0
0.206.0
0.205.0
0.204.0
0.203.0
0.202.0
0.201.0
0.200.0
0.199.0
0.198.0
0.197.0
0.196.0
0.195.0
0.194.0
0.193.0
0.192.0
0.191.0
0.190.0
0.177.1
0.189.0
0.188.0
0.187.0
0.186.0
0.185.0
0.184.0
0.183.0
0.182.0
0.181.0
0.180.0
0.179.0
0.178.0
0.177.0
0.176.0
0.175.0
0.174.0
0.173.0
0.172.0
0.171.0
0.170.0
0.169.0
0.168.0
0.167.0
0.166.0
0.165.0
0.164.0
0.163.0
0.162.0
0.161.0
0.160.0
0.159.0
0.158.0
0.157.0
0.156.0
0.155.0
0.154.0
0.153.0
0.152.0
0.151.0
0.150.0
0.149.0
0.148.0
0.147.0
0.146.0
0.145.0
0.144.0
0.143.0
0.142.0
0.141.0
0.140.0
0.139.0
0.138.0
0.137.0
0.136.0
0.135.0
0.134.0
0.133.0
0.132.0
0.131.0
0.130.0
0.129.0
0.128.0
0.127.0
0.126.0
0.125.0
0.124.0
0.123.0
0.122.0
0.121.0
0.120.0
0.119.0
0.118.0
0.117.0
0.116.0
0.115.1
0.115.0
0.114.0
0.113.0
0.112.0
0.111.0
0.110.0
0.109.0
0.108.0
0.107.0
0.106.0
0.105.0
0.104.0
0.103.0
0.102.0
0.101.0
0.100.0
0.99.0
0.98.0
0.97.0
0.96.0
0.95.0
0.94.0
0.93.0
0.92.0
0.91.0
0.90.0
0.89.0
0.88.0
0.87.0
0.86.0
0.85.0
0.84.0
0.83.0
0.82.0
0.81.0
0.80.0
0.79.0
0.78.0
0.77.0
0.76.0
0.75.0
0.74.0
0.73.0
0.72.0
0.71.0
0.70.0
0.69.0
0.68.0
0.67.0
0.66.0
0.65.0
0.64.0
0.63.0
0.62.0
0.61.0
0.60.0
0.59.0
0.58.0
0.57.0
0.56.0
0.55.0
0.54.0
0.53.0
0.52.0
0.51.0
0.50.0
0.42.0
0.41.0
0.40.0
0.39.0
0.38.0
0.37.0
0.36.0
0.35.0
0.34.0
Go to Latest
!--frsh-versionselect:1-->
Menu
assert
dns
fs
integrationtest
internal
internal_binding
path
readline
stream
timers
util
assert.ts
c
AssertionError
v
default
v
ok
f
deepEqual
f
deepStrictEqual
f
doesNotMatch
f
doesNotReject
f
doesNotThrow
f
equal
f
fail
f
ifError
f
match
f
notDeepEqual
f
notDeepStrictEqual
f
notEqual
f
notStrictEqual
f
rejects
f
strict
f
strictEqual
f
throws
assertion_error.ts
c
AssertionError
c
default
I
AssertionErrorConstructorOptions
I
AssertionErrorDetailsDescriptor
f
copyError
f
createErrDiff
f
inspectValue
async_hooks.ts
c
AsyncLocalStorage
c
AsyncResource
v
default
f
createHook
f
executionAsyncId
buffer.ts
c
Buffer
v
atob
v
Blob
v
btoa
v
constants
v
default
v
kMaxLength
v
kStringMaxLength
v
SlowBuffer
child_process.ts
c
ChildProcess
v
default
f
exec
f
execFile
f
execFileSync
f
execSync
f
fork
f
spawn
f
spawnSync
cluster.ts
c
Worker
v
default
v
isMaster
v
isPrimary
v
isWorker
v
schedulingPolicy
v
settings
v
worker
v
workers
f
disconnected
f
fork
f
setupMaster
f
setupPrimary
console.ts
v
assert
v
clear
v
count
v
countReset
v
debug
v
default
v
dir
v
dirxml
v
error
v
group
v
groupCollapsed
v
groupEnd
v
indentLevel
v
info
v
log
v
profile
v
profileEnd
v
table
v
time
v
timeEnd
v
timeLog
v
timeStamp
v
trace
v
warn
f
Console
constants.ts
v
COPYFILE_EXCL
v
COPYFILE_FICLONE
v
COPYFILE_FICLONE_FORCE
v
default
v
E2BIG
v
EACCES
v
EADDRINUSE
v
EADDRNOTAVAIL
v
EAFNOSUPPORT
v
EAGAIN
v
EALREADY
v
EBADF
v
EBADMSG
v
EBUSY
v
ECANCELED
v
ECHILD
v
ECONNABORTED
v
ECONNREFUSED
v
ECONNRESET
v
EDEADLK
v
EDESTADDRREQ
v
EDOM
v
EDQUOT
v
EEXIST
v
EFAULT
v
EFBIG
v
EHOSTUNREACH
v
EIDRM
v
EILSEQ
v
EINPROGRESS
v
EINTR
v
EINVAL
v
EIO
v
EISCONN
v
EISDIR
v
ELOOP
v
EMFILE
v
EMLINK
v
EMSGSIZE
v
EMULTIHOP
v
ENAMETOOLONG
v
ENETDOWN
v
ENETRESET
v
ENETUNREACH
v
ENFILE
v
ENOBUFS
v
ENODATA
v
ENODEV
v
ENOENT
v
ENOEXEC
v
ENOLCK
v
ENOLINK
v
ENOMEM
v
ENOMSG
v
ENOPROTOOPT
v
ENOSPC
v
ENOSR
v
ENOSTR
v
ENOSYS
v
ENOTCONN
v
ENOTDIR
v
ENOTEMPTY
v
ENOTSOCK
v
ENOTSUP
v
ENOTTY
v
ENXIO
v
EOPNOTSUPP
v
EOVERFLOW
v
EPERM
v
EPIPE
v
EPROTO
v
EPROTONOSUPPORT
v
EPROTOTYPE
v
ERANGE
v
EROFS
v
ESPIPE
v
ESRCH
v
ESTALE
v
ETIME
v
ETIMEDOUT
v
ETXTBSY
v
EWOULDBLOCK
v
EXDEV
v
F_OK
v
O_APPEND
v
O_CREAT
v
O_DIRECTORY
v
O_DSYNC
v
O_EXCL
v
O_NOCTTY
v
O_NOFOLLOW
v
O_NONBLOCK
v
O_RDONLY
v
O_RDWR
v
O_SYMLINK
v
O_SYNC
v
O_TRUNC
v
O_WRONLY
v
PRIORITY_ABOVE_NORMAL
v
PRIORITY_BELOW_NORMAL
v
PRIORITY_HIGH
v
PRIORITY_HIGHEST
v
PRIORITY_LOW
v
PRIORITY_NORMAL
v
R_OK
v
RTLD_DEEPBIND
v
RTLD_GLOBAL
v
RTLD_LAZY
v
RTLD_LOCAL
v
RTLD_NOW
v
S_IRGRP
v
S_IROTH
v
S_IRUSR
v
S_IWGRP
v
S_IWOTH
v
S_IWUSR
v
S_IXGRP
v
S_IXOTH
v
S_IXUSR
v
SIGABRT
v
SIGALRM
v
SIGBUS
v
SIGCHLD
v
SIGCONT
v
SIGFPE
v
SIGHUP
v
SIGILL
v
SIGINT
v
SIGIO
v
SIGIOT
v
SIGKILL
v
SIGPIPE
v
SIGPOLL
v
SIGPROF
v
SIGPWR
v
SIGQUIT
v
SIGSEGV
v
SIGSTKFLT
v
SIGSTOP
v
SIGSYS
v
SIGTERM
v
SIGTRAP
v
SIGTSTP
v
SIGTTIN
v
SIGTTOU
v
SIGUNUSED
v
SIGURG
v
SIGUSR1
v
SIGUSR2
v
SIGVTALRM
v
SIGWINCH
v
SIGXCPU
v
SIGXFSZ
v
UV_FS_COPYFILE_EXCL
v
UV_FS_COPYFILE_FICLONE
v
UV_FS_COPYFILE_FICLONE_FORCE
v
W_OK
v
X_OK
crypto.ts
c
Certificate
c
Cipheriv
c
Decipheriv
c
DiffieHellman
c
DiffieHellmanGroup
c
ECDH
c
Hash
c
KeyObject
c
Sign
c
Verify
c
X509Certificate
I
AsymmetricKeyDetails
I
BasePrivateKeyEncodingOptions
I
CheckPrimeOptions
I
Cipher
I
CipherCCM
I
CipherCCMOptions
I
CipherGCM
I
CipherGCMOptions
I
CipherOCB
I
CipherOCBOptions
I
DecipherCCM
I
DecipherGCM
I
DecipherOCB
I
DSAKeyPairKeyObjectOptions
I
DSAKeyPairOptions
I
ECKeyPairKeyObjectOptions
I
ECKeyPairOptions
I
ED25519KeyPairKeyObjectOptions
I
ED25519KeyPairOptions
I
ED448KeyPairKeyObjectOptions
I
ED448KeyPairOptions
I
GeneratePrimeOptions
I
GeneratePrimeOptionsArrayBuffer
I
GeneratePrimeOptionsBigInt
I
JsonWebKeyInput
I
JwkKeyExportOptions
I
KeyExportOptions
I
KeyPairKeyObjectResult
I
KeyPairSyncResult
I
PrivateKeyInput
I
PublicKeyInput
I
RSAKeyPairKeyObjectOptions
I
RSAKeyPairOptions
I
RSAPSSKeyPairKeyObjectOptions
I
RSAPSSKeyPairOptions
I
SecureHeapUsage
I
SigningOptions
I
SignKeyObjectInput
I
SignPrivateKeyInput
I
VerifyKeyObjectInput
I
VerifyPublicKeyInput
I
X25519KeyPairKeyObjectOptions
I
X25519KeyPairOptions
I
X448KeyPairKeyObjectOptions
I
X448KeyPairOptions
I
X509CheckOptions
T
Algorithms
T
BinaryLike
T
BinaryToTextEncoding
T
CharacterEncoding
T
CipherCCMTypes
T
CipherGCMTypes
T
CipherKey
T
CipherOCBTypes
T
Decipher
T
DSAEncoding
T
ECDHKeyFormat
T
Encoding
T
HASH_DATA
T
KeyFormat
T
KeyLike
T
KeyObjectType
T
KeyType
T
LargeNumberLike
T
LegacyCharacterEncoding
T
NormalizedAlgorithms
T
PeerCertificate
v
constants
v
default
v
getDiffieHellman
v
getFips
v
randomUUID
v
setFips
v
sign
v
timingSafeEqual
v
verify
v
webcrypto
f
checkPrime
f
checkPrimeSync
f
createCipheriv
f
createDecipheriv
f
createDiffieHellman
f
createDiffieHellmanGroup
f
createECDH
f
createHash
f
createHmac
f
createPrivateKey
f
createPublicKey
f
createSecretKey
f
createSign
f
createVerify
f
diffieHellman
f
generateKey
f
generateKeyPair
f
generateKeyPairSync
f
generateKeySync
f
generatePrime
f
generatePrimeSync
f
getCipherInfo
f
getCiphers
f
getCurves
f
getHashes
f
hkdf
f
hkdfSync
f
Hmac
f
pbkdf2
f
pbkdf2Sync
f
privateDecrypt
f
privateEncrypt
f
publicDecrypt
f
publicEncrypt
f
randomBytes
f
randomFill
f
randomFillSync
f
randomInt
f
scrypt
f
scryptSync
f
secureHeapUsed
f
setEngine
dgram.ts
c
Socket
I
AddressInfo
I
BindOptions
I
SocketOptions
T
MessageType
T
RemoteInfo
T
SocketType
v
default
f
createSocket
diagnostics_channel.ts
c
Channel
v
default
f
channel
f
hasSubscribers
f
subscribe
f
unsubscribe
dns.ts
c
Resolver
I
AnyAaaaRecord
I
AnyARecord
I
AnyCnameRecord
I
AnyMxRecord
I
AnyNaptrRecord
I
AnyNsRecord
I
AnyPtrRecord
I
AnySoaRecord
I
AnySrvRecord
I
AnyTxtRecord
I
CaaRecord
I
LookupAddress
I
LookupAllOptions
I
LookupOneOptions
I
LookupOptions
I
MxRecord
I
NaptrRecord
I
RecordWithTtl
I
ResolveOptions
I
ResolverOptions
I
ResolveWithTtlOptions
I
SoaRecord
I
SrvRecord
T
AnyRecord
T
Records
T
ResolveCallback
v
ADDRCONFIG
v
ADDRGETNETWORKPARAMS
v
ALL
v
BADFAMILY
v
BADFLAGS
v
BADHINTS
v
BADNAME
v
BADQUERY
v
BADRESP
v
BADSTR
v
CANCELLED
v
CONNREFUSED
v
default
v
DESTRUCTION
v
EOF
v
FILE
v
FORMERR
v
LOADIPHLPAPI
v
NODATA
v
NOMEM
v
NONAME
v
NOTFOUND
v
NOTIMP
v
NOTINITIALIZED
v
promises
v
REFUSED
v
SERVFAIL
v
TIMEOUT
v
V4MAPPED
f
getServers
f
lookup
f
resolve
f
resolve4
f
resolve6
f
resolveAny
f
resolveCaa
f
resolveCname
f
resolveMx
f
resolveNaptr
f
resolveNs
f
resolvePtr
f
resolveSoa
f
resolveSrv
f
resolveTxt
f
reverse
f
setDefaultResultOrder
f
setServers
domain.ts
c
Domain
v
default
f
create
events.ts
c
default
c
EventEmitter
v
captureRejectionSymbol
v
defaultMaxListeners
v
errorMonitor
f
getEventListeners
f
listenerCount
f
on
f
once
f
setMaxListeners
fs.ts
N
constants
N
f
write
N
f
writev
c
Dir
c
Dirent
c
ReadStream
c
WriteStream
v
default
v
F_OK
v
O_APPEND
v
O_CREAT
v
O_DIRECTORY
v
O_DSYNC
v
O_EXCL
v
O_NOCTTY
v
O_NOFOLLOW
v
O_NONBLOCK
v
O_RDONLY
v
O_RDWR
v
O_SYMLINK
v
O_SYNC
v
O_TRUNC
v
O_WRONLY
v
promises
v
R_OK
v
W_OK
v
X_OK
f
access
f
accessSync
f
appendFile
f
appendFileSync
f
chmod
f
chmodSync
f
chown
f
chownSync
f
close
f
closeSync
f
copyFile
f
copyFileSync
f
createReadStream
f
createWriteStream
f
exists
f
existsSync
f
fdatasync
f
fdatasyncSync
f
fstat
f
fstatSync
f
fsync
f
fsyncSync
f
ftruncate
f
ftruncateSync
f
futimes
f
futimesSync
f
link
f
linkSync
f
lstat
f
lstatSync
f
mkdir
f
mkdirSync
f
mkdtemp
f
mkdtempSync
f
open
f
opendir
f
opendirSync
f
openSync
f
read
f
readdir
f
readdirSync
f
readFile
f
readFileSync
f
readlink
f
readlinkSync
f
readSync
f
realpath
f
realpathSync
f
rename
f
renameSync
f
rm
f
rmdir
f
rmdirSync
f
rmSync
f
stat
f
Stats
f
statSync
f
symlink
f
symlinkSync
f
truncate
f
truncateSync
f
unlink
f
unlinkSync
f
unwatchFile
f
utimes
f
utimesSync
f
watch
f
watchFile
f
writeFile
f
writeFileSync
f
writeSync
f
writevSync
global.ts
http.ts
c
ClientRequest
c
IncomingMessage
c
IncomingMessageForClient
c
IncomingMessageForServer
c
ServerResponse
I
RequestOptions
v
default
v
METHODS
f
Agent
f
createServer
f
get
f
OutgoingMessage
f
request
f
Server
E
STATUS_CODES
http2.ts
c
ClientHttp2Session
c
ClientHttp2Stream
c
Http2SecureServer
c
Http2Server
c
Http2ServerRequest
c
Http2ServerResponse
c
Http2Session
c
Http2Stream
c
ServerHttp2Session
c
ServerHttp2Stream
v
constants
v
default
v
sensitiveHeaders
f
connect
f
createSecureServer
f
createServer
f
getDefaultSettings
f
getPackedSettings
f
getUnpackedSettings
https.ts
c
Agent
c
Server
v
default
v
globalAgent
f
createServer
f
get
f
request
inspector.ts
c
Session
v
console
v
default
f
close
f
open
f
url
f
waitForDebugger
module_all.ts
v
default
module_esm.ts
I
PackageConfig
v
encodedSepRegEx
f
packageExportsResolve
f
packageImportsResolve
module.ts
c
default
v
builtinModules
v
createRequire
f
resolveMainPath
f
shouldUseESMLoader
net.ts
c
Server
c
Socket
I
ListenOptions
v
createConnection
v
default
v
Stream
f
_createServerHandle
f
_normalizeArgs
f
connect
f
createServer
f
isIP
f
isIPv4
f
isIPv6
os.ts
I
UserInfoOptions
v
constants
v
default
v
devNull
v
EOL
f
arch
f
cpus
f
endianness
f
freemem
f
getPriority
f
homedir
f
hostname
f
loadavg
f
networkInterfaces
f
platform
f
release
f
setPriority
f
tmpdir
f
totalmem
f
type
f
uptime
f
userInfo
f
version
path.ts
I
GlobOptions
I
ParsedPath
T
FormatInputPathObject
T
GlobToRegExpOptions
v
basename
v
default
v
delimiter
v
dirname
v
extname
v
format
v
fromFileUrl
v
isAbsolute
v
join
v
normalize
v
parse
v
posix
v
relative
v
resolve
v
sep
v
SEP
v
SEP_PATTERN
v
toFileUrl
v
toNamespacedPath
v
win32
f
common
f
globToRegExp
f
isGlob
f
joinGlobs
f
normalizeGlob
perf_hooks.ts
v
constants
v
default
v
monitorEventLoopDelay
v
performance
v
PerformanceEntry
v
PerformanceObserver
process.ts
v
arch
v
argv
v
chdir
v
cwd
v
default
v
env
v
exit
v
nextTick
v
pid
v
platform
v
process
v
removeAllListeners
v
removeListener
v
stderr
v
stdin
v
stdout
v
version
v
versions
f
emitWarning
f
hrtime
f
kill
f
memoryUsage
punycode.ts
v
default
v
ucs2
f
decode
f
encode
f
toASCII
f
toUnicode
querystring.ts
I
ParsedUrlQuery
I
ParsedUrlQueryInput
v
decode
v
default
v
encode
v
escape
v
unescape
f
parse
f
stringify
f
unescapeBuffer
readline.ts
N
promises
c
Interface
v
default
f
clearLine
f
clearScreenDown
f
createInterface
f
cursorTo
f
emitKeypressEvents
f
moveCursor
repl.ts
c
REPLServer
v
builtinModules
v
default
f
start
stream.ts
N
f
finished
N
f
pipeline
c
Duplex
c
PassThrough
c
Readable
c
Stream
c
Transform
c
Writable
f
_isUint8Array
f
_uint8ArrayToBuffer
f
addAbortSignal
string_decoder_bench.js
string_decoder.ts
c
StringDecoder
v
default
sys.ts
T
v
TextDecoder
T
v
TextEncoder
v
default
v
types
f
_extend
f
callbackify
f
debuglog
f
deprecate
f
format
f
formatWithOptions
f
getSystemErrorName
f
inherits
f
inspect
f
isArray
f
isBoolean
f
isBuffer
f
isDate
f
isDeepStrictEqual
f
isError
f
isFunction
f
isNull
f
isNullOrUndefined
f
isNumber
f
isObject
f
isPrimitive
f
isRegExp
f
isString
f
isSymbol
f
isUndefined
f
log
f
promisify
f
stripVTControlCharacters
timers.ts
v
clearImmediate
v
default
v
setImmediate
f
clearInterval
f
clearTimeout
f
setInterval
f
setTimeout
f
setUnrefTimeout
tls.ts
c
CryptoStream
c
SecurePair
v
checkServerIdentity
v
connect
v
createSecureContext
v
createServer
v
default
v
DEFAULT_CIPHERS
v
DEFAULT_ECDH_CURVE
v
DEFAULT_MAX_VERSION
v
DEFAULT_MIN_VERSION
v
rootCertificates
v
Server
v
TLSSocket
f
createSecurePair
f
getCiphers
tty.ts
c
ReadStream
c
WriteStream
v
default
f
isatty
upstream_modules.ts
v
default
url.ts
c
Url
v
default
v
URL
v
URLSearchParams
f
domainToASCII
f
domainToUnicode
f
fileURLToPath
f
format
f
parse
f
pathToFileURL
f
resolve
f
resolveObject
f
urlToHttpOptions
util.ts
T
v
TextDecoder
T
v
TextEncoder
v
default
v
types
f
_extend
f
callbackify
f
debuglog
f
deprecate
f
format
f
formatWithOptions
f
getSystemErrorName
f
inherits
f
inspect
f
isArray
f
isBoolean
f
isBuffer
f
isDate
f
isDeepStrictEqual
f
isError
f
isFunction
f
isNull
f
isNullOrUndefined
f
isNumber
f
isObject
f
isPrimitive
f
isRegExp
f
isString
f
isSymbol
f
isUndefined
f
log
f
promisify
f
stripVTControlCharacters
v8.ts
c
DefaultDeserializer
c
DefaultSerializer
c
Deserializer
c
Serializer
v
default
v
promiseHooks
f
cachedDataVersionTag
f
deserialize
f
getHeapCodeStatistics
f
getHeapSnapshot
f
getHeapSpaceStatistics
f
getHeapStatistics
f
serialize
f
setFlagsFromString
f
stopCoverage
f
takeCoverage
f
writeHeapSnapshot
vm.ts
c
Script
v
default
f
compileFunction
f
createContext
f
createScript
f
isContext
f
measureMemory
f
runInContext
f
runInNewContext
f
runInThisContext
wasi.ts
v
default
v
WASI
worker_threads.ts
c
Worker
I
WorkerOptions
v
BroadcastChannel
v
default
v
isMainThread
v
MessageChannel
v
MessagePort
v
parentPort
v
resourceLimits
v
SHARE_ENV
v
threadId
v
workerData
f
getEnvironmentData
f
markAsUntransferable
f
moveMessagePortToContext
f
receiveMessageOnPort
f
setEnvironmentData
zlib.ts
c
BrotliCompress
c
BrotliDecompress
c
BrotliOptions
c
Options
c
ZlibBase
v
codes
v
constants
v
createDeflate
v
createDeflateRaw
v
createGunzip
v
createGzip
v
createInflate
v
createInflateRaw
v
createUnzip
v
default
v
deflate
v
deflateRaw
v
deflateRawSync
v
deflateSync
v
gunzip
v
gunzipSync
v
gzip
v
gzipSync
v
inflate
v
inflateRaw
v
inflateRawSync
v
inflateSync
v
unzip
v
unzipSync
f
brotliCompress
f
brotliCompressSync
f
brotliDecompress
f
brotliDecompressSync
f
createBrotliCompress
f
createBrotliDecompress
f
Deflate
f
DeflateRaw
f
Gunzip
f
Gzip
f
Inflate
f
InflateRaw
f
Unzip
variable
O_DSYNC
import
{
O_DSYNC
}
from
"https://dotland.deno.dev/std@0.177.0/node/fs.ts"
;
Why Deno?
Develop Locally
Deploy Globally
Compare to Node.js
Benchmarks
Products
Deno CLI
Deno Deploy
Deploy Subhosting
Fresh
SaaSKit
Sources
CLI Manual
CLI Runtime API
Deploy Docs
Standard Library
Third-Party Modules
Community
Artworks
Translations
Showcase
Company
Careers
Blog
Pricing
News
Merch
Privacy Policy
Copyright © 2023 Deno Land Inc.
All rights reserved.