Variable: features
readonlyfeatures:object
Build-time feature flags reflecting the CMake options the binary was compiled with:
wasm—BUILD_WITH_WASM: theWebAssemblyglobal andtjs-wasi.sqlite—BUILD_WITH_SQLITE: thetjs-sqlitemodule and persistentlocalStorage.tls—BUILD_WITH_TLS: HTTPS/WSS andtjs:tls. WebCrypto is unaffected by this one.bundledCa—BUILD_WITH_BUNDLED_CA: the embedded Mozilla CA bundle. When false, TLS builds needTJS_CA_BUNDLEorsetCABundlePath()to verify certificates.webcrypto—BUILD_WITH_WEBCRYPTO:crypto.subtle.crypto.getRandomValues()andcrypto.randomUUID()are always present.ffi—BUILD_WITH_FFI: thetjs-ffimodule.
Type Declaration
bundledCa
readonlybundledCa:boolean
ffi
readonlyffi:boolean
sqlite
readonlysqlite:boolean
tls
readonlytls:boolean
wasm
readonlywasm:boolean
webcrypto
readonlywebcrypto:boolean