JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 195313
  • Score
    100M100P100Q163295F
  • License MIT

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

Package Exports

  • react-native-base64
  • react-native-base64/base64.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-base64) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

If you find this package useful hit the star with <3

Buy Me A Coffee

react-native-base64

Base64 encoding and decoding helping util (does not support some Unicode characters).
Created for React Native but can be used anywhere.

Install

npm i react-native-base64

You can find it on npmjs.com here: https://www.npmjs.com/package/react-native-base64

How to use:
Add import statement:

import base64 from 'react-native-base64'

To Encode:

base64.encode('Some string to encode to base64');

To Decode:

base64.decode('SW4gbXkgZXllcywgaW5kaXNwb3NlZA0KSW4gZGlzZ3Vpc2VzIG5vIG9uZSBrbm93cw0KUklQIEND==');

To Decode from byte arary:

base64.encodeFromByteArray(byteArray: Uint8Array);

Do you like this package? Do you find it useful?
Please rank it with a star and leave a comment.
Thanks :)