This package has been deprecated

Author message:

This package has moved to @codec-bytes/base64.

@aureooms/js-codec-base64

3.0.0 • Public • Published

@aureooms/js-codec-base64

Base64 encoder/decoder for JavaScript. See docs. Parent is @aureooms/js-codec.

> import ascii from '@aureooms/js-codec-ascii' ;
> import base64 from '@aureooms/js-codec-base64' ;
> let bytes = ascii.encode('any carnal pleasure') ;
> base64.decode( bytes ) ;
'YW55IGNhcm5hbCBwbGVhc3VyZQ=='
> base64.decode( bytes , { variant : 'RFC7515' } ) ;
'YW55IGNhcm5hbCBwbGVhc3VyZQ'
> base64.decode( bytes , { variant : 'Y64' } ) ;
'YW55IGNhcm5hbCBwbGVhc3VyZQ--'
> base64.decode( bytes , { alphabet : 'BCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/A' , padding : '.' } ) ;
'ZX66JHOidn6icDCxcHWid4WzaR..'

License Version Build Dependencies Dev dependencies GitHub issues Downloads

Code issues Code maintainability Code coverage (cov) Code technical debt Documentation Package size

Package Sidebar

Install

npm i @aureooms/js-codec-base64

Weekly Downloads

2

Version

3.0.0

License

AGPL-3.0

Unpacked Size

593 kB

Total Files

14

Last publish

Collaborators

  • aureooms