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
npm install react-native-quick-base64
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
366 Stars
94 Commits
25 Forks
3 Watching
3 Branches
9 Contributors
Updated on 22 Nov 2024
Minified
Minified + Gzipped
TypeScript (47.3%)
C++ (26.3%)
Ruby (5.12%)
Kotlin (4.59%)
JavaScript (4.55%)
Objective-C (4.08%)
Java (3.1%)
Objective-C++ (3.1%)
CMake (1.64%)
C (0.22%)
Cumulative downloads
Total Downloads
Last day
-12.3%
15,450
Compared to previous day
Last week
12%
87,732
Compared to previous week
Last month
8.3%
353,939
Compared to previous month
Last year
316.2%
1,977,970
Compared to previous year
1
2
A native implementation of Base64 in C++ for React Native.
~16x faster than base64-js on an iPhone 15 Pro Max simulator. Try the benchmarks under example.
iPhone | Android |
---|---|
1npm install 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
Takes a base64 string and returns length of byte array.
toByteArray(b64: string, removeLinebreaks: boolean = false): Uint8Array
Takes a base64 string and returns a byte array. Optional removeLinebreaks
removes all \n
characters.
fromByteArray(uint8: Uint8Array, urlSafe: boolean = false): string
Takes a byte array and returns a base64 string. Optional urlSafe
flag true
will use the URL-safe dictionary.
btoa(data: string): string
Encodes a string in base64.
atob(b64: string): string
Decodes a base64 encoded string.
shim()
Adds btoa
and atob
functions to global
.
trimBase64Padding = (str: string): string
Trims the =
padding character(s) off of the end of a base64 encoded string. Also, for base64url encoded strings, it will trim off the trailing .
character(s).
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT by Takuya Matsuyama
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
binaries present in source code
Details
Reason
Found 8/22 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
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
Reason
47 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
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