@flying-dice/tslua-base64
TypeScript icon, indicating that this package has built-in type declarations

0.30.0 • Public • Published

Base64 for TypeScriptToLua

This repository contains TypeScript type definitions and the associated Lua code for the lbase64 library.

Installation

To use this library in your project, you need to have Node.js and npm installed. You can then install the type definitions via npm with the command

npm install @flying-dice/tslua-base64

Usage

import * as base64 from "@flying-dice/tslua-base64";

// Example of Encoding to String
const data = `return 1 + 1`;

const encoded = base64.encode(data); // "cmV0dXJuIDEgKyAx"

// Example of Decoding from String
const decoded = base64.decode(encoded); // "return 1 + 1"

Readme

Keywords

Package Sidebar

Install

npm i @flying-dice/tslua-base64

Weekly Downloads

1

Version

0.30.0

License

ISC

Unpacked Size

10.7 kB

Total Files

7

Last publish

Collaborators

  • jonathanturnock