Skip to content

Micropackage: convert between a NodeJS Buffer and a base64-encoded string with optional URL-safe alphabet, padding, and MultiBase prefix.

License

Notifications You must be signed in to change notification settings

Anadian/cno-base64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cno-base64

standard-readme compliant Semantic Versioning 2.0.0 Conventional Commits License ci NPM Version Coverage Status

Micropackage: convert between a NodeJS Buffer and a base64-encoded string with optional URL-safe alphabet, padding, and MultiBase prefix.

Table of Contents

Background

Install

Available on the npm registry as cno-base64. Add it to project with pnpm:

pnpm add --save cno-base64

It can, of course, also be installed by npm or yarn using the normal methods.

Usage

import Base64NS from 'cno-base64'; // Default export is a full "namespace".
import { getBase64FromBuffer, getBufferFromBase64 } from 'cno-base64'; // Just the functions.

API

Contributing

Changes are tracked in CHANGELOG.md.

License

MIT ©2024

SEE LICENSE IN LICENSE

Creative Commons LicenseThis project's documentation is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

About

Micropackage: convert between a NodeJS Buffer and a base64-encoded string with optional URL-safe alphabet, padding, and MultiBase prefix.

Resources

License

Stars

Watchers

Forks

Packages

No packages published