Helps to encode a string to base64 and decode a base64 string to a normal string.

Overview

@prashoonb/base64-encoder-decoder

Installation

npm install @prashoonb/base64-encoder-decoder

API

base64.encode(input)

This function takes a byte string (the input parameter) and encodes it according to base64.

const base64 = require("@prashoonb/base64-encoder-decoder");

const text = "foo Β© bar πŒ† baz";
const encoded = base64.encode(bytes);
console.log(encoded);
// β†’ "Zm9vIMKpIGJhciDwnYyGIGJheg=="

base64.decode(input)

This function takes a base64-encoded string (the input parameter) and decodes it.

const encoded = "Zm9vIMKpIGJhciDwnYyGIGJheg==";
const text = base64.decode(bytes);
console.log(text);
// β†’ "foo Β© bar πŒ† baz"

Author

twitter/prashoonb
Prashoon Bhattacharjee

License

@prashoonb/base64-encoder-decoder is available under the MIT license.

Credits

Inspired by Mathias Bynens' base64 package.

You might also like...

GUI for editing, visualizing, and manipulating JSON data

GUI for editing, visualizing, and manipulating JSON data

JSON-Splora JSON-Splora is a GUI for editing, visualizing, and manipulating JSON data with jq or JavaScript. Design Built with Electron Editor and out

Dec 25, 2022

ForgJs is a javascript lightweight object validator. Go check the Quick start section and start coding with love

ForgJs is a javascript lightweight object validator. Go check the Quick start section and start coding with love

Hey every one im really happy that this repo reached this many stars πŸŽ‰ ,but this repo needs your contibution I started to better document the code th

Dec 21, 2022

Schema-Inspector is an JSON API sanitisation and validation module.

Schema-Inspector is an JSON API sanitisation and validation module.

Schema-Inspector is a powerful tool to sanitize and validate JS objects. It's designed to work both client-side and server-side and to be scalable wit

Oct 3, 2022

:white_check_mark: Easy property validation for JavaScript, Node and Express.

property-validator βœ… Easy property validation for JavaScript, Node and Express Built on top of validator.js, property-validator makes validating reque

Dec 14, 2022

Receipt parser webapplication written in javascript and python.

Receipt parser webapplication written in javascript and python.

Receipt Manager Webapp You can find pre-compiled releases on the Github release page. All the needed info about how to use the receipt-manager-webapp

Nov 27, 2022

Validate properties and well known annotations in your Backstage catalog-info.yaml files.

Backstage entity validator This package can be used as a GitHub action or a standalone node.js module GitHub action Inputs path Optional Path to the c

Dec 26, 2022

Simple and basic javascript form validations

JavaScript-Form-Validations Simple and basic javascript form validations Table of Validations: S. No. Type of validation Link 1 Non-empty text field h

Dec 17, 2022

Lightweight and powerfull library for declarative form validation

Formurai is a lightweight and powerfull library for declarative form validation Features Setup Usage Options Methods Rules Examples Roadmap Features ?

May 13, 2022
Releases(publish)
  • publish(Oct 14, 2021)

    What's Changed

    • Fix typo by @mathiasbynens in https://github.com/Prashoon123/base64-encoder-decoder/pull/1

    New Contributors

    • @mathiasbynens made their first contribution in https://github.com/Prashoon123/base64-encoder-decoder/pull/1

    Full Changelog: https://github.com/Prashoon123/base64-encoder-decoder/commits/publish

    Source code(tar.gz)
    Source code(zip)
Owner
PrashoonB
πŸ‘‹πŸ»Hello everyone my name is Prashoon. I like to do coding, playing cricket, and make YouTube videos.
PrashoonB
String validation

validator.js A library of string validators and sanitizers. Strings only This library validates and sanitizes strings only. If you're not sure if your

null 20.7k Jan 5, 2023
πŸŽ‰πŸŽ‰πŸŽ‰like vcsode, string/texts can be replaced in file(s).

tiny-replace-files Like vscode, simple utility to quickly replace text in one or more files. ?? Getting Started install # npm npm install --save tiny

ε…”ε­ε…ˆη”Ÿ 16 Nov 22, 2022
A library for validate a string using regular expressions.

Fogex Form Regex Quickly and easily check if the content is valid. Installation npm install fogex or yarn add fogex Usage import fogex from 'fogex';

null 5 May 5, 2022
A simple and composable way to validate data in JavaScript (and TypeScript).

A simple and composable way to validate data in JavaScript (and TypeScript). Usage β€’ Why? β€’ Principles β€’ Demo β€’ Examples β€’ Documentation Superstruct m

Ian Storm Taylor 6.3k Jan 9, 2023
Codestamp - Stamp and verify your files and contents

A language-agnostic tool for signing and verifying your (codegen'd) files and contents.

Keyan Zhang 4 Jan 26, 2022
FieldVal - multipurpose validation library. Supports both sync and async validation.

FieldVal-JS The FieldVal-JS library allows you to easily validate data and provide readable and structured error reports. Documentation and Examples D

null 137 Sep 24, 2022
jQuery library to validate html forms. compatible with bootstrap v4 and bootstrap v3

jQuery form validation jQuery form validation is a library that helps you to validate your HTML form, it's completable with both Bootstrap 3 and Boots

Bassam Nabriss 33 Jun 10, 2021
The fastest JSON schema Validator. Supports JSON Schema draft-04/06/07/2019-09/2020-12 and JSON Type Definition (RFC8927)

Ajv JSON schema validator The fastest JSON validator for Node.js and browser. Supports JSON Schema draft-06/07/2019-09/2020-12 (draft-04 is supported

Ajv JSON schema validator 12k Jan 4, 2023