Repository: napi-rs/napi-rs
File: examples/napi/example.wasi-browser.js (JavaScript)

Code before:
export const getNull = __napiModule.exports.getNull
export const getNullByteProperty = __napiModule.exports.getNullByteProperty
export const getNumArr = __napiModule.exports.getNumArr
export const getNums = __napiModule.exports.getNums
export const getOptionalExternal = __napiModule.exports.getOptionalExternal
export const getPackageJsonName = __napiModule.exports.getPackageJsonName
export const getStrFromObject = __napiModule.exports.getStrFromObject
export const getterFromObj = __napiModule.exports.getterFromObj
export const getTuple = __napiModule.exports.getTuple
export const getUndefined = __napiModule.exports.getUndefined
export const getWords = __napiModule.exports.getWords
export const i16ArrayToArray = __napiModule.exports.i16ArrayToArray
export const i32ArrayToArray = __napiModule.exports.i32ArrayToArray
export const i64ArrayToArray = __napiModule.exports.i64ArrayToArray
export const i8ArrayToArray = __napiModule.exports.i8ArrayToArray
export const indexmapPassthrough = __napiModule.exports.indexmapPassthrough
export const indexSetToJs = __napiModule.exports.indexSetToJs
export const indexSetToRust = __napiModule.exports.indexSetToRust
export const intoUtf8 = __napiModule.exports.intoUtf8
export const jsErrorCallback = __napiModule.exports.jsErrorCallback
export const Kind = __napiModule.exports.Kind
export const KindInValidate = __napiModule.exports.KindInValidate
export const listObjKeys = __napiModule.exports.listObjKeys
export const mapOption = __napiModule.exports.mapOption
export const mergeTupleArray = __napiModule.exports.mergeTupleArray
export const mutateExternal = __napiModule.exports.mutateExternal
export const mutateOptionalExternal = __napiModule.exports.mutateOptionalExternal
export const mutateTypedArray = __napiModule.exports.mutateTypedArray
export const objectGetNamedPropertyShouldPerformTypecheck = __napiModule.exports.objectGetNamedPropertyShouldPerformTypecheck
export const objectWithCApis = __napiModule.exports.objectWithCApis
export const optionalCallbackTypes = __napiModule.exports.optionalCallbackTypes
export const optionEnd = __napiModule.exports.optionEnd
export const optionOnly = __napiModule.exports.optionOnly
export const optionStart = __napiModule.exports.optionStart
export const optionStartEnd = __napiModule.exports.optionStartEnd
export const overrideIndividualArgOnFunction = __napiModule.exports.overrideIndividualArgOnFunction
export const overrideIndividualArgOnFunctionWithCbArg = __napiModule.exports.overrideIndividualArgOnFunctionWithCbArg
export const overrideWholeFunctionType = __napiModule.exports.overrideWholeFunctionType
export const panic = __napiModule.exports.panic
export const panicInAsync = __napiModule.exports.panicInAsync
export const passSetToJs = __napiModule.exports.passSetToJs
export const passSetToRust = __napiModule.exports.passSetToRust
export const passSetWithHasherToJs = __napiModule.exports.passSetWithHasherToJs
export const plusOne = __napiModule.exports.plusOne
export const promiseInEither = __napiModule.exports.promiseInEither
export const promiseRawReturnClassInstance = __napiModule.exports.promiseRawReturnClassInstance
export const readFile = __napiModule.exports.readFile
export const readFileAsync = __napiModule.exports.readFileAsync
export const readPackageJson = __napiModule.exports.readPackageJson
export const receiveAllOptionalObject = __napiModule.exports.receiveAllOptionalObject
export const receiveBindingVitePluginMeta = __napiModule.exports.receiveBindingVitePluginMeta

Review comment (suggestion):
Inconsistent naming: The function name should be `mutateArrayBuffer` (with capital 'B') to follow camelCase conventions and match similar functions in the codebase like `arrayBufferFromData` and `arrayBufferFromExternal`. Currently it's `mutateArraybuffer` with lowercase 'b'.
```suggestion
export const mutateArrayBuffer = __napiModule.exports.mutateArraybuffer
```

Code after:
export const getNull = __napiModule.exports.getNull
export const getNullByteProperty = __napiModule.exports.getNullByteProperty
export const getNumArr = __napiModule.exports.getNumArr
export const getNums = __napiModule.exports.getNums
export const getOptionalExternal = __napiModule.exports.getOptionalExternal
export const getPackageJsonName = __napiModule.exports.getPackageJsonName
export const getStrFromObject = __napiModule.exports.getStrFromObject
export const getterFromObj = __napiModule.exports.getterFromObj
export const getTuple = __napiModule.exports.getTuple
export const getUndefined = __napiModule.exports.getUndefined
export const getWords = __napiModule.exports.getWords
export const i16ArrayToArray = __napiModule.exports.i16ArrayToArray
export const i32ArrayToArray = __napiModule.exports.i32ArrayToArray
export const i64ArrayToArray = __napiModule.exports.i64ArrayToArray
export const i8ArrayToArray = __napiModule.exports.i8ArrayToArray
export const indexmapPassthrough = __napiModule.exports.indexmapPassthrough
export const indexSetToJs = __napiModule.exports.indexSetToJs
export const indexSetToRust = __napiModule.exports.indexSetToRust
export const intoUtf8 = __napiModule.exports.intoUtf8
export const jsErrorCallback = __napiModule.exports.jsErrorCallback
export const Kind = __napiModule.exports.Kind
export const KindInValidate = __napiModule.exports.KindInValidate
export const listObjKeys = __napiModule.exports.listObjKeys
export const mapOption = __napiModule.exports.mapOption
export const mergeTupleArray = __napiModule.exports.mergeTupleArray
export const mutateArraybuffer = __napiModule.exports.mutateArraybuffer
export const mutateExternal = __napiModule.exports.mutateExternal
export const mutateOptionalExternal = __napiModule.exports.mutateOptionalExternal
export const mutateTypedArray = __napiModule.exports.mutateTypedArray
export const objectGetNamedPropertyShouldPerformTypecheck = __napiModule.exports.objectGetNamedPropertyShouldPerformTypecheck
export const objectWithCApis = __napiModule.exports.objectWithCApis
export const optionalCallbackTypes = __napiModule.exports.optionalCallbackTypes
export const optionEnd = __napiModule.exports.optionEnd
export const optionOnly = __napiModule.exports.optionOnly
export const optionStart = __napiModule.exports.optionStart
export const optionStartEnd = __napiModule.exports.optionStartEnd
export const overrideIndividualArgOnFunction = __napiModule.exports.overrideIndividualArgOnFunction
export const overrideIndividualArgOnFunctionWithCbArg = __napiModule.exports.overrideIndividualArgOnFunctionWithCbArg
export const overrideWholeFunctionType = __napiModule.exports.overrideWholeFunctionType
export const panic = __napiModule.exports.panic
export const panicInAsync = __napiModule.exports.panicInAsync
export const passSetToJs = __napiModule.exports.passSetToJs
export const passSetToRust = __napiModule.exports.passSetToRust
export const passSetWithHasherToJs = __napiModule.exports.passSetWithHasherToJs
export const plusOne = __napiModule.exports.plusOne
export const promiseInEither = __napiModule.exports.promiseInEither
export const promiseRawReturnClassInstance = __napiModule.exports.promiseRawReturnClassInstance
export const readFile = __napiModule.exports.readFile
export const readFileAsync = __napiModule.exports.readFileAsync
export const readPackageJson = __napiModule.exports.readPackageJson
export const receiveAllOptionalObject = __napiModule.exports.receiveAllOptionalObject