Gathering detailed insights and metrics for react-native-quick-base64
Gathering detailed insights and metrics for react-native-quick-base64
Gathering detailed insights and metrics for react-native-quick-base64
Gathering detailed insights and metrics for react-native-quick-base64
react-native-fast-base64
Just another native implementation of Base64 in C++ for React-Native. Inspired and enhanced from @craftzdog/eact-native-quick-base64
@juanrdbo/react-native-quick-base64
A native implementation of base64 in C++ for React Native
@react-native-oh-tpl/react-native-quick-base64
A native implementation of base64 in C++ for React Native
rn-fast-base64
Just another native implementation of Base64 in C++ for React-Native. Inspired and enhanced from @craftzdog/eact-native-quick-base64
npm install react-native-quick-base64
Typescript
Module System
Node Version
NPM Version
TypeScript (47.59%)
C++ (26.62%)
JavaScript (7.36%)
Kotlin (4.53%)
Ruby (4.35%)
Java (3.14%)
Objective-C++ (2.31%)
Swift (2.22%)
CMake (1.66%)
C (0.22%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
408 Stars
116 Commits
28 Forks
3 Watchers
4 Branches
10 Contributors
Updated on Jul 10, 2025
Latest Version
2.2.0
Package Id
react-native-quick-base64@2.2.0
Unpacked Size
41.77 kB
Size
13.37 kB
File Count
24
NPM Version
10.8.2
Node Version
20.19.0
Published on
May 28, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
23
A blazing fast, native Base64 implementation for React Native using C++ and JSI.
This library is ~16x faster than base64-js on an iPhone 15 Pro Max simulator. Try the benchmarks in the example app.
iPhone | Android |
---|---|
![]() | ![]() |
base64-js
with matching APIℹ️ Heads-up: Starting with recent versions of Hermes,
btoa
andatob
are natively available in the JS runtime. You likely don't need to use the versions provided by this library anymore unless you're running on an older engine or want consistent behavior across platforms. These methods will remain in the package for compatibility but are considered deprecated.
1npm install react-native-quick-base64
This module installs its native bindings automatically. Simply importing the library is enough to activate the native backend. Add it to your root entry point file or your first _layout.tsx.
1import 'react-native-quick-base64' // triggers native JSI install to global namespace
You can also import individual helpers:
1import { fromByteArray, toByteArray } from 'react-native-quick-base64'
1import { btoa, atob } from 'react-native-quick-base64' 2 3const base64 = btoa('foo') 4const decoded = atob(base64)
Compatible with base64-js.
byteLength(b64: string): number
Returns the length of the byte array that corresponds to the base64 string.
toByteArray(b64: string, removeLinebreaks: boolean = false): Uint8Array
Converts a base64 string into a Uint8Array.
If removeLinebreaks
is true
, all \n
characters are removed first.
fromByteArray(uint8: Uint8Array, urlSafe: boolean = false): string
Converts a byte array into a base64 string.
If urlSafe
is true
, the output uses a URL-safe base64 charset.
btoa(data: string): string
⚠️ DeprecatedEncodes a string into base64 format.
Avoid using this unless you're on an older JS engine. Use
fromByteArray(new TextEncoder().encode(...))
instead for better encoding control.
atob(b64: string): string
⚠️ DeprecatedDecodes a base64 string into a UTF-8 string.
Avoid using this unless you're on an older JS engine. Use
TextDecoder + toByteArray()
for more robust decoding.
shim()
Adds global btoa
and atob
functions
1import { shim } from 'react-native-quick-base64' 2 3shim() 4 5btoa('foo') // available globally
trimBase64Padding(str: string): string
Removes trailing =
or .
padding from base64 or base64url-encoded strings.
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT © Takuya Matsuyama
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
22 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
license file detected
Details
Reason
binaries present in source code
Details
Reason
2 existing vulnerabilities detected
Details
Reason
Found 3/8 approved changesets -- score normalized to 3
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More