Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-base64

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-base64

Base64 encoding and decoding helping util. Created for React Native but can be used anywhere

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is react-native-base64?

The react-native-base64 package provides utilities for encoding and decoding data in Base64 format, which is a common encoding scheme used to represent binary data in an ASCII string format. This is particularly useful in React Native applications for handling data that needs to be transmitted over media that are designed to deal with text.

What are react-native-base64's main functionalities?

Base64 Encoding

This feature allows you to encode a string into Base64 format. The code sample demonstrates encoding the string 'Hello World' into its Base64 representation.

const base64 = require('react-native-base64');
const encoded = base64.encode('Hello World');
console.log(encoded); // Outputs: 'SGVsbG8gV29ybGQ='

Base64 Decoding

This feature allows you to decode a Base64 encoded string back to its original format. The code sample demonstrates decoding the Base64 string 'SGVsbG8gV29ybGQ=' back to 'Hello World'.

const base64 = require('react-native-base64');
const decoded = base64.decode('SGVsbG8gV29ybGQ=');
console.log(decoded); // Outputs: 'Hello World'

Other packages similar to react-native-base64

Keywords

FAQs

Package last updated on 11 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc