Socket
Socket
Sign inDemoInstall

@hapi/b64

Package Overview
Dependencies
1
Maintainers
7
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @hapi/b64

Base64 streaming encoder and decoder


Version published
Weekly downloads
1.4M
increased by0.48%
Maintainers
7
Install size
62.1 kB
Created
Weekly downloads
 

Package description

What is @hapi/b64?

The @hapi/b64 package is designed for encoding and decoding data in base64 format. It is part of the hapi ecosystem, which is a rich framework for building applications and services. @hapi/b64 provides a straightforward and efficient way to work with base64 encoded data in Node.js applications.

What are @hapi/b64's main functionalities?

Encoding data to base64

This feature allows you to encode textual or binary data into base64 format. The provided code sample demonstrates how to encode the string 'Hello, World!' into base64.

"use strict"; const B64 = require('@hapi/b64'); const encoded = B64.encode('Hello, World!'); console.log(encoded);

Decoding base64 data

This feature enables the decoding of base64 encoded data back into its original format. The code sample shows how to decode a base64 encoded string back to 'Hello, World!'.

"use strict"; const B64 = require('@hapi/b64'); const decoded = B64.decode('SGVsbG8sIFdvcmxkIQ=='); console.log(decoded.toString());

Other packages similar to @hapi/b64

Readme

Source

@hapi/b64

Base64 streaming encoder and decoder.

b64 is part of the hapi ecosystem and was designed to work seamlessly with the hapi web framework and its other components (but works great on its own or with other frameworks). If you are using a different web framework and find this module useful, check out hapi – they work even better together.

Visit the hapi.dev Developer Portal for tutorials, documentation, and support

Useful resources

Keywords

FAQs

Last updated on 11 Feb 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc