Index
Modules:
denim
,
denimpkg/napi/bindings
,
denimpkg/napi/jsNativeApi
,
denimpkg/napi/jsNativeApiTypes
,
denimpkg/napi/nodeApi
,
denimpkg/napi/nodeApiTypes
,
denimpkg/napi/utils
.
API symbols
`$`:
bindings: proc `$`(o: napi_value): string
`%*`:
bindings: macro `%*`(x: typed): untyped
`.()`:
bindings: macro `.()`(val: napi_value; field: untyped; args: varargs[typed]): untyped
`.=`:
bindings: macro `.=`(val: napi_value; field: untyped; value: napi_value): untyped
bindings: macro `.=`(val: napi_value; field: untyped; value: typed): untyped
`.`:
bindings: macro `.`(val: napi_value; field: untyped): untyped
`[]=`:
bindings: proc `[]=`(obj: napi_value; index: int; value: napi_value)
bindings: proc `[]=`(obj: napi_value; key: string; value: napi_value)
`[]`:
bindings: proc `[]`(obj: napi_value; index: int): napi_value
bindings: proc `[]`(obj: napi_value; key: string): napi_value
addDocBlock:
bindings: proc addDocBlock(fnName: string; args: openArray[(string, string, NapiValueType, bool)])
assert:
bindings: proc assert(status: NapiStatus)
asyncActionFail:
bindings: AsyncActionStatus.asyncActionFail
AsyncActionStatus:
bindings: enum AsyncActionStatus
asyncActionSuccess:
bindings: AsyncActionStatus.asyncActionSuccess
callFunction:
bindings: proc callFunction(fn: napi_value; args: openArray[napi_value] = []; this: napi_value = %*emptyArr): napi_value
callMethod:
bindings: proc callMethod(instance: napi_value; methd: string; args: openArray[napi_value] = []): napi_value
create:
bindings: proc create[T](n: Module; t: T): napi_value
createFn:
bindings: proc createFn(env: napi_env; fname: string; cb: napi_callback): napi_value
defineProperties:
bindings: proc defineProperties(obj: Module)
enumerate:
utils: iterator enumerate[T](open: openArray[T]): (int, T)
Env:
bindings: var Env
error:
bindings: template error(msg: string; code = ""; errorType: NapiErrorType = napiError; customError: napi_value = nil): untyped
expect:
bindings: proc expect(env: napi_env; n: napi_value; expectKind: NapiValueType): bool
bindings: proc expect(env: napi_env; v: seq[napi_value]; errorName, fnIdent: string): bool
export_napi:
bindings: macro export_napi(fn: untyped; withModule: untyped = nil)
bindings: macro export_napi(vName, vType: untyped; vVal: typed)
fn:
bindings: template fn(paramCt: int; fnName, fnNameStrinfigy, cushy: untyped): untyped
get:
bindings: proc get(obj: napi_value; key: string): napi_value
bindings: proc get(key: string): napi_value
bindings: proc get(key: string; default: napi_value): napi_value
getBool:
bindings: proc getBool(n: napi_value): bool
bindings: proc getBool(n: napi_value; default: bool): bool
getElement:
bindings: proc getElement(obj: napi_value; index: int): napi_value
bindings: proc getElement(obj: napi_value; index: int; default: napi_value): napi_value
getGlobal:
bindings: proc getGlobal(): napi_value
getIdentStr:
bindings: template getIdentStr(n: untyped): string
getInt:
bindings: template getInt(n: napi_value): int
bindings: template getInt(n: napi_value; default: int): int
getInt32:
bindings: proc getInt32(n: napi_value): int32
bindings: proc getInt32(n: napi_value; default: int32): int32
getInt64:
bindings: proc getInt64(n: napi_value): int64
bindings: proc getInt64(n: napi_value; default: int64): int64
getNull:
bindings: proc getNull(): napi_value
getProperty:
bindings: proc getProperty(obj: napi_value; key: string): napi_value
bindings: proc getProperty(obj: napi_value; key: string; default: napi_value): napi_value
getPropertyNames:
bindings: proc getPropertyNames(obj: napi_value): napi_value
getPropertyNamesArr:
bindings: proc getPropertyNamesArr(obj: napi_value): seq[napi_value]
getPropertyNamesArrStr:
bindings: proc getPropertyNamesArrStr(obj: napi_value): seq[string]
getStr:
bindings: proc getStr(n: napi_value): string
bindings: proc getStr(n: napi_value; default: string; bufsize: int = 40): string
getUndefined:
bindings: proc getUndefined(): napi_value
hasElement:
bindings: proc hasElement(obj: napi_value; index: int): bool
hasOwnProperty:
bindings: proc hasOwnProperty(obj: napi_value; key: string): bool
hasProperty:
bindings: proc hasProperty(obj: napi_value; key: string): bool
init:
bindings: macro init(initHook: proc (exports: Module)): void
isArray:
bindings: proc isArray(obj: napi_value): bool
items:
bindings: iterator items(n: napi_value): napi_value
kind:
bindings: proc kind(val: napi_value): NapiValueType
len:
bindings: proc len(arr: napi_value): int
Module:
bindings: type Module
napi_add_finalizer:
jsNativeApi: proc napi_add_finalizer(env: napi_env; js_object: napi_value; native_object: pointer; finalize_cb: napi_finalize; finalize_hint: pointer; result: ptr napi_ref): NapiStatus
napi_addon_register_func:
nodeApi: proc napi_addon_register_func(env: napi_env; exports: napi_value): napi_value
napi_adjust_external_memory:
jsNativeApi: proc napi_adjust_external_memory(env: napi_env; change_in_bytes: int64; adjusted_value: ptr int64): NapiStatus
napi_async_complete_callback:
nodeApiTypes: proc napi_async_complete_callback(env: napi_env; status: NapiStatus; data: pointer)
napi_async_context:
nodeApiTypes: type napi_async_context
napi_async_destroy:
nodeApi: proc napi_async_destroy(env: napi_env; async_context: napi_async_context): NapiStatus
napi_async_execute_callback:
nodeApiTypes: proc napi_async_execute_callback(env: napi_env; data: pointer)
napi_async_init:
nodeApi: proc napi_async_init(env: napi_env; async_resource: napi_value; async_resource_name: napi_value; result: ptr napi_async_context): NapiStatus
napi_async_work:
nodeApiTypes: type napi_async_work
napiCall:
bindings: proc napiCall(fname: string; args: openArray[napi_value] = []): napi_value
napi_callback:
jsNativeApiTypes: type napi_callback
napi_callback_info:
jsNativeApiTypes: type napi_callback_info
napi_callback_scope:
nodeApiTypes: type napi_callback_scope
napi_call_function:
jsNativeApi: proc napi_call_function(env: napi_env; recv: napi_value; fn: napi_value; argc: csize_t; argv: ptr napi_value; result: ptr napi_value): NapiStatus
napi_cancel_async_work:
nodeApi: proc napi_cancel_async_work(env: napi_env; work: napi_async_work): NapiStatus
napi_coerce_to_bool:
jsNativeApi: proc napi_coerce_to_bool(env: napi_env; value: napi_value; result: ptr napi_value): NapiStatus
napi_coerce_to_number:
jsNativeApi: proc napi_coerce_to_number(env: napi_env; value: napi_value; result: ptr napi_value): NapiStatus
napi_coerce_to_object:
jsNativeApi: proc napi_coerce_to_object(env: napi_env; value: napi_value; result: ptr napi_value): NapiStatus
napi_coerce_to_string:
jsNativeApi: proc napi_coerce_to_string(env: napi_env; value: napi_value; result: ptr napi_value): NapiStatus
napiCreate:
bindings: proc napiCreate[T](t: T): napi_value
napi_create_array:
jsNativeApi: proc napi_create_array(env: napi_env; result: ptr napi_value): NapiStatus
napi_create_arraybuffer:
jsNativeApi: proc napi_create_arraybuffer(env: napi_env; byte_length: csize_t; data: ptr pointer; result: ptr napi_value): NapiStatus
napi_create_array_with_length:
jsNativeApi: proc napi_create_array_with_length(env: napi_env; length: csize_t; result: ptr napi_value): NapiStatus
napi_create_async_work:
nodeApi: proc napi_create_async_work(env: napi_env; async_resource: napi_value; async_resource_name: napi_value; execute: napi_async_execute_callback.typeof; complete: napi_async_complete_callback.typeof; data: pointer; result: ptr napi_async_work): NapiStatus
napi_create_buffer:
nodeApi: proc napi_create_buffer(env: napi_env; length: csize_t; data: ptr pointer; result: ptr napi_value): NapiStatus
napi_create_buffer_copy:
nodeApi: proc napi_create_buffer_copy(env: napi_env; length: csize_t; data: pointer; result_data: ptr pointer; result: ptr napi_value): NapiStatus
napi_create_dataview:
jsNativeApi: proc napi_create_dataview(env: napi_env; length: csize_t; arraybuffer: napi_value; byte_offset: csize_t; result: ptr napi_value): NapiStatus
napi_create_date:
jsNativeApi: proc napi_create_date(env: napi_env; time: float64; result: ptr napi_value): NapiStatus
napi_create_double:
jsNativeApi: proc napi_create_double(env: napi_env; value: float64; result: ptr napi_value): NapiStatus
napi_create_error:
jsNativeApi: proc napi_create_error(env: napi_env; code: napi_value; msg: napi_value; result: ptr napi_value): NapiStatus
napi_create_external:
jsNativeApi: proc napi_create_external(env: napi_env; data: pointer; finalize_cb: napi_finalize; finalize_hint: pointer; result: ptr napi_value): NapiStatus
napi_create_external_arraybuffer:
jsNativeApi: proc napi_create_external_arraybuffer(env: napi_env; external_data: pointer; byte_length: csize_t; finalize_cb: napi_finalize; finalize_hint: pointer; result: ptr napi_value): NapiStatus
napi_create_external_buffer:
nodeApi: proc napi_create_external_buffer(env: napi_env; length: csize_t; data: pointer; finalize_cb: napi_finalize; finalize_hint: pointer; result: ptr napi_value): NapiStatus
napi_create_function:
jsNativeApi: proc napi_create_function(env: napi_env; utf8name: cstring; length: csize_t; cb: napi_callback; data: pointer; result: ptr napi_value): NapiStatus
napi_create_int32:
jsNativeApi: proc napi_create_int32(env: napi_env; value: int32; result: ptr napi_value): NapiStatus
napi_create_int64:
jsNativeApi: proc napi_create_int64(env: napi_env; value: int64; result: ptr napi_value): NapiStatus
napi_create_object:
jsNativeApi: proc napi_create_object(env: napi_env; result: ptr napi_value): NapiStatus
napi_create_promise:
jsNativeApi: proc napi_create_promise(env: napi_env; deffered: ptr napi_deferred; promise: ptr napi_value): NapiStatus
napi_create_range_error:
jsNativeApi: proc napi_create_range_error(env: napi_env; code: napi_value; msg: napi_value; result: ptr napi_value): NapiStatus
napi_create_string_latin1:
jsNativeApi: proc napi_create_string_latin1(env: napi_env; str: cstring; length: csize_t; result: ptr napi_value): NapiStatus
napi_create_string_utf8:
jsNativeApi: proc napi_create_string_utf8(env: napi_env; str: cstring; length: csize_t; result: ptr napi_value): NapiStatus
napi_create_symbol:
jsNativeApi: proc napi_create_symbol(env: napi_env; description: napi_value; result: ptr napi_value): NapiStatus
napi_create_typedarray:
jsNativeApi: proc napi_create_typedarray(env: napi_env; array_type: NApiTypedArrayType; length: csize_t; arraybuffer: napi_value; byte_offset: csize_t; result: ptr napi_value): NapiStatus
napi_create_type_error:
jsNativeApi: proc napi_create_type_error(env: napi_env; code: napi_value; msg: napi_value; result: ptr napi_value): NapiStatus
napi_create_uint32:
jsNativeApi: proc napi_create_uint32(env: napi_env; value: uint32; result: ptr napi_value): NapiStatus
napi_create_uint64:
jsNativeApi: proc napi_create_uint64(env: napi_env; value: uint64; result: ptr napi_value): NapiStatus
napi_deferred:
jsNativeApiTypes: type napi_deferred
napi_define_class:
jsNativeApi: proc napi_define_class(env: napi_env; utf8name: cstring; length: csize_t; constructor: napi_callback; data: pointer; property_count: csize_t; properties: ptr NapiPropertyDescriptor; result: ptr napi_value): NapiStatus
napi_define_properties:
jsNativeApi: proc napi_define_properties(env: napi_env; obj: napi_value; property_count: csize_t; properties: ptr NapiPropertyDescriptor): NapiStatus
napi_delete_async_work:
nodeApi: proc napi_delete_async_work(env: napi_env; work: napi_async_work): NapiStatus
napi_delete_element:
jsNativeApi: proc napi_delete_element(env: napi_env; obj: napi_value; index: uint32; result: ptr bool): NapiStatus
napi_delete_property:
jsNativeApi: proc napi_delete_property(env: napi_env; obj: napi_value; key: napi_value; result: ptr bool): NapiStatus
napi_env:
jsNativeApiTypes: type napi_env
NapiErrorType:
bindings: enum NapiErrorType
napi_escapable_handle_scope:
jsNativeApiTypes: type napi_escapable_handle_scope
NapiExtendedErrorInfo:
jsNativeApiTypes: object NapiExtendedErrorInfo
napi_fatal_error:
nodeApi: proc napi_fatal_error(location: cstring; location_len: csize_t; message: cstring; message_len: csize_t)
napi_finalize:
jsNativeApiTypes: type napi_finalize
napi_get_and_clear_last_exception:
jsNativeApi: proc napi_get_and_clear_last_exception(env: napi_env; result: ptr napi_value): NapiStatus
napi_get_arraybuffer_info:
jsNativeApi: proc napi_get_arraybuffer_info(env: napi_env; arraybuffer: napi_value; data: ptr pointer; byte_length: ptr csize_t): NapiStatus
napi_get_array_length:
jsNativeApi: proc napi_get_array_length(env: napi_env; value: napi_value; result: ptr uint32): NapiStatus
napi_get_boolean:
jsNativeApi: proc napi_get_boolean(env: napi_env; value: bool; result: ptr napi_value): NapiStatus
napi_get_buffer_info:
nodeApi: proc napi_get_buffer_info(env: napi_env; value: napi_value; data: ptr pointer; length: ptr csize_t): NapiStatus
napi_get_cb_info:
jsNativeApi: proc napi_get_cb_info(env: napi_env; cbinfo: napi_callback_info; argc: ptr csize_t; argv: ptr UncheckedArray[napi_value]; this_arg: napi_value; data: ptr pointer): NapiStatus
napi_get_dataview_info:
jsNativeApi: proc napi_get_dataview_info(env: napi_env; dataview: napi_value; byte_length: ptr csize_t; data: ptr pointer; arraybuffer: ptr napi_value; byte_offset: ptr csize_t): NapiStatus
napi_get_date_value:
jsNativeApi: proc napi_get_date_value(env: napi_env; value: napi_value; result: ptr float64): NapiStatus
napi_get_element:
jsNativeApi: proc napi_get_element(env: napi_env; obj: napi_value; index: uint32; result: ptr napi_value): NapiStatus
napi_get_global:
jsNativeApi: proc napi_get_global(env: napi_env; result: ptr napi_value): NapiStatus
napi_get_last_error_info:
jsNativeApi: proc napi_get_last_error_info(env: napi_env; result: UncheckedArray[NapiExtendedErrorInfo]): NapiStatus
napi_get_named_property:
jsNativeApi: proc napi_get_named_property(env: napi_env; obj: napi_value; utf8name: cstring; result: ptr napi_value): NapiStatus
napi_get_new_target:
jsNativeApi: proc napi_get_new_target(env: napi_env; cbinfo: napi_callback_info; result: ptr napi_value): NapiStatus
napi_get_node_version:
nodeApi: proc napi_get_node_version(env: napi_env; version: ptr NapiNodeVersion): NapiStatus
napi_get_null:
jsNativeApi: proc napi_get_null(env: napi_env; result: ptr napi_value): NapiStatus
napi_get_property:
jsNativeApi: proc napi_get_property(env: napi_env; obj: napi_value; key: napi_value; result: ptr napi_value): NapiStatus
napi_get_property_names:
jsNativeApi: proc napi_get_property_names(env: napi_env; obj: napi_value; result: ptr napi_value): NapiStatus
napi_get_prototype:
jsNativeApi: proc napi_get_prototype(env: napi_env; obj: napi_value; result: ptr napi_value): NapiStatus
napi_get_typedarray_info:
jsNativeApi: proc napi_get_typedarray_info(env: napi_env; typedarray: napi_value; array_type: ptr NApiTypedArrayType; length: ptr csize_t; data: ptr pointer; arraybuffer: ptr napi_value; byte_offset: csize_t): NapiStatus
napi_get_undefined:
jsNativeApi: proc napi_get_undefined(env: napi_env; result: ptr napi_value): NapiStatus
napi_get_value_bool:
jsNativeApi: proc napi_get_value_bool(env: napi_env; value: napi_value; result: ptr bool): NapiStatus
napi_get_value_double:
jsNativeApi: proc napi_get_value_double(env: napi_env; value: napi_value; result: ptr float64): NapiStatus
napi_get_value_external:
jsNativeApi: proc napi_get_value_external(env: napi_env; value: napi_value; result: ptr pointer): NapiStatus
napi_get_value_int32:
jsNativeApi: proc napi_get_value_int32(env: napi_env; value: napi_value; result: ptr int32): NapiStatus
napi_get_value_int64:
jsNativeApi: proc napi_get_value_int64(env: napi_env; value: napi_value; result: ptr int64): NapiStatus
napi_get_value_string_latin1:
jsNativeApi: proc napi_get_value_string_latin1(env: napi_env; value: napi_value; buf: cstring; bufsize: csize_t; result: ptr csize_t): NapiStatus
napi_get_value_string_utf8:
jsNativeApi: proc napi_get_value_string_utf8(env: napi_env; value: napi_value; buf: cstring; bufsize: csize_t; result: ptr csize_t): NapiStatus
napi_get_value_uint32:
jsNativeApi: proc napi_get_value_uint32(env: napi_env; value: napi_value; result: ptr uint32): NapiStatus
napi_get_version:
jsNativeApi: proc napi_get_version(env: napi_env; result: ptr uint32): NapiStatus
napi_handle_scope:
jsNativeApiTypes: type napi_handle_scope
napi_has_element:
jsNativeApi: proc napi_has_element(env: napi_env; obj: napi_value; index: uint32; result: ptr bool): NapiStatus
napi_has_named_property:
jsNativeApi: proc napi_has_named_property(env: napi_env; obj: napi_value; utf8name: cstring; result: ptr bool): NapiStatus
napi_has_own_property:
jsNativeApi: proc napi_has_own_property(env: napi_env; obj: napi_value; key: napi_value; result: ptr bool): NapiStatus
napi_has_property:
jsNativeApi: proc napi_has_property(env: napi_env; obj: napi_value; key: napi_value; result: ptr bool): NapiStatus
napi_instanceof:
jsNativeApi: proc napi_instanceof(env: napi_env; obj: napi_value; constructor: napi_value; result: ptr bool): NapiStatus
napi_is_array:
jsNativeApi: proc napi_is_array(env: napi_env; value: napi_value; result: ptr bool): NapiStatus
napi_is_arraybuffer:
jsNativeApi: proc napi_is_arraybuffer(env: napi_env; value: napi_value; result: ptr bool): NapiStatus
napi_is_buffer:
nodeApi: proc napi_is_buffer(env: napi_env; value: napi_value; results: ptr bool): NapiStatus
napi_is_dataview:
jsNativeApi: proc napi_is_dataview(env: napi_env; value: napi_value; result: ptr bool): NapiStatus
napi_is_date:
jsNativeApi: proc napi_is_date(env: napi_env; value: napi_value; is_date: ptr bool): NapiStatus
napi_is_error:
jsNativeApi: proc napi_is_error(env: napi_env; value: napi_value; result: ptr bool): NapiStatus
napi_is_exception_pending:
jsNativeApi: proc napi_is_exception_pending(env: napi_env; result: ptr bool): NapiStatus
napi_is_promise:
jsNativeApi: proc napi_is_promise(env: napi_env; promise: napi_value; is_promise: ptr bool): NapiStatus
napi_is_typedarray:
jsNativeApi: proc napi_is_typedarray(env: napi_env; value: napi_value; result: ptr bool): NapiStatus
napi_make_callback:
nodeApi: proc napi_make_callback(env: napi_env; async_context: napi_async_context; recv: napi_value; fn: napi_value; argc: csize_t; argv: ptr napi_value; result: ptr napi_value): NapiStatus
NapiModule:
nodeApi: object NapiModule
napiModule:
nodeApi: macro napiModule(initHook: proc (env: napi_env; exports: napi_value)): void
napi_module_register:
nodeApi: proc napi_module_register(module: NapiModule)
napi_new_instance:
jsNativeApi: proc napi_new_instance(env: napi_env; constructor: napi_value; argc: csize_t; argv: ptr napi_value; result: ptr napi_value): NapiStatus
NapiNodeVersion:
nodeApiTypes: object NapiNodeVersion
NapiPropertyAttributes:
jsNativeApiTypes: enum NapiPropertyAttributes
NapiPropertyDescriptor:
jsNativeApiTypes: object NapiPropertyDescriptor
napi_queue_async_work:
nodeApi: proc napi_queue_async_work(env: napi_env; work: napi_async_work): NapiStatus
napi_ref:
jsNativeApiTypes: type napi_ref
napi_reject_deferred:
jsNativeApi: proc napi_reject_deferred(env: napi_env; deffered: napi_deferred; rejection: napi_value): NapiStatus
napi_remove_wrap:
jsNativeApi: proc napi_remove_wrap(env: napi_env; js_object: napi_value; result: ptr pointer): NapiStatus
napi_resolve_deferred:
jsNativeApi: proc napi_resolve_deferred(env: napi_env; deffered: napi_deferred; resolution: napi_value): NapiStatus
napi_run_script:
jsNativeApi: proc napi_run_script(env: napi_env; script: napi_value; result: ptr napi_value): NapiStatus
napi_set_element:
jsNativeApi: proc napi_set_element(env: napi_env; obj: napi_value; index: uint32; value: napi_value): NapiStatus
napi_set_named_property:
jsNativeApi: proc napi_set_named_property(env: napi_env; obj: napi_value; utf8name: cstring; value: napi_value): NapiStatus
napi_set_property:
jsNativeApi: proc napi_set_property(env: napi_env; obj: napi_value; key: napi_value; value: napi_value): NapiStatus
NapiStatus:
jsNativeApiTypes: enum NapiStatus
napi_strict_equals:
jsNativeApi: proc napi_strict_equals(env: napi_env; lhs: napi_value; rhs: napi_value; result: ptr bool): NapiStatus
NapiThreadSafeFunction:
jsNativeApiTypes: enum NapiThreadSafeFunction
napi_threadsafe_function:
nodeApiTypes: type napi_threadsafe_function
napi_threadsafe_function_call_js:
jsNativeApiTypes: type napi_threadsafe_function_call_js
napi_throw:
jsNativeApi: proc napi_throw(env: napi_env; error: napi_value): NapiStatus
napi_throw_error:
jsNativeApi: proc napi_throw_error(env: napi_env; code: cstring; msg: cstring): NapiStatus
napi_throw_range_error:
jsNativeApi: proc napi_throw_range_error(env: napi_env; code: cstring; msg: cstring): NapiStatus
napi_throw_type_error:
jsNativeApi: proc napi_throw_type_error(env: napi_env; code: cstring; msg: cstring): NapiStatus
NApiTypedArrayType:
jsNativeApiTypes: enum NApiTypedArrayType
napi_typeof:
jsNativeApi: proc napi_typeof(env: napi_env; value: napi_value; result: ptr NapiValueType): NapiStatus
napi_unrwap:
jsNativeApi: proc napi_unrwap(env: napi_env; js_object: napi_value; result: ptr pointer): NapiStatus
napi_value:
jsNativeApiTypes: type napi_value
NapiValueType:
jsNativeApiTypes: enum NapiValueType
napi_wrap:
jsNativeApi: proc napi_wrap(env: napi_env; js_object: napi_value; native_object: pointer; finalize_cb: napi_finalize; finalize_hint: pointer; result: ptr napi_ref): NapiStatus
newNodeValue:
bindings: proc newNodeValue(val: napi_value; env: napi_env): Module
newPromiseData:
bindings: proc newPromiseData[T](jsData: T): ref PromiseData[T]
pairs:
bindings: iterator pairs(n: napi_value): (string, napi_value)
promise:
bindings: macro promise(fn: untyped)
PromiseData:
bindings: object PromiseData
register:
bindings: proc register(obj: Module; name: string; cb: napi_callback; attr: NapiPropertyAttributes = napi_default)
bindings: proc register[T: int | uint | string | napi_value](obj: Module; name: string; values: openArray[(string, T)]; attr: NapiPropertyAttributes = napi_default)
bindings: proc register[T: int | uint | string | napi_value](obj: Module; name: string; values: openArray[T]; attr: NapiPropertyAttributes = napi_default)
bindings: proc register[T: int | uint | string | napi_value](obj: Module; name: string; value: T; attr: NapiPropertyAttributes = napi_default)
registerFn:
bindings: template registerFn(exports: Module; paramCt: int; name: string; cushy: untyped): untyped
setElement:
bindings: proc setElement(obj: napi_value; index: int; value: napi_value)
setProperty:
bindings: proc setProperty(obj: napi_value; key: string; value: napi_value)
throwError:
bindings: proc throwError(env: napi_env; msg: string; code = ""; errorType: NapiErrorType = napiError; customError: napi_value = nil): NapiStatus
toBool:
bindings: proc toBool(n: napi_value): napi_value
toJsObject:
bindings: macro toJsObject(x: typed): untyped
toNumber:
bindings: proc toNumber(n: napi_value): napi_value
toObject:
bindings: macro toObject(x: untyped): untyped
toSeq:
bindings: proc toSeq(n: napi_value): seq[napi_value]
toString:
bindings: proc toString(n: napi_value): napi_value
toUnchecked:
utils: proc toUnchecked[T](open: openArray[T]): ptr UncheckedArray[T]
tryGetJson:
bindings: proc tryGetJson(n: napi_value): JsonNode
undefined:
bindings: proc undefined(): napi_value