- π source/browser/DOM.js
applyReceiveFileListListener
,getElementAtViewport
,getPathElementList
,throttleByAnimationFrame
- π source/browser/net.js
fetchLikeRequest
- π source/browser/resource.js
createDownload
,createDownloadWithBlob
,createDownloadWithObject
,createDownloadWithString
,deleteArrayBufferCache
,loadArrayBufferCache
,loadImage
,loadScript
,loadText
,saveArrayBufferCache
- π source/browser/data/Blob.js
Blob
,parseBlobAsArrayBuffer
,parseBlobAsDataURL
,parseBlobAsText
- π source/browser/data/BlobPacket.js
packBlobPacket
,parseBlobPacket
- π source/browser/input/KeyCommand.js
createKeyCommandHub
- π source/browser/input/PointerEvent.js
ENHANCED_POINTER_EVENT_TYPE
,POINTER_EVENT_TYPE
,applyEnhancedPointerEventListener
,applyPointerEventListener
- π source/browser/module/HistoryStateStore.js
createHistoryStateStore
- π source/browser/module/StateStorage.js
createSyncStateStorage
- π source/common/check.js
isArrayLength
,isBasicArray
,isBasicFunction
,isBasicObject
,isBoolean
,isFunctionThrow
,isFunctionThrowAsync
,isInteger
,isNumber
,isObjectAlike
,isObjectContain
,isObjectKey
,isOneOf
,isPromiseAlike
,isRegExp
,isStrictEqual
,isString
,isStringifyEqual
- π source/common/compare.js
compareString
,compareStringLocale
,compareStringWithNumber
- π source/common/error.js
catchAsync
,catchPromise
,catchSync
,rethrowError
,tryCall
- π source/common/format.js
binary
,decimal
,describe
,mediaTime
,padTable
,percent
,prettyStringifyJSON
,time
,typeNameOf
- π source/common/function.js
createInsideOutPromise
,debounce
,lossyAsync
,throttle
,withDelayArgvQueue
,withRepeat
,withRepeatAsync
,withRetry
,withRetryAsync
,withTimeoutAsync
,withTimeoutPromise
- π source/common/string.js
autoEllipsis
,createMarkReplacer
,escapeHTML
,escapeRegExp
,indentLine
,indentList
,joinCamelCase
,joinKebabCase
,joinSnakeCase
,removeInvalidCharXML
,splitCamelCase
,splitKebabCase
,splitSnakeCase
,unescapeHTML
- π source/common/time.js
CLOCK_PER_SECOND
,CLOCK_TO_SECOND
,cancelFrameUpdate
,clock
,createStepper
,createTimer
,getTimestamp
,requestFrameUpdate
,setTimeoutAsync
- π source/common/verify.js
arrayLength
,basicArray
,basicFunction
,basicObject
,boolean
,doNotThrow
,doNotThrowAsync
,doThrow
,doThrowAsync
,integer
,notStrictEqual
,notStringifyEqual
,number
,objectAlike
,objectContain
,objectKey
,oneOf
,promiseAlike
,regexp
,strictEqual
,string
,stringifyEqual
- π source/common/data/ArrayBuffer.js
concatArrayBuffer
,deconcatArrayBuffer
,fromString
,isEqualArrayBuffer
,toString
- π source/common/data/ArrayBufferPacket.js
HEADER_BYTE_SIZE
,MAX_PACKET_HEADER_SIZE
,packArrayBufferHeader
,packArrayBufferPacket
,packChainArrayBufferPacket
,parseArrayBufferHeader
,parseArrayBufferPacket
,parseChainArrayBufferPacket
- π source/common/data/Base64.js
decode
,encode
- π source/common/data/CacheMap.js
createCache
,createCacheMap
- π source/common/data/DataUri.js
decode
,encode
- π source/common/data/LinkedList.js
createDoublyLinkedList
,createNode
- π source/common/data/ListMap.js
createListMap
- π source/common/data/SaveQueue.js
createSaveQueue
- π source/common/data/SetMap.js
createSetMap
,getInvertSetMap
- π source/common/data/Toggle.js
createToggle
- π source/common/data/Tree.js
createTreeBottomUpSearch
,createTreeBottomUpSearchAsync
,createTreeBreadthFirstSearch
,createTreeBreadthFirstSearchAsync
,createTreeDepthFirstSearch
,createTreeDepthFirstSearchAsync
,prettyStringifyTree
- π source/common/data/function.js
getValueByKeyList
,hashStringToNumber
,reverseString
,swapObfuscateString
,tryParseJSONObject
- π source/common/geometry/Angle.js
DEGREE_TO_RADIAN
,RADIAN_TO_DEGREE
,fromDegree
,getDegree
- π source/common/geometry/D2/BoundingRect.js
fromEmpty
,fromPoint
,fromWidget
,fromWidgetList
,getCenter
,getUnion
,isContainPoint
,isIntersect
- π source/common/geometry/D2/Line.js
fromWidget
- π source/common/geometry/D2/Rect.js
fromBoundingRect
,fromEmpty
,fromPoint
,getCenter
,getSize
,getUnion
,getUnionOfList
,isContain
,isContainPoint
,isEmpty
,isIntersect
- π source/common/geometry/D2/Vector.js
abs
,add
,clamp
,divide
,fromAngleLength
,fromOrigin
,getAngle
,getDist
,getDistSq
,getDotProduct
,getLength
,getLengthSq
,getRotate
,getRotateDelta
,isZero
,lerp
,max
,min
,multiply
,project
,round
,scale
,sub
- π source/common/geometry/D2/Widget.js
fromBoundingRect
,fromLine
,fromPoint
,getBoundingBottom
,getBoundingHeight
,getBoundingLeft
,getBoundingRight
,getBoundingSize
,getBoundingTop
,getBoundingWidth
,isContainBoundingRect
,isInterceptBoundingRect
,localBoundingRect
,localPoint
,round
- π source/common/immutable/Array.js
arrayConcat
,arrayDelete
,arrayFindDelete
,arrayFindMove
,arrayFindOrPush
,arrayFindSet
,arrayFindSetOrPush
,arrayInsert
,arrayMatchDelete
,arrayMatchMove
,arrayMatchPush
,arrayMove
,arrayPop
,arrayPush
,arraySet
,arrayShift
,arraySplitChunk
,arrayUnshift
- π source/common/immutable/Object.js
objectDelete
,objectFilter
,objectFindKey
,objectFromEntries
,objectMap
,objectMerge
,objectPickKey
,objectSet
- π source/common/immutable/StateStore.js
createEntryEnhancer
,createStateStore
,createStateStoreEnhanced
,createStateStoreLite
,createStoreStateSyncReducer
,reducerFromMap
,toReduxStore
- π source/common/immutable/check.js
isArrayShallowEqual
,isCompactArrayShallowEqual
,isObjectShallowEqual
- π source/common/immutable/function.js
transformCache
- π source/common/math/base.js
addAbs
,clamp
,euclideanModulo
,lerp
,roundFloat
,smoothstep
- π source/common/math/easing.js
easeInCirc
,easeInCubic
,easeInExpo
,easeInOutCirc
,easeInOutCubic
,easeInOutExpo
,easeInOutQuad
,easeInOutQuart
,easeInOutQuint
,easeInOutSine
,easeInQuad
,easeInQuart
,easeInQuint
,easeInSine
,easeOutCirc
,easeOutCubic
,easeOutExpo
,easeOutQuad
,easeOutQuart
,easeOutQuint
,easeOutSine
,linear
- π source/common/math/random.js
getRandomArrayBuffer
,getRandomId
,getRandomInt
,getRandomIntList
- π source/common/math/sample.js
getSample
,getSampleRange
,getSampleRate
- π source/common/module/AsyncFuncQueue.js
createAsyncFuncQueue
- π source/common/module/AsyncLane.js
createAsyncLane
,extendAutoSelectLane
,extendLaneValueList
,extendLaneValueMap
,selectMinLoadLane
- π source/common/module/AsyncTask.js
ASYNC_TASK_KEY_MAP
,ASYNC_TASK_PHASE_MAP
,getAsyncTaskPhase
,resetAsyncTask
,runAsyncTask
- π source/common/module/AsyncTaskQueue.js
ASYNC_TASK_QUEUE_KEY_MAP
,createAsyncTaskQueue
,createFilterStaleAsyncTask
- π source/common/module/BlockChart.js
getBlockBar
,getBlockChart
- π source/common/module/Event.js
createEventEmitter
,createEventTarget
,createHub
- π source/common/module/KeySelector.js
concatKeyFrag
,createMultiKeySwitch
,reduceKeySelector
- π source/common/module/KeyTree.js
createKeyTree
,createKeyTreeEnhanced
- π source/common/module/LevenshteinDistance.js
getLevenshteinDistance
- π source/common/module/MIME.js
BASIC_EXTENSION_MAP
,DEFAULT_MIME
,getMIMETypeFromFileName
- π source/common/module/Patch.js
createPatchKit
,toArrayWithKeyPatchKit
,toObjectPatchKit
- π source/common/module/RouteMap.js
appendRouteMap
,createRouteMap
,findRouteFromMap
,getRouteParam
,getRouteParamAny
,parseRouteToMap
,parseRouteUrl
- π source/common/module/SemVer.js
compareSemVer
,parseSemVer
- π source/common/module/TimedLookup.js
generateCheckCode
,generateLookupData
,packCheckCode
,packDataArrayBuffer
,parseCheckCode
,parseDataArrayBuffer
,verifyCheckCode
,verifyOption
,verifyParsedCheckCode
- π source/common/module/UpdateLoop.js
createUpdateLoop
,createUpdater
- π source/common/mutable/Object.js
objectMergeDeep
,objectSortKey
- π source/env/function.js
assert
,getEndianness
- π source/env/global.js
getEnvironment
,getGlobal
,global
- π source/env/tryRequire.js
tryRequire
,tryRequireResolve
- π source/node/net.js
fetchLikeRequest
,fetchWithJump
,ping
,requestHttp
- π source/node/resource.js
DR_BROWSER_FILE_PATH
,DR_BROWSER_SCRIPT_TAG
,loadJSON
,loadLocalJSON
,loadLocalScript
,loadRemoteJSON
,loadRemoteScript
,loadScript
- π source/node/data/Buffer.js
toArrayBuffer
- π source/node/data/BufferPacket.js
packBufferPacket
,parseBufferPacket
- π source/node/data/LogQueue.js
createLogQueue
- π source/node/data/Stream.js
bufferToReadableStream
,readableStreamToBufferAsync
,readlineOfStreamAsync
,setupStreamPipe
,waitStreamStopAsync
,writeBufferToStreamAsync
- π source/node/data/function.js
getRandomBufferAsync
- π source/node/file/Directory.js
copyDirectory
,copyDirectoryInfoTree
,createDirectory
,deleteDirectory
,deleteDirectoryInfoTree
,getDirectoryInfoTree
,getDirectorySubInfoList
,getFileList
,renameDirectoryInfoTree
,walkDirectoryInfoTree
,walkDirectoryInfoTreeBottomUp
- π source/node/file/Modify.js
modifyCopy
,modifyDelete
,modifyDeleteForce
,modifyRename
- π source/node/file/Path.js
PATH_TYPE
,STAT_ERROR
,copyPath
,createPathPrefixLock
,deletePath
,getPathStat
,getPathTypeFromStat
,nearestExistPath
,renamePath
,toPosixPath
- π source/node/file/Watch.js
createFileWatcher
- π source/node/file/function.js
appendFileAsync
,closeAsync
,copyFileAsync
,createReadStream
,createWriteStream
,executableAsync
,mkdirAsync
,openAsync
,readAsync
,readFileAsync
,readableAsync
,readdirAsync
,readlinkAsync
,renameAsync
,rmdirAsync
,statAsync
,symlinkAsync
,truncateAsync
,unlinkAsync
,visibleAsync
,writableAsync
,writeAsync
,writeFileAsync
- π source/node/module/EntityTag.js
getEntityTagByContentHash
,getEntityTagByContentHashAsync
,getWeakEntityTagByStat
- π source/node/module/Logger.js
createLogger
,createSimpleLogger
- π source/node/module/SafeWrite.js
createSafeWriteStream
- π source/node/module/Option/parser.js
createOptionParser
- π source/node/module/Option/preset.js
Preset
,createOptionGetter
,getOptionalFormatFlag
,getOptionalFormatValue
,parseOptionMap
,prepareOption
- π source/node/server/Proxy.js
createTCPProxyListener
- π source/node/server/Server.js
createRequestListener
,createServerPack
,describeServerPack
- π source/node/server/commonHTML.js
COMMON_FUNC_MAP
,COMMON_LAYOUT
,COMMON_SCRIPT
,COMMON_STYLE
- π source/node/server/function.js
autoTestServerPort
,getUnusedPort
,parseCookieString
- π source/node/server/Responder/Common.js
createResponderHostMapper
,createResponderLog
,createResponderLogEnd
,createResponderSetHeaderHSTS
,responderEnd
,responderEndWithRedirect
,responderEndWithStatusCode
,responderSetHeaderCacheControlImmutable
- π source/node/server/Responder/RateLimit.js
createResponderCheckRateLimit
,createResponderRateLimit
- π source/node/server/Responder/Router.js
METHOD_MAP
,appendRouteMap
,createResponderRouteListHTML
,createResponderRouter
,createRouteMap
,describeRouteMap
,getRouteParam
,getRouteParamAny
- π source/node/server/Responder/Send.js
createResponderFavicon
,prepareBufferData
,prepareBufferDataAsync
,responderSendBuffer
,responderSendBufferCompress
,responderSendBufferRange
,responderSendJSON
,responderSendStream
,responderSendStreamCompress
,responderSendStreamRange
- π source/node/server/Responder/ServeStatic.js
createDefaultCacheMap
,createResponderBufferCache
,createResponderServeStatic
- π source/node/server/WebSocket/WebSocket.js
createWebSocket
- π source/node/server/WebSocket/WebSocketClient.js
createWebSocketClient
- π source/node/server/WebSocket/WebSocketServer.js
enableWebSocketServer
- π source/node/server/WebSocket/WebSocketUpgradeRequest.js
createUpdateRequestListener
- π source/node/server/WebSocket/frameReceiver.js
createFrameReceiverStore
,listenAndReceiveFrame
- π source/node/server/WebSocket/frameSender.js
createFrameSenderStore
,encodeCloseFrame
,encodeFrame
,encodePingFrame
,encodePongFrame
,sendEncodedFrame
- π source/node/server/WebSocket/function.js
BUFFER_MAX_LENGTH
,FRAME_CONFIG
,OPCODE_TYPE
,WEBSOCKET_EVENT
,WEBSOCKET_VERSION
,applyMaskQuadletBufferInPlace
,getRequestKey
,getRespondKey
- π source/node/system/DefaultOpen.js
getDefaultOpenCommandList
- π source/node/system/ExitListener.js
addExitListenerAsync
,addExitListenerSync
,clearExitListener
,deleteExitListenerAsync
,deleteExitListenerSync
- π source/node/system/Process.js
describeAllProcessStatusAsync
,findProcessPidMapInfo
,findProcessTreeInfo
,getAllProcessStatusAsync
,getProcessListAsync
,isPidExist
,killProcessInfoAsync
,killProcessTreeInfoAsync
,sortProcessList
,toProcessPidMap
,toProcessTree
- π source/node/system/ResolveCommand.js
resolveCommand
,resolveCommandAsync
,resolveCommandName
,resolveCommandNameAsync
- π source/node/system/Run.js
run
,runSync
,withCwd
- π source/node/system/Status.js
describeSystemActivity
,describeSystemMemory
,describeSystemNetwork
,describeSystemPlatform
,describeSystemProcessor
,describeSystemStatus
,getSystemActivity
,getSystemMemory
,getSystemNetwork
,getSystemPlatform
,getSystemProcessor
,getSystemStatus
- Browser
- Data
- Blob
Blob
,parseBlobAsArrayBuffer
,parseBlobAsDataURL
,parseBlobAsText
- BlobPacket
packBlobPacket
,parseBlobPacket
- Blob
- Input
- KeyCommand
createKeyCommandHub
- PointerEvent
ENHANCED_POINTER_EVENT_TYPE
,POINTER_EVENT_TYPE
,applyEnhancedPointerEventListener
,applyPointerEventListener
- KeyCommand
- Module
- HistoryStateStore
createHistoryStateStore
- StateStorage
createSyncStateStorage
- HistoryStateStore
- DOM
applyReceiveFileListListener
,getElementAtViewport
,getPathElementList
,throttleByAnimationFrame
- Net
fetchLikeRequest
- Resource
createDownload
,createDownloadWithBlob
,createDownloadWithObject
,createDownloadWithString
,deleteArrayBufferCache
,loadArrayBufferCache
,loadImage
,loadScript
,loadText
,saveArrayBufferCache
- Data
- Common
- Data
- ArrayBuffer
concatArrayBuffer
,deconcatArrayBuffer
,fromString
,isEqualArrayBuffer
,toString
- ArrayBufferPacket
HEADER_BYTE_SIZE
,MAX_PACKET_HEADER_SIZE
,packArrayBufferHeader
,packArrayBufferPacket
,packChainArrayBufferPacket
,parseArrayBufferHeader
,parseArrayBufferPacket
,parseChainArrayBufferPacket
- Base64
decode
,encode
- CacheMap
createCache
,createCacheMap
- DataUri
decode
,encode
- LinkedList
createDoublyLinkedList
,createNode
- ListMap
createListMap
- SaveQueue
createSaveQueue
- SetMap
createSetMap
,getInvertSetMap
- Toggle
createToggle
- Tree
createTreeBottomUpSearch
,createTreeBottomUpSearchAsync
,createTreeBreadthFirstSearch
,createTreeBreadthFirstSearchAsync
,createTreeDepthFirstSearch
,createTreeDepthFirstSearchAsync
,prettyStringifyTree
getValueByKeyList
,hashStringToNumber
,reverseString
,swapObfuscateString
,tryParseJSONObject
- ArrayBuffer
- Geometry
- D2
- BoundingRect
fromEmpty
,fromPoint
,fromWidget
,fromWidgetList
,getCenter
,getUnion
,isContainPoint
,isIntersect
- Line
fromWidget
- Rect
fromBoundingRect
,fromEmpty
,fromPoint
,getCenter
,getSize
,getUnion
,getUnionOfList
,isContain
,isContainPoint
,isEmpty
,isIntersect
- Vector
abs
,add
,clamp
,divide
,fromAngleLength
,fromOrigin
,getAngle
,getDist
,getDistSq
,getDotProduct
,getLength
,getLengthSq
,getRotate
,getRotateDelta
,isZero
,lerp
,max
,min
,multiply
,project
,round
,scale
,sub
- Widget
fromBoundingRect
,fromLine
,fromPoint
,getBoundingBottom
,getBoundingHeight
,getBoundingLeft
,getBoundingRight
,getBoundingSize
,getBoundingTop
,getBoundingWidth
,isContainBoundingRect
,isInterceptBoundingRect
,localBoundingRect
,localPoint
,round
- BoundingRect
- Angle
DEGREE_TO_RADIAN
,RADIAN_TO_DEGREE
,fromDegree
,getDegree
- D2
- Immutable
- Array
arrayConcat
,arrayDelete
,arrayFindDelete
,arrayFindMove
,arrayFindOrPush
,arrayFindSet
,arrayFindSetOrPush
,arrayInsert
,arrayMatchDelete
,arrayMatchMove
,arrayMatchPush
,arrayMove
,arrayPop
,arrayPush
,arraySet
,arrayShift
,arraySplitChunk
,arrayUnshift
- Object
objectDelete
,objectFilter
,objectFindKey
,objectFromEntries
,objectMap
,objectMerge
,objectPickKey
,objectSet
- StateStore
createEntryEnhancer
,createStateStore
,createStateStoreEnhanced
,createStateStoreLite
,createStoreStateSyncReducer
,reducerFromMap
,toReduxStore
isArrayShallowEqual
,isCompactArrayShallowEqual
,isObjectShallowEqual
,transformCache
- Array
- Math
addAbs
,clamp
,euclideanModulo
,lerp
,roundFloat
,smoothstep
,easeInCirc
,easeInCubic
,easeInExpo
,easeInOutCirc
,easeInOutCubic
,easeInOutExpo
,easeInOutQuad
,easeInOutQuart
,easeInOutQuint
,easeInOutSine
,easeInQuad
,easeInQuart
,easeInQuint
,easeInSine
,easeOutCirc
,easeOutCubic
,easeOutExpo
,easeOutQuad
,easeOutQuart
,easeOutQuint
,easeOutSine
,linear
,getRandomArrayBuffer
,getRandomId
,getRandomInt
,getRandomIntList
,getSample
,getSampleRange
,getSampleRate
- Module
- AsyncFuncQueue
createAsyncFuncQueue
- AsyncLane
createAsyncLane
,extendAutoSelectLane
,extendLaneValueList
,extendLaneValueMap
,selectMinLoadLane
- AsyncTask
ASYNC_TASK_KEY_MAP
,ASYNC_TASK_PHASE_MAP
,getAsyncTaskPhase
,resetAsyncTask
,runAsyncTask
- AsyncTaskQueue
ASYNC_TASK_QUEUE_KEY_MAP
,createAsyncTaskQueue
,createFilterStaleAsyncTask
- BlockChart
getBlockBar
,getBlockChart
- Event
createEventEmitter
,createEventTarget
,createHub
- KeySelector
concatKeyFrag
,createMultiKeySwitch
,reduceKeySelector
- KeyTree
createKeyTree
,createKeyTreeEnhanced
- LevenshteinDistance
getLevenshteinDistance
- MIME
BASIC_EXTENSION_MAP
,DEFAULT_MIME
,getMIMETypeFromFileName
- Patch
createPatchKit
,toArrayWithKeyPatchKit
,toObjectPatchKit
- RouteMap
appendRouteMap
,createRouteMap
,findRouteFromMap
,getRouteParam
,getRouteParamAny
,parseRouteToMap
,parseRouteUrl
- SemVer
compareSemVer
,parseSemVer
- TimedLookup
generateCheckCode
,generateLookupData
,packCheckCode
,packDataArrayBuffer
,parseCheckCode
,parseDataArrayBuffer
,verifyCheckCode
,verifyOption
,verifyParsedCheckCode
- UpdateLoop
createUpdateLoop
,createUpdater
- AsyncFuncQueue
- Mutable
- Object
objectMergeDeep
,objectSortKey
- Object
- Check
isArrayLength
,isBasicArray
,isBasicFunction
,isBasicObject
,isBoolean
,isFunctionThrow
,isFunctionThrowAsync
,isInteger
,isNumber
,isObjectAlike
,isObjectContain
,isObjectKey
,isOneOf
,isPromiseAlike
,isRegExp
,isStrictEqual
,isString
,isStringifyEqual
- Compare
compareString
,compareStringLocale
,compareStringWithNumber
- Error
catchAsync
,catchPromise
,catchSync
,rethrowError
,tryCall
- Format
binary
,decimal
,describe
,mediaTime
,padTable
,percent
,prettyStringifyJSON
,time
,typeNameOf
- Function
createInsideOutPromise
,debounce
,lossyAsync
,throttle
,withDelayArgvQueue
,withRepeat
,withRepeatAsync
,withRetry
,withRetryAsync
,withTimeoutAsync
,withTimeoutPromise
- String
autoEllipsis
,createMarkReplacer
,escapeHTML
,escapeRegExp
,indentLine
,indentList
,joinCamelCase
,joinKebabCase
,joinSnakeCase
,removeInvalidCharXML
,splitCamelCase
,splitKebabCase
,splitSnakeCase
,unescapeHTML
- Time
CLOCK_PER_SECOND
,CLOCK_TO_SECOND
,cancelFrameUpdate
,clock
,createStepper
,createTimer
,getTimestamp
,requestFrameUpdate
,setTimeoutAsync
- Verify
arrayLength
,basicArray
,basicFunction
,basicObject
,boolean
,doNotThrow
,doNotThrowAsync
,doThrow
,doThrowAsync
,integer
,notStrictEqual
,notStringifyEqual
,number
,objectAlike
,objectContain
,objectKey
,oneOf
,promiseAlike
,regexp
,strictEqual
,string
,stringifyEqual
- Data
- Env
assert
,getEndianness
,getEnvironment
,getGlobal
,global
,tryRequire
,tryRequireResolve
- Node
- Data
- Buffer
toArrayBuffer
- BufferPacket
packBufferPacket
,parseBufferPacket
- LogQueue
createLogQueue
- Stream
bufferToReadableStream
,readableStreamToBufferAsync
,readlineOfStreamAsync
,setupStreamPipe
,waitStreamStopAsync
,writeBufferToStreamAsync
getRandomBufferAsync
- Buffer
- File
- Directory
copyDirectory
,copyDirectoryInfoTree
,createDirectory
,deleteDirectory
,deleteDirectoryInfoTree
,getDirectoryInfoTree
,getDirectorySubInfoList
,getFileList
,renameDirectoryInfoTree
,walkDirectoryInfoTree
,walkDirectoryInfoTreeBottomUp
- Modify
modifyCopy
,modifyDelete
,modifyDeleteForce
,modifyRename
- Path
PATH_TYPE
,STAT_ERROR
,copyPath
,createPathPrefixLock
,deletePath
,getPathStat
,getPathTypeFromStat
,nearestExistPath
,renamePath
,toPosixPath
- Watch
createFileWatcher
appendFileAsync
,closeAsync
,copyFileAsync
,createReadStream
,createWriteStream
,executableAsync
,mkdirAsync
,openAsync
,readAsync
,readFileAsync
,readableAsync
,readdirAsync
,readlinkAsync
,renameAsync
,rmdirAsync
,statAsync
,symlinkAsync
,truncateAsync
,unlinkAsync
,visibleAsync
,writableAsync
,writeAsync
,writeFileAsync
- Directory
- Module
- Option
createOptionParser
,Preset
,createOptionGetter
,getOptionalFormatFlag
,getOptionalFormatValue
,parseOptionMap
,prepareOption
- EntityTag
getEntityTagByContentHash
,getEntityTagByContentHashAsync
,getWeakEntityTagByStat
- Logger
createLogger
,createSimpleLogger
- SafeWrite
createSafeWriteStream
- Option
- Server
- Responder
- Common
createResponderHostMapper
,createResponderLog
,createResponderLogEnd
,createResponderSetHeaderHSTS
,responderEnd
,responderEndWithRedirect
,responderEndWithStatusCode
,responderSetHeaderCacheControlImmutable
- RateLimit
createResponderCheckRateLimit
,createResponderRateLimit
- Router
METHOD_MAP
,appendRouteMap
,createResponderRouteListHTML
,createResponderRouter
,createRouteMap
,describeRouteMap
,getRouteParam
,getRouteParamAny
- Send
createResponderFavicon
,prepareBufferData
,prepareBufferDataAsync
,responderSendBuffer
,responderSendBufferCompress
,responderSendBufferRange
,responderSendJSON
,responderSendStream
,responderSendStreamCompress
,responderSendStreamRange
- ServeStatic
createDefaultCacheMap
,createResponderBufferCache
,createResponderServeStatic
- Common
- WebSocket
- WebSocket
createWebSocket
- WebSocketClient
createWebSocketClient
- WebSocketServer
enableWebSocketServer
- WebSocketUpgradeRequest
createUpdateRequestListener
createFrameReceiverStore
,listenAndReceiveFrame
,createFrameSenderStore
,encodeCloseFrame
,encodeFrame
,encodePingFrame
,encodePongFrame
,sendEncodedFrame
,BUFFER_MAX_LENGTH
,FRAME_CONFIG
,OPCODE_TYPE
,WEBSOCKET_EVENT
,WEBSOCKET_VERSION
,applyMaskQuadletBufferInPlace
,getRequestKey
,getRespondKey
- WebSocket
- Proxy
createTCPProxyListener
- Server
createRequestListener
,createServerPack
,describeServerPack
- CommonHTML
COMMON_FUNC_MAP
,COMMON_LAYOUT
,COMMON_SCRIPT
,COMMON_STYLE
- Function
autoTestServerPort
,getUnusedPort
,parseCookieString
- Responder
- System
- DefaultOpen
getDefaultOpenCommandList
- ExitListener
addExitListenerAsync
,addExitListenerSync
,clearExitListener
,deleteExitListenerAsync
,deleteExitListenerSync
- Process
describeAllProcessStatusAsync
,findProcessPidMapInfo
,findProcessTreeInfo
,getAllProcessStatusAsync
,getProcessListAsync
,isPidExist
,killProcessInfoAsync
,killProcessTreeInfoAsync
,sortProcessList
,toProcessPidMap
,toProcessTree
- ResolveCommand
resolveCommand
,resolveCommandAsync
,resolveCommandName
,resolveCommandNameAsync
- Run
run
,runSync
,withCwd
- Status
describeSystemActivity
,describeSystemMemory
,describeSystemNetwork
,describeSystemPlatform
,describeSystemProcessor
,describeSystemStatus
,getSystemActivity
,getSystemMemory
,getSystemNetwork
,getSystemPlatform
,getSystemProcessor
,getSystemStatus
- DefaultOpen
- Net
fetchLikeRequest
,fetchWithJump
,ping
,requestHttp
- Resource
DR_BROWSER_FILE_PATH
,DR_BROWSER_SCRIPT_TAG
,loadJSON
,loadLocalJSON
,loadLocalScript
,loadRemoteJSON
,loadRemoteScript
,loadScript
- Data
π source-bin/option.js
CLI Usage: --config --c -c [OPTIONAL] [ARGUMENT=1] from ENV: set to "env" to enable, not using be default from JS/JSON file: set to "path/to/file.config.js|json" --help --h -h [OPTIONAL] [ARGUMENT=0+] show full help --quiet --q -q [OPTIONAL] [ARGUMENT=0+] less log --version --v -v [OPTIONAL] [ARGUMENT=0+] show version --json --J -J [OPTIONAL] [ARGUMENT=0+] output JSON, if supported --host --H -H [OPTIONAL] [ARGUMENT=1] common option: $0=hostname:port (hostname default to 0.0.0.0) --root --R -R [OPTIONAL] [ARGUMENT=1] common option: $0=path/cwd --input-file --I -I [OPTIONAL] [ARGUMENT=1] common option --output-file --O -O [OPTIONAL] [ARGUMENT=1] common option --eval --e -e [OPTIONAL] [ARGUMENT=0+] eval file or string: -O=outputFile, -I/$0=scriptFile/scriptString, $@=...evalArgv --repl --i -i [OPTIONAL] [ARGUMENT=0+] start node REPL --wait [OPTIONAL] [ARGUMENT=0-1] wait specified time, in msec: $0=waitTime/2*1000 --echo [OPTIONAL] [ARGUMENT=0+] show args: $@=...args --cat [OPTIONAL] [ARGUMENT=0+] with 0 args pipe stdin to stdout, else read $@ as file and pipe to stdout --write [OPTIONAL] [ARGUMENT=1] for use like ">": `dr-js --cat sourceFile | dr-js --write outputFile` --append [OPTIONAL] [ARGUMENT=1] for use like ">>": `dr-js --cat sourceFile | dr-js --append outputFile` --merge [OPTIONAL] [ARGUMENT=2+] merge to one file: $@=mergedFile,...inputFileList --create-directory --mkdir [OPTIONAL] [ARGUMENT=0+] create directory: $@=...pathList --modify-copy --cp [OPTIONAL] [ARGUMENT=2] copy path: $@=pathFrom,pathTo --modify-rename --mv [OPTIONAL] [ARGUMENT=2] rename path: $@=pathFrom,pathTo --modify-delete --rm [OPTIONAL] [ARGUMENT=0+] delete path: $@=...pathList --status --s -s [OPTIONAL] [ARGUMENT=0+] basic system status: -J=isOutputJSON --open --o -o [OPTIONAL] [ARGUMENT=0-1] use system default app to open uri or path: $0=uriOrPath/cwd --which --w -w [OPTIONAL] [ARGUMENT=1] resolve to full executable path: -R=resolveRoot/cwd, $0=commandNameOrPath --fetch --f -f [OPTIONAL] [ARGUMENT=1-3] fetch "GET" uri: -O=outputFile/stdout, $@=initialUrl,jumpMax/4,timeout/0 --process-status --ps [OPTIONAL] [ARGUMENT=0-1] show system process status: -J=isOutputJSON, $0=outputMode/"pid--" --json-format --jf [OPTIONAL] [ARGUMENT=0-1] re-format JSON file: -O=outputFile/-I, -I=inputFile, $0=unfoldLevel/2 --server-serve-static --sss [OPTIONAL] [ARGUMENT=0-1] static file server: -H=hostname:port, -R=staticRoot/cwd, $0=expireTime/5*1000 --server-serve-static-simple --ssss [OPTIONAL] [ARGUMENT=0-1] static file server, no HTML: -H=hostname:port, -R=staticRoot/cwd, $0=expireTime/5*1000 --server-websocket-group --swg [OPTIONAL] websocket chat server: -H=hostname:port --server-test-connection --stc [OPTIONAL] connection test server: -H=hostname:port --server-tcp-proxy --stp [OPTIONAL] [ARGUMENT=1+] tcp proxy server: -H=hostname:port, $@=toHostname:toPort,toHostname:toPort,... ENV Usage: " #!/usr/bin/env bash export DR_JS_CONFIG="[OPTIONAL] [ARGUMENT=1]" export DR_JS_HELP="[OPTIONAL] [ARGUMENT=0+]" export DR_JS_QUIET="[OPTIONAL] [ARGUMENT=0+]" export DR_JS_VERSION="[OPTIONAL] [ARGUMENT=0+]" export DR_JS_JSON="[OPTIONAL] [ARGUMENT=0+]" export DR_JS_HOST="[OPTIONAL] [ARGUMENT=1]" export DR_JS_ROOT="[OPTIONAL] [ARGUMENT=1]" export DR_JS_INPUT_FILE="[OPTIONAL] [ARGUMENT=1]" export DR_JS_OUTPUT_FILE="[OPTIONAL] [ARGUMENT=1]" export DR_JS_EVAL="[OPTIONAL] [ARGUMENT=0+]" export DR_JS_REPL="[OPTIONAL] [ARGUMENT=0+]" export DR_JS_WAIT="[OPTIONAL] [ARGUMENT=0-1]" export DR_JS_ECHO="[OPTIONAL] [ARGUMENT=0+]" export DR_JS_CAT="[OPTIONAL] [ARGUMENT=0+]" export DR_JS_WRITE="[OPTIONAL] [ARGUMENT=1]" export DR_JS_APPEND="[OPTIONAL] [ARGUMENT=1]" export DR_JS_MERGE="[OPTIONAL] [ARGUMENT=2+]" export DR_JS_CREATE_DIRECTORY="[OPTIONAL] [ARGUMENT=0+]" export DR_JS_MODIFY_COPY="[OPTIONAL] [ARGUMENT=2]" export DR_JS_MODIFY_RENAME="[OPTIONAL] [ARGUMENT=2]" export DR_JS_MODIFY_DELETE="[OPTIONAL] [ARGUMENT=0+]" export DR_JS_STATUS="[OPTIONAL] [ARGUMENT=0+]" export DR_JS_OPEN="[OPTIONAL] [ARGUMENT=0-1]" export DR_JS_WHICH="[OPTIONAL] [ARGUMENT=1]" export DR_JS_FETCH="[OPTIONAL] [ARGUMENT=1-3]" export DR_JS_PROCESS_STATUS="[OPTIONAL] [ARGUMENT=0-1]" export DR_JS_JSON_FORMAT="[OPTIONAL] [ARGUMENT=0-1]" export DR_JS_SERVER_SERVE_STATIC="[OPTIONAL] [ARGUMENT=0-1]" export DR_JS_SERVER_SERVE_STATIC_SIMPLE="[OPTIONAL] [ARGUMENT=0-1]" export DR_JS_SERVER_WEBSOCKET_GROUP="[OPTIONAL]" export DR_JS_SERVER_TEST_CONNECTION="[OPTIONAL]" export DR_JS_SERVER_TCP_PROXY="[OPTIONAL] [ARGUMENT=1+]" " CONFIG Usage: { "config": [ "[OPTIONAL] [ARGUMENT=1]" ], "help": [ "[OPTIONAL] [ARGUMENT=0+]" ], "quiet": [ "[OPTIONAL] [ARGUMENT=0+]" ], "version": [ "[OPTIONAL] [ARGUMENT=0+]" ], "json": [ "[OPTIONAL] [ARGUMENT=0+]" ], "host": [ "[OPTIONAL] [ARGUMENT=1]" ], "root": [ "[OPTIONAL] [ARGUMENT=1]" ], "inputFile": [ "[OPTIONAL] [ARGUMENT=1]" ], "outputFile": [ "[OPTIONAL] [ARGUMENT=1]" ], "eval": [ "[OPTIONAL] [ARGUMENT=0+]" ], "repl": [ "[OPTIONAL] [ARGUMENT=0+]" ], "wait": [ "[OPTIONAL] [ARGUMENT=0-1]" ], "echo": [ "[OPTIONAL] [ARGUMENT=0+]" ], "cat": [ "[OPTIONAL] [ARGUMENT=0+]" ], "write": [ "[OPTIONAL] [ARGUMENT=1]" ], "append": [ "[OPTIONAL] [ARGUMENT=1]" ], "merge": [ "[OPTIONAL] [ARGUMENT=2+]" ], "createDirectory": [ "[OPTIONAL] [ARGUMENT=0+]" ], "modifyCopy": [ "[OPTIONAL] [ARGUMENT=2]" ], "modifyRename": [ "[OPTIONAL] [ARGUMENT=2]" ], "modifyDelete": [ "[OPTIONAL] [ARGUMENT=0+]" ], "status": [ "[OPTIONAL] [ARGUMENT=0+]" ], "open": [ "[OPTIONAL] [ARGUMENT=0-1]" ], "which": [ "[OPTIONAL] [ARGUMENT=1]" ], "fetch": [ "[OPTIONAL] [ARGUMENT=1-3]" ], "processStatus": [ "[OPTIONAL] [ARGUMENT=0-1]" ], "jsonFormat": [ "[OPTIONAL] [ARGUMENT=0-1]" ], "serverServeStatic": [ "[OPTIONAL] [ARGUMENT=0-1]" ], "serverServeStaticSimple": [ "[OPTIONAL] [ARGUMENT=0-1]" ], "serverWebsocketGroup": [ "[OPTIONAL]" ], "serverTestConnection": [ "[OPTIONAL]" ], "serverTcpProxy": [ "[OPTIONAL] [ARGUMENT=1+]" ], }