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

Code before:
module.exports.getNull = __napiModule.exports.getNull
module.exports.getNullByteProperty = __napiModule.exports.getNullByteProperty
module.exports.getNumArr = __napiModule.exports.getNumArr
module.exports.getNums = __napiModule.exports.getNums
module.exports.getOptionalExternal = __napiModule.exports.getOptionalExternal
module.exports.getPackageJsonName = __napiModule.exports.getPackageJsonName
module.exports.getStrFromObject = __napiModule.exports.getStrFromObject
module.exports.getterFromObj = __napiModule.exports.getterFromObj
module.exports.getTuple = __napiModule.exports.getTuple
module.exports.getUndefined = __napiModule.exports.getUndefined
module.exports.getWords = __napiModule.exports.getWords
module.exports.i16ArrayToArray = __napiModule.exports.i16ArrayToArray
module.exports.i32ArrayToArray = __napiModule.exports.i32ArrayToArray
module.exports.i64ArrayToArray = __napiModule.exports.i64ArrayToArray
module.exports.i8ArrayToArray = __napiModule.exports.i8ArrayToArray
module.exports.indexmapPassthrough = __napiModule.exports.indexmapPassthrough
module.exports.indexSetToJs = __napiModule.exports.indexSetToJs
module.exports.indexSetToRust = __napiModule.exports.indexSetToRust
module.exports.intoUtf8 = __napiModule.exports.intoUtf8
module.exports.jsErrorCallback = __napiModule.exports.jsErrorCallback
module.exports.Kind = __napiModule.exports.Kind
module.exports.KindInValidate = __napiModule.exports.KindInValidate
module.exports.listObjKeys = __napiModule.exports.listObjKeys
module.exports.mapOption = __napiModule.exports.mapOption
module.exports.mergeTupleArray = __napiModule.exports.mergeTupleArray
module.exports.mutateExternal = __napiModule.exports.mutateExternal
module.exports.mutateOptionalExternal = __napiModule.exports.mutateOptionalExternal
module.exports.mutateTypedArray = __napiModule.exports.mutateTypedArray
module.exports.objectGetNamedPropertyShouldPerformTypecheck = __napiModule.exports.objectGetNamedPropertyShouldPerformTypecheck
module.exports.objectWithCApis = __napiModule.exports.objectWithCApis
module.exports.optionalCallbackTypes = __napiModule.exports.optionalCallbackTypes
module.exports.optionEnd = __napiModule.exports.optionEnd
module.exports.optionOnly = __napiModule.exports.optionOnly
module.exports.optionStart = __napiModule.exports.optionStart
module.exports.optionStartEnd = __napiModule.exports.optionStartEnd
module.exports.overrideIndividualArgOnFunction = __napiModule.exports.overrideIndividualArgOnFunction
module.exports.overrideIndividualArgOnFunctionWithCbArg = __napiModule.exports.overrideIndividualArgOnFunctionWithCbArg
module.exports.overrideWholeFunctionType = __napiModule.exports.overrideWholeFunctionType
module.exports.panic = __napiModule.exports.panic
module.exports.panicInAsync = __napiModule.exports.panicInAsync
module.exports.passSetToJs = __napiModule.exports.passSetToJs
module.exports.passSetToRust = __napiModule.exports.passSetToRust
module.exports.passSetWithHasherToJs = __napiModule.exports.passSetWithHasherToJs
module.exports.plusOne = __napiModule.exports.plusOne
module.exports.promiseInEither = __napiModule.exports.promiseInEither
module.exports.promiseRawReturnClassInstance = __napiModule.exports.promiseRawReturnClassInstance
module.exports.readFile = __napiModule.exports.readFile
module.exports.readFileAsync = __napiModule.exports.readFileAsync
module.exports.readPackageJson = __napiModule.exports.readPackageJson
module.exports.receiveAllOptionalObject = __napiModule.exports.receiveAllOptionalObject
module.exports.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
module.exports.mutateArrayBuffer = __napiModule.exports.mutateArraybuffer
```

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