[API reference](https://evolu.dev/docs/api-reference) › [@evolu/common](https://evolu.dev/docs/api-reference/common) › [Platform](https://evolu.dev/docs/api-reference/common/Platform) › hasNodeBuffer

```ts
const hasNodeBuffer: boolean;
```

Defined in: [packages/common/src/Platform.ts:24](https://github.com/evoluhq/evolu/blob/e7144e2bbe9069362b62dec1b64a8aa922b8f1b0/packages/common/src/Platform.ts#L24)

Detects if Node.js Buffer is available and should be used.

React Native apps often polyfill Node.js APIs like Buffer, but we want to use
native methods when available for better performance.

Returns false in React Native even if Buffer is polyfilled, as we prefer
native methods in that environment.

## See

https://github.com/craftzdog/react-native-quick-base64#installation