js_node

    node.js-specific js bindings (fs, http, stream, ...)

    js
    node
    nodejs
    Download zip
    Author
    Version
    0.13.0
    License
    MIT
    Last updated
    3 hours ago
    Downloads
    19

    #mizchi/js_node

    Node.js global objects and variables.

    This package will move to mizchi/node in future.

    #Supported

    • cjs
    • esm

    #Node.js Module Support Status

    ModulePackageStatusNote
    node:assertmizchi/js_node/assert๐Ÿงช TestedAssertions
    node:assert/strictmizchi/js_node/assert_strict๐Ÿงช TestedStrict assertions
    node:buffermizchi/js_node/buffer๐Ÿงช TestedBuffer manipulation
    node:child_processmizchi/js_node/child_process๐Ÿงช TestedProcess spawning
    node:dnsmizchi/js_node/dns๐Ÿงช TestedDNS resolution
    node:eventsmizchi/js_node/events๐Ÿงช TestedEventEmitter
    node:fsmizchi/js_node/fs๐Ÿงช TestedFile system (callback)
    node:fs/promisesmizchi/js_node/fs_promises๐Ÿงช TestedFile system (Promise)
    node:httpmizchi/js_node/http๐Ÿงช TestedHTTP server/client
    node:http2mizchi/js_node/http2๐Ÿงช TestedHTTP/2 support
    node:httpsmizchi/js_node/https๐Ÿงช TestedHTTPS server/client
    node:inspectormizchi/js_node/inspector๐Ÿงช TestedV8 Inspector debugging
    node:modulemizchi/js_node/module๐Ÿงช TestedModule utilities
    node:netmizchi/js_node/net๐Ÿงช TestedTCP/IPC networking
    node:osmizchi/js_node/os๐Ÿงช TestedOS utilities
    node:pathmizchi/js_node/path๐Ÿงช TestedPath manipulation
    node:processmizchi/js_node/process๐Ÿงช TestedProcess information
    node:readlinemizchi/js_node/readline๐Ÿงช TestedInteractive I/O
    node:readline/promisesmizchi/js_node/readline_promises๐Ÿค– AI GeneratedInteractive I/O (Promise)
    node:sqlitemizchi/js_node/sqlite๐Ÿงช TestedSQLite database (Node 22.5+)
    node:streammizchi/js_node/stream๐Ÿงช TestedStream API
    node:stream/promisesmizchi/js_node/stream_promises๐Ÿงช TestedStream (Promise)
    node:testmizchi/js_node/test๐Ÿงช TestedTesting framework
    node:timersmizchi/js_node๐Ÿงช TestedsetTimeout/setInterval
    node:tlsmizchi/js_node/tls๐Ÿงช TestedTLS/SSL connections
    node:ttymizchi/js_node/tty๐Ÿงช TestedTerminal I/O
    node:urlmizchi/js_node/url๐Ÿงช TestedURL parsing
    node:utilmizchi/js_node/util๐Ÿงช TestedUtility functions
    node:v8mizchi/js_node/v8๐Ÿงช TestedV8 engine utilities
    node:vmmizchi/js_node/vm๐Ÿงช TestedVM script execution
    node:wasimizchi/js_node/wasi๐Ÿงช TestedWASI support
    node:worker_threadsmizchi/js_node/worker_threads๐Ÿงช TestedWorker threads
    node:zlibmizchi/js_node/zlib๐Ÿงช TestedCompression/decompression
    node:async_hooksmizchi/js_node/async_hooks๐Ÿงช TestedAsyncLocalStorage
    node:permissions-๐Ÿ“… PlannedPermissions API
    node:domain-โŒ Not PlannedDeprecated in Node.js
    node:querystring-โŒ Not PlannedUse URLSearchParams
    node:crypto-โŒ Not PlannedUse Web Crypto API
    node:string_decoder-โŒ Not PlannedUse TextDecoder
    node:punycode-โŒ Not PlannedDeprecated
    node:dgram-โŒ Not PlannedUDP sockets

    #Status Legend

    • ๐Ÿงช Tested: Comprehensive test coverage, production ready
    • ๐Ÿšง Partially: Core functionality implemented, tests incomplete
    • ๐Ÿค– AI Generated: FFI bindings created, needs testing
    • ๐Ÿ“… Planned: Scheduled for future implementation
    • โŒ Not Planned: Use Web standard alternatives


    Note: Node.js bindings are actively developed. Some AI-generated modules require thorough testing before production use.

    Buffer

    Process

    Immediate

    #external
    pub type Immediate

    Immediate::as_any

    clearImmediate

    fn clearImmediate(immediate : Immediate) -> Unit

    JS: clearImmediate(immediateId)

    esm_require

    fn esm_require(module_name : String) ->
    Any

    Universal require that works in both ESM and CJS environments. In CJS mode, uses native require directly. In ESM mode, requires init_esm_require() to be called first. Throws an error if used in ESM without initialization.

    import_meta_dirname

    fn import_meta_dirname() -> String

    Node.js: import.meta.dirname only esm

    import_meta_filename

    fn import_meta_filename() -> String

    Node.js: import.meta.filename only esm

    import_meta_resolve

    fn import_meta_resolve(module_name : String) -> Unit

    Node.js: import.meta.resolve(moduleName) only esm

    import_meta_url

    fn import_meta_url() -> String

    Node.js: import.meta.url only esm

    init_esm_require

    fn init_esm_require() ->
    Promise
    [Unit]

    Initialize ESM-compatible require function. Must be called once before using esm_require in pure ESM environments. Returns a Promise that resolves when initialization is complete. In CJS environments, this is a no-op (require is already available).

    module_

    fn module_() ->
    Any

    Node.js: module

    require

    fn require(module_name : String) ->
    Any

    Node.js: require(moduleName)

    require_cache

    fn require_cache() ->
    Any

    Node.js: require.cache

    require_main

    fn require_main() -> String

    Node.js: require.main only esm

    require_resolve

    fn require_resolve(module_name : String) -> Unit

    Node.js: require.resolve(moduleName) only cjs

    setImmediate

    fn setImmediate(callback : () -> Unit) -> Immediate

    JS: setImmediate(callback)

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    ยฉ 2026 mooncakes.io