(base-64decode server-host input)
Parameters:
input
: string
Returns: string
**Parameters:** - `input`: `string` **Returns:** `string`
(base-64encode server-host input)
Parameters:
input
: string
Returns: string
**Parameters:** - `input`: `string` **Returns:** `string`
(clear-immediate server-host timeout-id)
Parameters:
timeout-id
: any
Returns: void
**Parameters:** - `timeout-id`: `any` **Returns:** `void`
(clear-timeout server-host timeout-id)
Parameters:
timeout-id
: any
Returns: void
**Parameters:** - `timeout-id`: `any` **Returns:** `void`
(create-directory server-host path)
Parameters:
path
: string
Returns: void
**Parameters:** - `path`: `string` **Returns:** `void`
(create-hash server-host data)
A good implementation is node.js' crypto.createHash
. (https://nodejs.org/api/crypto.html#crypto_crypto_createhash_algorithm)
Parameters:
data
: string
Returns: string
A good implementation is node.js' `crypto.createHash`. (https://nodejs.org/api/crypto.html#crypto_crypto_createhash_algorithm) **Parameters:** - `data`: `string` **Returns:** `string`
(create-sha-256-hash server-host data)
This must be cryptographically secure. Only implement this method using crypto.createHash("sha256")
.
Parameters:
data
: string
Returns: string
This must be cryptographically secure. Only implement this method using `crypto.createHash("sha256")`. **Parameters:** - `data`: `string` **Returns:** `string`
(current-directory server-host)
Returns: string
**Returns:** `string`
(delete-file server-host path)
Parameters:
path
: string
Returns: void
**Parameters:** - `path`: `string` **Returns:** `void`
(directories server-host path)
Parameters:
path
: string
Returns: string[]
**Parameters:** - `path`: `string` **Returns:** `string[]`
(directory-exists? server-host path)
Parameters:
path
: string
Returns: boolean
**Parameters:** - `path`: `string` **Returns:** `boolean`
(executing-file-path server-host)
Returns: string
**Returns:** `string`
(exit server-host)
(exit server-host exit-code)
Parameters:
exit-code
: number | undefined
Returns: void
**Parameters:** - `exit-code`: `number | undefined` **Returns:** `void`
(file-exists? server-host path)
Parameters:
path
: string
Returns: boolean
**Parameters:** - `path`: `string` **Returns:** `boolean`
(file-size server-host path)
Parameters:
path
: string
Returns: number
**Parameters:** - `path`: `string` **Returns:** `number`
(modified-time server-host path)
Parameters:
path
: string
Returns: Date | undefined
**Parameters:** - `path`: `string` **Returns:** `Date | undefined`
(read-directory server-host path)
(read-directory server-host path extensions)
(read-directory server-host path extensions exclude)
(read-directory server-host path extensions exclude include)
(read-directory server-host path extensions exclude include depth)
Parameters:
path
: string
extensions
: readonly string[] | undefined
exclude
: readonly string[] | undefined
include
: readonly string[] | undefined
depth
: number | undefined
Returns: string[]
**Parameters:** - `path`: `string` - `extensions`: `readonly string[] | undefined` - `exclude`: `readonly string[] | undefined` - `include`: `readonly string[] | undefined` - `depth`: `number | undefined` **Returns:** `string[]`
(read-file server-host path)
(read-file server-host path encoding)
Parameters:
path
: string
encoding
: string | undefined
Returns: string | undefined
**Parameters:** - `path`: `string` - `encoding`: `string | undefined` **Returns:** `string | undefined`
(realpath server-host path)
Parameters:
path
: string
Returns: string
**Parameters:** - `path`: `string` **Returns:** `string`
(require server-host initial-path module-name)
Parameters:
initial-path
: string
module-name
: string
Returns: ModuleImportResult
**Parameters:** - `initial-path`: `string` - `module-name`: `string` **Returns:** `ModuleImportResult`
(resolve-path server-host path)
Parameters:
path
: string
Returns: string
**Parameters:** - `path`: `string` **Returns:** `string`
(set-immediate server-host callback & args)
Parameters:
callback
: (...args: any[]) => void
args
: any[]
Returns: any
**Parameters:** - `callback`: `(...args: any[]) => void` - `args`: `any[]` **Returns:** `any`
(set-modified-time server-host path time)
Parameters:
path
: string
time
: Date
Returns: void
**Parameters:** - `path`: `string` - `time`: `Date` **Returns:** `void`
(set-timeout server-host callback ms & args)
Parameters:
callback
: (...args: any[]) => void
ms
: number
args
: any[]
Returns: any
**Parameters:** - `callback`: `(...args: any[]) => void` - `ms`: `number` - `args`: `any[]` **Returns:** `any`
(trace server-host s)
Parameters:
s
: string
Returns: void
**Parameters:** - `s`: `string` **Returns:** `void`
(use-case-sensitive-file-names? server-host)
Returns: boolean
**Returns:** `boolean`
(watch-directory server-host path callback)
(watch-directory server-host path callback recursive?)
(watch-directory server-host path callback recursive? options)
Parameters:
path
: string
callback
: DirectoryWatcherCallback
recursive?
: boolean | undefined
options
: WatchOptions | undefined
Returns: FileWatcher
**Parameters:** - `path`: `string` - `callback`: `DirectoryWatcherCallback` - `recursive?`: `boolean | undefined` - `options`: `WatchOptions | undefined` **Returns:** `FileWatcher`
(watch-file server-host path callback)
(watch-file server-host path callback polling-interval)
(watch-file server-host path callback polling-interval options)
Parameters:
path
: string
callback
: FileWatcherCallback
polling-interval
: number | undefined
options
: WatchOptions | undefined
Returns: FileWatcher
**Parameters:** - `path`: `string` - `callback`: `FileWatcherCallback` - `polling-interval`: `number | undefined` - `options`: `WatchOptions | undefined` **Returns:** `FileWatcher`
(width-of-terminal server-host)
Returns: number
**Returns:** `number`
(write server-host s)
Parameters:
s
: string
Returns: void
**Parameters:** - `s`: `string` **Returns:** `void`
(write-file server-host path data)
(write-file server-host path data write-byte-order-mark?)
Parameters:
path
: string
data
: string
write-byte-order-mark?
: boolean | undefined
Returns: void
**Parameters:** - `path`: `string` - `data`: `string` - `write-byte-order-mark?`: `boolean | undefined` **Returns:** `void`
(write-output-is-tty? server-host)
Returns: boolean
**Returns:** `boolean`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close